feat: improve headlines
This commit is contained in:
19
config.toml
19
config.toml
@@ -4,8 +4,12 @@ title = "Max Mehl"
|
|||||||
theme = [ "hugo-sustain", "hugo-cloak-email", "hugo-mastodon-comments", "hugo-snap-gallery" ]
|
theme = [ "hugo-sustain", "hugo-cloak-email", "hugo-mastodon-comments", "hugo-snap-gallery" ]
|
||||||
|
|
||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
codeFences = true
|
codeFences = true
|
||||||
style = "emacs"
|
style = "emacs"
|
||||||
|
# English quotation marks
|
||||||
|
[markup.goldmark.extensions.typographer]
|
||||||
|
leftDoubleQuote = '“'
|
||||||
|
rightDoubleQuote = '”'
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
blog = "/blog/:year/:slug"
|
blog = "/blog/:year/:slug"
|
||||||
@@ -20,9 +24,6 @@ style = "emacs"
|
|||||||
custom_css = ["comments/mastodon-comments.css"]
|
custom_css = ["comments/mastodon-comments.css"]
|
||||||
custom_js = ["comments/getcomments.js"]
|
custom_js = ["comments/getcomments.js"]
|
||||||
|
|
||||||
[params.blog]
|
|
||||||
headline = "Thoughts about tech, politics, and more"
|
|
||||||
|
|
||||||
[params.social]
|
[params.social]
|
||||||
Github = "mxmehl"
|
Github = "mxmehl"
|
||||||
Git = "https://src.mehl.mx/mxmehl"
|
Git = "https://src.mehl.mx/mxmehl"
|
||||||
@@ -47,17 +48,17 @@ style = "emacs"
|
|||||||
|
|
||||||
## Main Menu
|
## Main Menu
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "start"
|
name = "Start"
|
||||||
weight = 100
|
weight = 100
|
||||||
identifier = "start"
|
identifier = "start"
|
||||||
url = "/"
|
url = "/"
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "blog"
|
name = "Updates"
|
||||||
identifier = "blog"
|
identifier = "blog"
|
||||||
weight = 200
|
weight = 200
|
||||||
url = "/blog/"
|
url = "/blog/"
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "links"
|
name = "Links"
|
||||||
identifier = "links"
|
identifier = "links"
|
||||||
weight = 300
|
weight = 300
|
||||||
url = "/links/"
|
url = "/links/"
|
||||||
@@ -67,7 +68,7 @@ style = "emacs"
|
|||||||
weight = 400
|
weight = 400
|
||||||
url = "/it/"
|
url = "/it/"
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "contact"
|
name = "Contact"
|
||||||
identifier = "contact"
|
identifier = "contact"
|
||||||
weight = 500
|
weight = 500
|
||||||
url = "/contact/"
|
url = "/contact/"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
---
|
---
|
||||||
title: Blog
|
title: Updates and Thoughts
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ html, body {
|
|||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 a {
|
h2 a {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -110,11 +110,11 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-default {
|
&-default {
|
||||||
h4, h5 {
|
h2, h3, h4, h5 {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h2 {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
@@ -341,6 +341,7 @@ pre code {
|
|||||||
.luxbar-menu a,
|
.luxbar-menu a,
|
||||||
.luxbar-item a {
|
.luxbar-item a {
|
||||||
color: var(--dark-nav-color);
|
color: var(--dark-nav-color);
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.luxbar-menu-light .luxbar-hamburger span {
|
.luxbar-menu-light .luxbar-hamburger span {
|
||||||
@@ -359,12 +360,12 @@ pre code {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 span {
|
h2 span {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h4 a {
|
h2 a {
|
||||||
color: var(--primary-color-dark);
|
color: var(--primary-color-dark);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -9,11 +9,12 @@
|
|||||||
{{- $selection = true -}}
|
{{- $selection = true -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<div class="container archive">
|
<div class="container archive">
|
||||||
<h1>{{ .Site.Params.Blog.Headline }}
|
<!-- Page Title -->
|
||||||
{{- if $selection -}}
|
{{- if $selection }}
|
||||||
<br />({{ .Data.Singular | humanize }}: {{lower .Title}})
|
<h1>{{ (printf "Everything from %s \"%s\"" (.Data.Singular | humanize) (humanize .Title)) | markdownify }}</h1>
|
||||||
{{- end -}}
|
{{- else }}
|
||||||
</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{- end }}
|
||||||
{{ if .Site.Params.Social.CommentsProvider }}
|
{{ if .Site.Params.Social.CommentsProvider }}
|
||||||
<p><a href="{{ .Site.Params.Social.CommentsProvider }}">Subscribe</a> to my Blog via Diaspora, Mastodon, Friendica or GNU Social. Never miss a article! Reshare, like and discuss it!</p>
|
<p><a href="{{ .Site.Params.Social.CommentsProvider }}">Subscribe</a> to my Blog via Diaspora, Mastodon, Friendica or GNU Social. Never miss a article! Reshare, like and discuss it!</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -77,10 +78,10 @@
|
|||||||
<div class="blogpost">
|
<div class="blogpost">
|
||||||
{{ range .Paginator.Pages.ByPublishDate.Reverse }}
|
{{ range .Paginator.Pages.ByPublishDate.Reverse }}
|
||||||
<div class="blog-summary">
|
<div class="blog-summary">
|
||||||
<h4>
|
<h2>
|
||||||
{{ partial "blog/pre-headline.html" . -}}
|
{{ partial "blog/pre-headline.html" . -}}
|
||||||
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h4>
|
</h2>
|
||||||
<div class="metadata-summary">
|
<div class="metadata-summary">
|
||||||
{{- partial "blog/verb.html" . }}
|
{{- partial "blog/verb.html" . }}
|
||||||
on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}
|
on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
{{- if .Site.Menus.main -}}
|
{{- if .Site.Menus.main -}}
|
||||||
{{- range sort .Site.Menus.main -}}
|
{{- range sort .Site.Menus.main -}}
|
||||||
<!-- if RelPermalink = this menu item, mark it -->
|
<!-- if RelPermalink = this menu item, mark it -->
|
||||||
<li class="luxbar-item {{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name | upper }}</a></li>
|
<li class="luxbar-item {{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name }}</a></li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user