1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-05-07 17:28:39 +00:00

feat: add edit this post link (#2517)

This commit is contained in:
Alexander Fuks
2026-05-06 18:31:32 +04:00
committed by GitHub
parent 2685b91957
commit 6bd446ccde
37 changed files with 91 additions and 10 deletions
+15 -10
View File
@@ -126,16 +126,21 @@ script_includes:
</div>
<div class="post-tail-wrapper text-muted">
<!-- categories -->
{% if page.categories.size > 0 %}
<div class="post-meta mb-3">
<i class="far fa-folder-open fa-fw me-1"></i>
{% for category in page.categories %}
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
{%- unless forloop.last -%},{%- endunless -%}
{% endfor %}
</div>
{% endif %}
<div class="d-flex justify-content-between align-items-center gap-3 mb-3">
<!-- categories -->
{% if page.categories.size > 0 %}
<div class="post-meta">
<i class="far fa-folder-open fa-fw me-1"></i>
{% for category in page.categories %}
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
{%- unless forloop.last -%},{%- endunless -%}
{% endfor %}
</div>
{% endif %}
<!-- "Edit this post" link -->
{% include post-edit.html lang=lang %}
</div>
<!-- tags -->
{% if page.tags.size > 0 %}