update blog post design

This commit is contained in:
Vri 🌈 2023-03-15 15:08:49 +01:00
parent 14d2f476bc
commit 168405713a
Signed by: vrifox
GPG key ID: D40098E5B60B2197
5 changed files with 23 additions and 21 deletions

View file

@ -36,6 +36,7 @@
font-size: 3.5rem; font-size: 3.5rem;
margin: 0 auto; margin: 0 auto;
max-width: 1000px; max-width: 1000px;
@media (max-width: 1140px) { @media (max-width: 1140px) {
font-size: 2.5rem; font-size: 2.5rem;
} }
@ -45,7 +46,11 @@
letter-spacing: 0.15rem; letter-spacing: 0.15rem;
margin: 0 auto; margin: 0 auto;
max-width: 1000px; max-width: 1000px;
}
span:not(:first-of-type)::before {
content: "·";
margin: 0 1rem 0 0.6rem;
} }
} }

View file

@ -4,6 +4,7 @@ title: "Vris Cute Corner"
enableRobotsTXT: true enableRobotsTXT: true
defaultContentLanguage: de defaultContentLanguage: de
defaultContentLanguageInSubdir: true defaultContentLanguageInSubdir: true
enableGitInfo: true
params: params:
avatar: "2021_vrifox-avatar.png" avatar: "2021_vrifox-avatar.png"

View file

@ -34,4 +34,9 @@ latest-posts-heading:
blog-heading: blog-heading:
other: Artikel other: Artikel
blog-sub: blog-sub:
other: aus meinem Blog other: aus meinem Blog
blog-post-published:
other: Veröffentlicht am
blog-post-updated:
other: Aktualisiert am

View file

@ -34,4 +34,9 @@ latest-posts-heading:
blog-heading: blog-heading:
other: Articles other: Articles
blog-sub: blog-sub:
other: from my Blog other: from my Blog
blog-post-published:
other: Published on
blog-post-updated:
other: Updated on

View file

@ -6,29 +6,15 @@
{{- define "header" }} {{- define "header" }}
<header id="blog-header"> <header id="blog-header">
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
<p title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p> <p>
<span id="blog-post-published" title="{{ i18n "blog-post-published" }} {{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</span>
<span id="blog-post-updated" title="{{ i18n "blog-post-updated" }} {{ .Lastmod | time.Format "2. January 2006, 15:04 MST" }}">{{ .Lastmod | time.Format "2. January 2006" }}</span>
</p>
</header> </header>
{{ end }} {{ end }}
{{- define "main" }} {{- define "main" }}
<main> <main>
{{ .Content -}} {{ .Content -}}
<aside>
{{- with .Params.topics }}
<ul class="topics">
{{- range . }}
<li>
<a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
</ul>
{{- end }}
{{- with .Params.tags }}
tags
{{- range . }}
<a href='{{ "tags" | relURL }}/{{ . | urlize }}'>{{ . }}</a>
{{- end }}
{{- end }}
</aside>
</main> </main>
{{- end }} {{- end }}