Skip to content

fix(): Make clickable headings #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_layouts/destinations.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1 id="{{ page.title | downcase }}" class="destinations__heading page__heading"

{% include sidebar/destinations-menu-mobile.html %}

<div class="destinations__body markdown">
<div class="destinations__body" data-headings-anchors>
{{ content }}
</div>
</article>
Expand Down
4 changes: 2 additions & 2 deletions src/connections/destinations/catalog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ layout: destinations

<div class="destinations-catalog">
{% for category in destination_categories %}
<div class="destinations-catalog__section" id="{{ category.name | slugify }}">
<div class="destinations-catalog__section markdown" id="{{ category.name | slugify }}">
{% assign category_name_size = category.name | size %}
{% if category_name_size != 0 %}
{% assign category_icon = category.name | slugify %}

<h2 class="destinations-catalog__title">
<h2 class="destinations-catalog__title" id="{{ category.name | slugify }}">
{% include icons/destinations-catalog/{{ category_icon }}.svg %}

{{ category.name }}
Expand Down