Skip to content

Commit

Permalink
Improve title
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Sep 1, 2024
1 parent e3e12ce commit f5e4d64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{ define "title" -}}
{{ .Title }} · {{ .Site.Title }}
{{- if ne .Title "" -}}
{{- .Title }} · {{ .Site.Title -}}
{{- else -}}
{{- .Site.Title -}}
{{- end -}}
{{- end }}
{{ define "content" }}
{{- partial "header.html" . -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/html/head/theme.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{- $color := "" -}}

{{- if .Site.Params.pagetheme -}}
{{- $color = "" -}}
{{- $color = .Site.Params.pagetheme -}}
{{- end -}}

{{- if .Params.pagetheme -}}
{{- $color = "" -}}
{{- $color = .Params.pagetheme -}}
{{- end -}}

{{- if ne $color "" -}}
Expand Down

0 comments on commit f5e4d64

Please sign in to comment.