feat(css): align back link and time in post head into one line
This commit is contained in:
parent
028d21302f
commit
f74e559144
@ -83,7 +83,11 @@ body {
|
|||||||
overflow-wrap: break-word;
|
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; }
|
h2, h3, h4, h5, h6 { margin-top: 0.5rem; }
|
||||||
|
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
<body a="{{ $.Site.Params.theme_config.appearance | default "auto" }}">
|
||||||
<main class="page-content" aria-label="Content">
|
<main class="page-content" aria-label="Content">
|
||||||
<div class="w">
|
<div class="w">
|
||||||
|
<div class="post-meta">
|
||||||
|
{{ partial "back_link.html" .}}
|
||||||
|
<p>
|
||||||
|
<time datetime="{{ .Date }}">
|
||||||
|
{{ .Date | time.Format site.Params.theme_config.date_format }}
|
||||||
|
</time>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "back_link.html" .}}
|
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<p class="post-meta">
|
|
||||||
<time datetime="{{ .Date }}">
|
|
||||||
{{ .Date | time.Format site.Params.theme_config.date_format }}
|
|
||||||
</time>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
{{ if .Params.toc }}
|
{{ if .Params.toc }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user