summaryrefslogtreecommitdiff
path: root/_layouts/postlist.html
diff options
context:
space:
mode:
authoruvok cheetah2023-10-30 17:00:02 +0100
committeruvok cheetah2023-10-30 17:00:02 +0100
commit35ec5c5699199a7a8da0c5d97dff2a1f1b4de788 (patch)
tree14cf4b26df2c5258bfae6e840ce2d001928fc974 /_layouts/postlist.html
parentc965d3149284fa260ec5861aa3e7ec32a76cd823 (diff)
Include language tag in postlist (headings!)
Diffstat (limited to '_layouts/postlist.html')
-rw-r--r--_layouts/postlist.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/_layouts/postlist.html b/_layouts/postlist.html
index ad70c56..f555146 100644
--- a/_layouts/postlist.html
+++ b/_layouts/postlist.html
@@ -31,17 +31,19 @@ layout: default
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
- <h3>
- <a class="post-link" href="{{ post.url | relative_url }}">
- {{ post.title | escape }}
- </a>
- </h3>
- {%- if site.show_excerpts -%}
- {{ post.excerpt }}
- {# parens are invalid, right-to-left eval #}
- {%- elsif forloop.first and paginator.page == 1 or paginator == site -%}
- {{ post.content }}
- {%- endif -%}
+ <div lang="{{ post.lang | default: site.lang | default: "en" }}">
+ <h3>
+ <a class="post-link" href="{{ post.url | relative_url }}">
+ {{ post.title | escape }}
+ </a>
+ </h3>
+ {%- if site.show_excerpts -%}
+ {{ post.excerpt }}
+ {# parens are invalid, right-to-left eval #}
+ {%- elsif forloop.first and paginator.page == 1 or paginator == site -%}
+ {{ post.content }}
+ {%- endif -%}
+ </div>
</li>
{%- endfor -%}
</ul>