actually display site title

hugo
Jacky Zhao 3 years ago
parent 69c86e407f
commit 3a98c8b554

@ -8,6 +8,7 @@ ignoreFiles = [
"/content/templates/*", "/content/templates/*",
"/content/private/*", "/content/private/*",
] ]
title = "🪴 Quartz v3"
[markup] [markup]
[markup.tableOfContents] [markup.tableOfContents]
@ -24,4 +25,4 @@ ignoreFiles = [
lineNos = true lineNos = true
lineNumbersInTable = true lineNumbersInTable = true
style = "dracula" style = "dracula"
tabWidth = 4 tabWidth = 4

@ -7,19 +7,20 @@
<div class="singlePage"> <div class="singlePage">
<!-- Begin actual content --> <!-- Begin actual content -->
<header> <header>
{{if .Title}}<h1>{{ .Title }}</h1>{{end}} <h1 id="page-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
<svg tabindex="0" id="search-icon" aria-labelledby="title desc" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title id="title">Search Icon</title><desc id="desc">Icon to open search</desc><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"/><circle cx="8" cy="8" r="7"/></g></svg> <svg tabindex="0" id="search-icon" aria-labelledby="title desc" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title id="title">Search Icon</title><desc id="desc">Icon to open search</desc><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"/><circle cx="8" cy="8" r="7"/></g></svg>
<div class="spacer"></div> <div class="spacer"></div>
{{partial "darkmode.html" .}} {{partial "darkmode.html" .}}
</header> </header>
<article> <article>
{{if $.Site.Data.config.enableToc}} {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
<aside class="mainTOC"> {{if $.Site.Data.config.enableToc}}
<h3>Table of Contents</h3> <aside class="mainTOC">
{{ .TableOfContents }} <h3>Table of Contents</h3>
</aside> {{ .TableOfContents }}
{{end}} </aside>
{{.Content}} {{end}}
{{.Content}}
</article> </article>
{{partial "footer.html" .}} {{partial "footer.html" .}}
</div> </div>

Loading…
Cancel
Save