From 84134b79c3c121d0940a4f1f7e7197fa5572440f Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 7 Nov 2023 08:02:06 +0900 Subject: [PATCH] Fix --- config.yml | 4 ++- .../oldtheme/assets/css/common/post-entry.css | 24 +++++++++++--- .../oldtheme/assets/css/core/theme-vars.css | 4 +-- themes/oldtheme/layouts/m/chat.html | 12 ------- themes/oldtheme/layouts/m/collapse.html | 8 ----- themes/oldtheme/layouts/m/figure.html | 31 ------------------- themes/oldtheme/layouts/m/inTextImg.html | 5 --- themes/oldtheme/layouts/m/ltr.html | 15 --------- themes/oldtheme/layouts/m/rawhtml.html | 2 -- themes/oldtheme/layouts/m/rtl.html | 15 --------- themes/oldtheme/layouts/partials/head.html | 3 ++ themes/oldtheme/layouts/partials/header.html | 4 ++- 12 files changed, 30 insertions(+), 97 deletions(-) delete mode 100644 themes/oldtheme/layouts/m/chat.html delete mode 100644 themes/oldtheme/layouts/m/collapse.html delete mode 100644 themes/oldtheme/layouts/m/figure.html delete mode 100644 themes/oldtheme/layouts/m/inTextImg.html delete mode 100644 themes/oldtheme/layouts/m/ltr.html delete mode 100644 themes/oldtheme/layouts/m/rawhtml.html delete mode 100644 themes/oldtheme/layouts/m/rtl.html diff --git a/config.yml b/config.yml index d60ed32..cf49a63 100644 --- a/config.yml +++ b/config.yml @@ -1,6 +1,6 @@ baseURL: "http://blog.morgan.kr" title: Morgan's Blog -theme: "mytheme" +theme: "oldtheme" buildDrafts: false buildFuture: false @@ -46,6 +46,8 @@ params: tocopen: false homeInfoParams: Title: Hi, I'm Morgan. + Content: Student Developer + socialIcons: - name: github url: "https://github.com/morgan9e" diff --git a/themes/oldtheme/assets/css/common/post-entry.css b/themes/oldtheme/assets/css/common/post-entry.css index 2b19878..99bda23 100644 --- a/themes/oldtheme/assets/css/common/post-entry.css +++ b/themes/oldtheme/assets/css/common/post-entry.css @@ -1,12 +1,13 @@ .first-entry { - scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: center; + align-items: center; min-height: 320px; - height: calc(100vh - var(--header-height) * 2 - var(--gap) * 2); - margin: 0 0 var(--header-height) calc(var(--gap) * 2); + height: calc(100vh - var(--header-height) * 2 - var(--gap) * 1); + margin: 0 0 calc(var(--header-height) + var(--gap) * 3) 0; + border-bottom: solid 1px #EFEFEF; } .first-entry .entry-header { @@ -17,20 +18,32 @@ } .first-entry .entry-header h1 { - font-size: 24px; + font-size: 28px; line-height: 1.3; } .first-entry .entry-content { - margin: 14px 0; + margin: 24px 0; font-size: 16px; -webkit-line-clamp: 3; } .first-entry .entry-footer { + position: absolute; + width: 80%; + padding: 4px 0; + margin: 0 auto; + border-radius: 32px; + display: flex; + justify-content: center; + border-top: solid 1px #DDD; + bottom: 0; font-size: 14px; } +.posts-entry-div { +} + .home-info .entry-content { -webkit-line-clamp: unset; } @@ -54,6 +67,7 @@ } .entry-header h2 { + font-weight: 450; font-size: 18px; line-height: 1.3; } diff --git a/themes/oldtheme/assets/css/core/theme-vars.css b/themes/oldtheme/assets/css/core/theme-vars.css index 78da7cf..3b50d40 100644 --- a/themes/oldtheme/assets/css/core/theme-vars.css +++ b/themes/oldtheme/assets/css/core/theme-vars.css @@ -3,7 +3,7 @@ --content-gap: 20px; --nav-width: 800px; --main-width: 800px; - --header-height: 60px; + --header-height: 0px; --footer-height: 60px; --radius: 8px; --theme: white; @@ -30,7 +30,7 @@ } .list { - background: var(--code-bg); + background: var(--theme); } .dark.list { diff --git a/themes/oldtheme/layouts/m/chat.html b/themes/oldtheme/layouts/m/chat.html deleted file mode 100644 index 526a75f..0000000 --- a/themes/oldtheme/layouts/m/chat.html +++ /dev/null @@ -1,12 +0,0 @@ - - -
- diff --git a/themes/oldtheme/layouts/m/collapse.html b/themes/oldtheme/layouts/m/collapse.html deleted file mode 100644 index 17d8d3b..0000000 --- a/themes/oldtheme/layouts/m/collapse.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ if .Get "summary" }} -{{ else }} -{{ warnf "missing value for param 'summary': %s" .Position }} -{{ end }} -

