From 9ac8ff10129c1c83604eb334820b211e64c9ab28 Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 31 Oct 2023 15:46:36 +0900 Subject: [PATCH] edited post --- config.yml | 2 +- themes/mytheme/assets/css/common/main.css | 2 +- themes/mytheme/assets/css/common/post-entry.css | 8 -------- themes/mytheme/assets/css/common/post-single.css | 8 +++----- themes/mytheme/layouts/404.html | 3 --- themes/mytheme/layouts/{shortcodes => m}/chat.html | 0 themes/mytheme/layouts/{shortcodes => m}/collapse.html | 0 themes/mytheme/layouts/{shortcodes => m}/figure.html | 0 themes/mytheme/layouts/{shortcodes => m}/inTextImg.html | 0 themes/mytheme/layouts/{shortcodes => m}/ltr.html | 0 themes/mytheme/layouts/{shortcodes => m}/rawhtml.html | 0 themes/mytheme/layouts/{shortcodes => m}/rtl.html | 0 themes/mytheme/layouts/robots.txt | 7 ------- 13 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 themes/mytheme/layouts/404.html rename themes/mytheme/layouts/{shortcodes => m}/chat.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/collapse.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/figure.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/inTextImg.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/ltr.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/rawhtml.html (100%) rename themes/mytheme/layouts/{shortcodes => m}/rtl.html (100%) delete mode 100644 themes/mytheme/layouts/robots.txt diff --git a/config.yml b/config.yml index b98ce0a..59e7c25 100644 --- a/config.yml +++ b/config.yml @@ -30,7 +30,7 @@ params: ShowBreadCrumbs: false ShowCodeCopyButtons: true ShowWordCount: false - ShowRssButtonInSectionTermList: true + ShowRssButtonInSectionTermList: false UseHugoToc: true disableSpecial1stPost: false diff --git a/themes/mytheme/assets/css/common/main.css b/themes/mytheme/assets/css/common/main.css index 1b4750d..88c29e2 100644 --- a/themes/mytheme/assets/css/common/main.css +++ b/themes/mytheme/assets/css/common/main.css @@ -11,7 +11,7 @@ } .post-title-header { - margin: 24px auto calc(var(--content-gap) + 20px) auto; + margin: 24px auto var(--content-gap) auto; margin-left: var(--gap); } diff --git a/themes/mytheme/assets/css/common/post-entry.css b/themes/mytheme/assets/css/common/post-entry.css index 52cac9b..2b19878 100644 --- a/themes/mytheme/assets/css/common/post-entry.css +++ b/themes/mytheme/assets/css/common/post-entry.css @@ -1,11 +1,3 @@ -.main { - scroll-snap-type: y mandatory; -} - -.posts-entry-div { - scroll-snap-align: start; -} - .first-entry { scroll-snap-align: start; position: relative; diff --git a/themes/mytheme/assets/css/common/post-single.css b/themes/mytheme/assets/css/common/post-single.css index aa7fa35..426b9c4 100644 --- a/themes/mytheme/assets/css/common/post-single.css +++ b/themes/mytheme/assets/css/common/post-single.css @@ -1,10 +1,11 @@ .post-header { margin: 24px auto calc(var(--content-gap) + 20px) auto; + text-align: center; } .post-title { margin-top: 32px; - margin-bottom: 24px; + margin-bottom: 18px; font-size: 24px; padding-top: 32px; } @@ -14,12 +15,9 @@ margin-bottom: 5px; } -.post-meta, -.breadcrumbs { +.post-meta { color: var(--secondary); font-size: 14px; - display: flex; - flex-wrap: wrap; } .post-meta .i18n_list li { diff --git a/themes/mytheme/layouts/404.html b/themes/mytheme/layouts/404.html deleted file mode 100644 index a405573..0000000 --- a/themes/mytheme/layouts/404.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- define "main" }} -
404
-{{- end }}{{/* end main */ -}} diff --git a/themes/mytheme/layouts/shortcodes/chat.html b/themes/mytheme/layouts/m/chat.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/chat.html rename to themes/mytheme/layouts/m/chat.html diff --git a/themes/mytheme/layouts/shortcodes/collapse.html b/themes/mytheme/layouts/m/collapse.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/collapse.html rename to themes/mytheme/layouts/m/collapse.html diff --git a/themes/mytheme/layouts/shortcodes/figure.html b/themes/mytheme/layouts/m/figure.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/figure.html rename to themes/mytheme/layouts/m/figure.html diff --git a/themes/mytheme/layouts/shortcodes/inTextImg.html b/themes/mytheme/layouts/m/inTextImg.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/inTextImg.html rename to themes/mytheme/layouts/m/inTextImg.html diff --git a/themes/mytheme/layouts/shortcodes/ltr.html b/themes/mytheme/layouts/m/ltr.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/ltr.html rename to themes/mytheme/layouts/m/ltr.html diff --git a/themes/mytheme/layouts/shortcodes/rawhtml.html b/themes/mytheme/layouts/m/rawhtml.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/rawhtml.html rename to themes/mytheme/layouts/m/rawhtml.html diff --git a/themes/mytheme/layouts/shortcodes/rtl.html b/themes/mytheme/layouts/m/rtl.html similarity index 100% rename from themes/mytheme/layouts/shortcodes/rtl.html rename to themes/mytheme/layouts/m/rtl.html diff --git a/themes/mytheme/layouts/robots.txt b/themes/mytheme/layouts/robots.txt deleted file mode 100644 index f26f508..0000000 --- a/themes/mytheme/layouts/robots.txt +++ /dev/null @@ -1,7 +0,0 @@ -User-agent: * -{{- if hugo.IsProduction | or (eq site.Params.env "production") }} -Disallow: -{{- else }} -Disallow: / -{{- end }} -Sitemap: {{ "sitemap.xml" | absURL }}