From c14db6ba749241a62b8915cf843183c188438772 Mon Sep 17 00:00:00 2001 From: Sungchan Yi Date: Tue, 13 Aug 2024 13:55:11 +0900 Subject: [PATCH] feat: update templates --- _data/locales/en.yml | 86 ----------------------- _layouts/post.html | 163 ++++++++++++++++++++++++------------------- 2 files changed, 91 insertions(+), 158 deletions(-) diff --git a/_data/locales/en.yml b/_data/locales/en.yml index 6e65110..17f7d65 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -1,91 +1,5 @@ -# The layout text of site - -# ----- Commons label ----- - -layout: - post: Post - category: Category - tag: Tag - -# The tabs of sidebar -tabs: - # format: : - home: Home - categories: Categories - tags: Tags - archives: Archives - about: About - -# the text displayed in the search bar & search results -search: - hint: search - cancel: Cancel - no_results: Oops! No results found. - -panel: - lastmod: Recently Updated - trending_tags: Trending Tags - toc: Contents - copyright: - # Shown at the bottom of the post - license: - template: This post is licensed under :LICENSE_NAME by the author. - name: CC BY 4.0 - link: https://creativecommons.org/licenses/by/4.0/ - # Displayed in the footer brief: All rights reserved. - verbose: >- - Except where otherwise noted, the blog posts on this site are licensed - under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author. meta: "" - -not_found: - statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. - -notification: - update_found: A new version of content is available. - update: Update - -# ----- Posts related labels ----- - -post: - written_by: By - posted: Posted - updated: Updated - words: words - pageview_measure: views - read_time: - unit: min - prompt: read - relate_posts: Further Reading - share: Share - button: - next: Newer - previous: Older - copy_code: - succeed: Copied! - share_link: - title: Copy link - succeed: Link copied successfully! - -# Date time format. -# See: , -df: - post: - strftime: "%b %e, %Y" - dayjs: "ll" - archives: - strftime: "%b" - dayjs: "MMM" - -# categories page -categories: - category_measure: - singular: category - plural: categories - post_measure: - singular: post - plural: posts diff --git a/_layouts/post.html b/_layouts/post.html index 5f2f41b..584e4e7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,5 +1,5 @@ --- -layout: page +layout: default refactor: true panel_includes: - toc @@ -11,98 +11,117 @@ tail_includes: {% include lang.html %} -
-

{{ page.title }}

+
+
+

{{ page.title }}

+ {% if page.description %} +

{{ page.description }}

+ {% endif %} -
+
-
- {{ content }} -
+
{{ content }}
-
- - {% if page.categories.size > 0 %} +
+ + {% if page.categories.size > 0 %} - {% endif %} + {% endif %} - - {% if page.tags.size > 0 %} + + {% if page.tags.size > 0 %} - {% endif %} + {% endif %} -
-
- {% if site.data.locales[lang].copyright.license.template %} - {% capture _replacement %} +
+
+ {% if site.data.locales[lang].copyright.license.template %} {% capture + _replacement %} {{ site.data.locales[lang].copyright.license.name }} - {% endcapture %} + {% endcapture %} {{ site.data.locales[lang].copyright.license.template | + replace: ':LICENSE_NAME', _replacement }} {% endif %} +
- {{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }} - {% endif %} + {% include post-sharing.html lang=lang %}
- - {% include post-sharing.html lang=lang %} +
- -
- + +