fix title sections
This commit is contained in:
parent
821ae59118
commit
bc1bce58ce
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
{{ 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 }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||
{{ with .Site.Params.favicon -}}
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{{ define "main" -}}
|
||||
<div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
<div>
|
||||
{{ .Content -}}
|
||||
</div>
|
||||
|
@ -13,5 +10,4 @@
|
|||
</li>
|
||||
{{ end -}}
|
||||
</ul>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue