From f74e559144a6d8cf6556a313e202031555099620 Mon Sep 17 00:00:00 2001 From: Hanwen Guo Date: Sat, 30 Nov 2024 22:11:23 -0700 Subject: [PATCH] feat(css): align back link and time in post head into one line --- assets/css/main.scss | 6 +++++- layouts/posts/baseof.html | 8 ++++++++ layouts/posts/single.html | 7 ------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/assets/css/main.scss b/assets/css/main.scss index ae2a791..e6ccc87 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -83,7 +83,11 @@ body { overflow-wrap: break-word; } -.post-meta { text-align: right; } +.post-meta { + display: flex; + justify-content: space-between; + align-items: center; +} h2, h3, h4, h5, h6 { margin-top: 0.5rem; } diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index b2d4e69..84ff842 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -4,6 +4,14 @@
+ {{- block "main" . }}{{- end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index a09cee2..b3debe2 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,13 +1,6 @@ {{ define "main" }} -{{ partial "back_link.html" .}}
- -

{{ .Title }}

{{ if .Params.toc }}