1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Merge branch 'feature/add-heading-anchors'

This commit is contained in:
Cotes Chung
2021-12-07 16:28:19 +08:00
6 changed files with 124 additions and 41 deletions

View File

@@ -15,10 +15,18 @@ layout: default
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
</h1>
<div class="post-content">
{% include refactor-content.html content=content %}
{% if page.layout == 'page' %}
{% include refactor-content.html content=content %}
{% else %}
{{ content }}
{% endif %}
</div>
{% else %}
{% include refactor-content.html content=content %}
{% if page.layout == 'post' %}
{% include refactor-content.html content=content %}
{% else %}
{{ content }}
{% endif %}
{% endif %}
</div>
</div> <!-- #core-wrapper -->