Add subtitle to posts

This commit is contained in:
2021-09-22 16:15:55 +02:00
parent f006f7aad8
commit 9c2dd10082
6 changed files with 29 additions and 2 deletions
+13
View File
@@ -31,6 +31,19 @@
}
}
&-subtitle {
font-size: 1.9rem;
margin: -15px 0 20px;
@media #{$media-size-phone} {
font-size: 1.6rem;
}
a {
text-decoration: none;
}
}
&-tags {
display: block;
margin-bottom: 20px;
+7 -1
View File
@@ -40,10 +40,16 @@
.post {
&-title {
font-size: 1rem;
font-size: 1.9rem;
margin: 5px 0 5px 0;
}
&-subtitle {
font-size: 1.2rem;
margin: 5px 0 10px 0;
font-weight: 600;
}
&-year {
padding-top: 6px;
margin-right: 1.8em;
@@ -16,6 +16,9 @@
{{ range $paginator.Pages }}
<div class="post">
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
{{- with .Params.Subtitle }}
<p class="post-subtitle">{{ . | markdownify }}</p>
{{- end }}
<div class="post-meta">
{{- if .Date }}
<span class="post-date">
@@ -24,6 +24,9 @@
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
{{- with .Params.Subtitle }}
<p class="post-subtitle">{{ . | markdownify }}</p>
{{- end }}
{{- if .Params.toc }}
<hr />