- {{ .Get "summary" | markdownify }} - {{ .Inner | markdownify }} -

diff --git a/themes/oldtheme/layouts/m/figure.html b/themes/oldtheme/layouts/m/figure.html deleted file mode 100644 index 8c93eff..0000000 --- a/themes/oldtheme/layouts/m/figure.html +++ /dev/null @@ -1,31 +0,0 @@ - - {{- if .Get "link" -}} - - {{- end }} - {{ with .Get - {{- if .Get "link" }}{{ end -}} - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
- {{ with (.Get "title") -}} - {{ . }} - {{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

- {{- .Get "caption" | markdownify -}} - {{- with .Get "attrlink" }} - - {{- end -}} - {{- .Get "attr" | markdownify -}} - {{- if .Get "attrlink" }}{{ end }}

- {{- end }} -
- {{- end }} - diff --git a/themes/oldtheme/layouts/m/inTextImg.html b/themes/oldtheme/layouts/m/inTextImg.html deleted file mode 100644 index 0239fd6..0000000 --- a/themes/oldtheme/layouts/m/inTextImg.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- $Img := (.Get "url") }} -{{- $height := (.Get "height") }} -{{- $alt := (.Get "alt") }} - -{{$alt}} diff --git a/themes/oldtheme/layouts/m/ltr.html b/themes/oldtheme/layouts/m/ltr.html deleted file mode 100644 index 4ad7682..0000000 --- a/themes/oldtheme/layouts/m/ltr.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $.Scratch.Set "md" false }} - -{{ if .IsNamedParams }} -{{ $.Scratch.Set "md" (.Get "md") }} -{{ else }} -{{ $.Scratch.Set "md" (.Get 0) }} -{{ end }} - -
- {{ if eq ($.Scratch.Get "md") false }} - {{ .Inner }} - {{ else }} - {{ .Inner | markdownify }} - {{ end }} -
diff --git a/themes/oldtheme/layouts/m/rawhtml.html b/themes/oldtheme/layouts/m/rawhtml.html deleted file mode 100644 index 9350c13..0000000 --- a/themes/oldtheme/layouts/m/rawhtml.html +++ /dev/null @@ -1,2 +0,0 @@ - -{{- .Inner -}} \ No newline at end of file diff --git a/themes/oldtheme/layouts/m/rtl.html b/themes/oldtheme/layouts/m/rtl.html deleted file mode 100644 index a69b8ce..0000000 --- a/themes/oldtheme/layouts/m/rtl.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $.Scratch.Set "md" false }} - -{{ if .IsNamedParams }} -{{ $.Scratch.Set "md" (.Get "md") }} -{{ else }} -{{ $.Scratch.Set "md" (.Get 0) }} -{{ end }} - -
- {{ if eq ($.Scratch.Get "md") false }} - {{ .Inner }} - {{ else }} - {{ .Inner | markdownify }} - {{ end }} -
diff --git a/themes/oldtheme/layouts/partials/head.html b/themes/oldtheme/layouts/partials/head.html index 18318db..fda38e9 100644 --- a/themes/oldtheme/layouts/partials/head.html +++ b/themes/oldtheme/layouts/partials/head.html @@ -179,6 +179,9 @@ {{- partial "extend_head.html" . -}} + + + {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- template "_internal/google_analytics.html" . }} diff --git a/themes/oldtheme/layouts/partials/header.html b/themes/oldtheme/layouts/partials/header.html index 2797ee1..60d4a7b 100644 --- a/themes/oldtheme/layouts/partials/header.html +++ b/themes/oldtheme/layouts/partials/header.html @@ -1,4 +1,5 @@
+ {{- if false }} + {{- end }}
{{- /* theme-toggle is enabled */}} @@ -145,4 +147,4 @@ } -{{- end }} \ No newline at end of file +{{- end }}