_layouts/home.html in jekyll-theme-doodle-5.0.0 vs _layouts/home.html in jekyll-theme-doodle-5.1.0
- old
+ new
@@ -5,12 +5,20 @@
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
{{ content }}
+ {% assign has_pinned_post = false %}
- {%- if site.posts.size > 0 -%}
+ {% for post in site.posts %}
+ {% if post.status == 'pinned' %}
+ {% assign has_pinned_post = true %}
+ {% break %}
+ {% endif %}
+ {% endfor %}
+
+ {% if has_pinned_post %}
<h1 class="post-title">{{ page.list_title | default: 'Pinned Posts' }}</h1>
<ul class="pinned-post-list">
{%- for post in site.posts -%}
{%- if post.status == 'pinned' -%}
<li class="pinned-post-card custom-border">
@@ -30,11 +38,11 @@
<g stroke-linecap="round">
<g transform="translate(17.963502922513044 98.1012728373579) rotate(0 10.35400784427901 -36.6392819047461)">
<path
fill="none"
class="pin-path"
- d="M-0.92 0.05 C-0.85 -7.96, -1.61 -37.45, 0.46 -48.12 C2.52 -58.8, 8.31 -63.66, 11.46 -64.01 C14.61 -64.36, 17.92 -61.96, 19.34 -50.21 C20.76 -38.46, 20.48 -4.19, 20 6.49 C19.52 17.16, 20.01 12.99, 16.44 13.85 C12.87 14.71, 2.49 13.98, -1.43 11.64 C-5.36 9.29, -6.38 13.15, -7.1 -0.21 C-7.81 -13.57, -8.39 -54.05, -5.72 -68.55 C-3.06 -83.05, 3.85 -87.21, 8.89 -87.23 C13.93 -87.26, 21.52 -74.71, 24.52 -68.68 C27.52 -62.66, 26.27 -53.89, 26.87 -51.11 M0.8 -0.97 C0.75 -9.29, -1.95 -39.43, -0.23 -49.77 C1.5 -60.1, 7.79 -63.14, 11.17 -62.99 C14.54 -62.84, 18.74 -60.01, 20.02 -48.88 C21.29 -37.74, 19.22 -6.54, 18.81 3.8 C18.39 14.14, 21.3 11.55, 17.53 13.15 C13.75 14.76, -0.1 15.77, -3.84 13.45 C-7.59 11.12, -4.38 13.08, -4.95 -0.79 C-5.52 -14.66, -9.58 -55.22, -7.24 -69.77 C-4.91 -84.32, 3.68 -88.43, 9.08 -88.08 C14.47 -87.73, 22.38 -73.79, 25.11 -67.69 C27.84 -61.59, 25.42 -54.5, 25.45 -51.48"
+ d="M-0.92 0.05 C-0.85 -7.96, -1.61 -37.45, 0.46 -48.12 C2.52 -58.8, 8.31 -63.66, 11.46 -64.01 C14.61 -64.36, 17.92 -61.96, 19.34 -50.21 C20.76 -38.46, 20.48 -4.19, 20 6.49 C19.52 17.16, 20.01 12.99, 16.44 13.85 C12.87 14.71, 2.49 13.98, -1.43 11.64 C-5.36 9.29, -6.38 13.15, -7.1 -0.21 C-7.81 -13.57, -8.39 -54.05, -5.72 -68.55 C-3.06 -83.05,style -87.21, 8.89 -87.23 C13.93 -87.26, 21.52 -74.71, 24.52 -68.68 C27.52 -62.66, 26.27 -53.89, 26.87 -51.11 M0.8 -0.97 C0.75 -9.29, -1.95 -39.43, -0.23 -49.77 C1.5 -60.1, 7.79 -63.14, 11.17 -62.99 C14.54 -62.84, 18.74 -60.01, 20.02 -48.88 C21.29 -37.74, 19.22 -6.54, 18.81 3.8 C18.39 14.14, 21.3 11.55, 17.53 13.15 C13.75 14.76, -0.1 15.77, -3.84 13.45 C-7.59 11.12, -4.38 13.08, -4.95 -0.79 C-5.52 -14.66, -9.58 -55.22, -7.24 -69.77 C-4.91 -84.32, 3.68 -88.43, 9.08 -88.08 C14.47 -87.73, 22.38 -73.79, 25.11 -67.69 C27.84 -61.59, 25.42 -54.5, 25.45 -51.48"
></path>
</g>
</g>
<mask></mask>
</svg>
@@ -54,10 +62,10 @@
{%- endfor -%}
</ul>
{%- endif -%}
<div class="all-post-wrapper">
{%- if site.posts.size > 0 -%}
- <h1 class="post-title">{{ page.list_title | default: 'All Posts' }}</h1>
+ <h1 class="post-title">{{ page.list_title | default: 'Recent Posts' }}</h1>
<ul class="post-list">
{%- for post in site.posts -%}
<li class="post-card custom-border">
{%- if post.image -%}
<img class="post-image" src="{{- post.image | relative_url -}}">