mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
10
themes/minimo/layouts/partials/header/bodyClasses.html
Normal file
10
themes/minimo/layouts/partials/header/bodyClasses.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- $sidebarEnabled := .Site.Params.sidebar.enable -}}
|
||||
{{- $sidebarWidgets := .Site.Params.widgets.sidebar -}}
|
||||
|
||||
{{- if eq .Kind "404" -}} error{{- end -}}{{- .Kind -}}
|
||||
{{- with .Type }} type-{{ . }}{{ end -}}
|
||||
{{- with .Layout }} layout-{{ . }}{{ end -}}
|
||||
{{- with .Data.Singular }} taxonomy-{{ . }}{{ end -}}
|
||||
{{- if .Params.cover }} has-cover{{ end -}}
|
||||
{{- if ( and $sidebarEnabled $sidebarWidgets ) }} has-sidebar{{ end -}}
|
||||
{{- if eq .Params.emoji true }} has-emoji{{ end -}}
|
5
themes/minimo/layouts/partials/header/description.html
Normal file
5
themes/minimo/layouts/partials/header/description.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ with .Description }}
|
||||
<p class='desc'>
|
||||
{{- . -}}
|
||||
</p>
|
||||
{{ end }}
|
24
themes/minimo/layouts/partials/header/header.html
Normal file
24
themes/minimo/layouts/partials/header/header.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<header class='header'>
|
||||
<div class='container sep-after'>
|
||||
<div class='header-info'>
|
||||
<h1 class='title'>
|
||||
{{- if eq .Kind "term" -}}
|
||||
<span class='taxonomy-name'>
|
||||
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) -}}
|
||||
{{- print ": " -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq .Kind "taxonomy" -}}
|
||||
{{- ( ( i18n .Data.Singular 2 ) | default .Title ) -}}
|
||||
{{- else if eq .Data.Singular "author" -}}
|
||||
{{- partial "data/author/displayName" . -}}
|
||||
{{- else -}}
|
||||
{{- .Title -}}
|
||||
{{- end -}}
|
||||
</h1>
|
||||
|
||||
{{ partial "header/description" . }}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
Reference in New Issue
Block a user