diff --git a/_config-prod.yml b/_config-prod.yml index 7d13ad5..be4c6c1 100644 --- a/_config-prod.yml +++ b/_config-prod.yml @@ -3,6 +3,9 @@ id: 'blog' url: "https://blog.kottedi.in" +show_drafts: false +future: false + # Custom configuration custom-config: blog-services: diff --git a/_config-uat.yml b/_config-uat.yml index c4415d7..c86625e 100644 --- a/_config-uat.yml +++ b/_config-uat.yml @@ -3,6 +3,9 @@ id: 'blog-uat' url: "https://blog-uat.kottedi.in" +show_drafts: true +future: true + # Custom configuration custom-config: blog-services: diff --git a/_config.yml b/_config.yml index 8bbe716..193e88c 100644 --- a/_config.yml +++ b/_config.yml @@ -198,8 +198,8 @@ jekyll-archives: tag: /tags/:name/ category: /categories/:name/ -show_drafts: false -future: false +show_drafts: true +future: true # Custom configuration diff --git a/_includes/loader.html b/_includes/loader.html new file mode 100644 index 0000000..cde5386 --- /dev/null +++ b/_includes/loader.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_includes/post-counter.html b/_includes/post-counter.html index 8072982..37335d7 100644 --- a/_includes/post-counter.html +++ b/_includes/post-counter.html @@ -1,36 +1,35 @@ - + +{% include loader.html id="postcountloader" %} + - - \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index d066479..7a723cc 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