diff --git a/_includes/post-counter.html b/_includes/post-counter.html index 8072982..093be3e 100644 --- a/_includes/post-counter.html +++ b/_includes/post-counter.html @@ -1,36 +1,32 @@ - + + - - \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index d066479..718f8d8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,11 +2,11 @@ layout: page refactor: true panel_includes: - - toc +- toc tail_includes: - - related-posts - - post-nav - - comments +- related-posts +- post-nav +- comments --- {% include lang.html %} @@ -14,65 +14,70 @@ tail_includes:

{{ page.title }}

- - - {{ site.data.locales[lang].post.posted }} - {% include datetime.html date=page.date tooltip=true lang=lang %} - - - {% if page.last_modified_at and page.last_modified_at != page.date %} - - {{ site.data.locales[lang].post.updated }} - {% include datetime.html date=page.last_modified_at tooltip=true lang=lang %} - - {% endif %} +
+
+ + + {{ site.data.locales[lang].post.posted }} + {% include datetime.html date=page.date tooltip=true lang=lang %} + + + + {% if page.last_modified_at and page.last_modified_at != page.date %} + + {{ site.data.locales[lang].post.updated }} + {% include datetime.html date=page.last_modified_at tooltip=true lang=lang %} + + {% endif %} +
- - {{ site.data.locales[lang].post.views }} - {% include post-counter.html %} - +
+ + {% include post-counter.html tooltip=true lang=lang %} +
+
{% if page.image %} - {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %} - {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %} - {% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %} + {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %} + {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %} + {% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %} - {% capture lqip %} - {% if page.image.lqip %} - lqip="{{ page.image.lqip }}" - {% endif %} - {% endcapture %} + {% capture lqip %} + {% if page.image.lqip %} + lqip="{{ page.image.lqip }}" + {% endif %} + {% endcapture %} -
- - {%- if page.image.alt -%} -
{{ page.image.alt }}
- {%- endif -%} -
+
+ + {%- if page.image.alt -%} +
{{ page.image.alt }}
+ {%- endif -%} +
{% endif %}
{% if page.author %} - {% assign authors = page.author %} + {% assign authors = page.author %} {% elsif page.authors %} - {% assign authors = page.authors %} + {% assign authors = page.authors %} {% endif %} {{ site.data.locales[lang].post.written_by }} - {% if authors %} + {% if authors %} {% for author in authors %} - {{ site.data.authors[author].name }} - {% unless forloop.last %}, {% endunless %} + {{ site.data.authors[author].name }} + {% unless forloop.last %}, {% endunless %} {% endfor %} - {% else %} + {% else %} {{ site.social.name }} - {% endif %} + {% endif %} @@ -96,8 +101,8 @@ tail_includes: {% endif %} @@ -106,12 +111,11 @@ tail_includes: {% if page.tags.size > 0 %} {% endif %} @@ -121,13 +125,13 @@ tail_includes: {% if site.data.locales[lang].copyright.license.template %} - {% capture _replacement %} - - {{ site.data.locales[lang].copyright.license.name }} - - {% endcapture %} + {% capture _replacement %} + + {{ site.data.locales[lang].copyright.license.name }} + + {% endcapture %} - {{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }} + {{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }} {% endif %}
@@ -136,4 +140,4 @@ tail_includes:
- + \ No newline at end of file