fix title sections
This commit is contained in:
parent
821ae59118
commit
bc1bce58ce
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
{{ partial "html-meta.html" . -}}
|
{{ partial "html-meta.html" . -}}
|
||||||
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
<title>{{ if not (or .IsHome .IsSection) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||||
{{ $css := resources.Get "style.scss" | resources.ToCSS (dict "transpiler" "dartsass" "enableSourceMap" false) | resources.Fingerprint }}
|
{{ $css := resources.Get "style.scss" | resources.ToCSS (dict "transpiler" "dartsass" "enableSourceMap" false) | resources.Fingerprint }}
|
||||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||||
{{ with .Site.Params.favicon -}}
|
{{ with .Site.Params.favicon -}}
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<div>
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
{{ .Content -}}
|
{{ .Content -}}
|
||||||
</div>
|
</div>
|
||||||
@ -13,5 +10,4 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user