Redid header style, wrapped content in main tag

This commit is contained in:
Brandon Rozek 2022-05-08 16:11:05 -04:00
parent ddaa281397
commit 0824107def
10 changed files with 147 additions and 48 deletions

View file

@ -1,5 +1,6 @@
{{ define "main"}}
{{ partial "header.html" . }}
<main>
<!-- search box -->
<div id="searchBox">
<input type="text" id="searchBoxInput" placeholder="Search..." />
@ -28,6 +29,7 @@
{{ end }}
{{ end }}
</div>
</main>
{{ partial "footer.html" . }}
{{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }}
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}

View file

@ -1,7 +1,11 @@
{{ define "main"}}
<article class="h-entry">
<h1 class='title p-name'>{{ .Title }}</h1>
{{ .Scratch.Set "customTitleHeaderSet" true }}
{{ .Scratch.Set "customTitleHeader" "Blog" }}
{{ .Scratch.Set "customTitleHeaderLink" "/blog" }}
{{ partial "header.html" . }}
<main>
<h1 class='title'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<!-- date -->
{{ if not .Date.IsZero }}
@ -46,6 +50,7 @@
<input type="hidden" name="target" value="{{ .Permalink }}">
<button type="submit">Ping!</button>
</form>
</main>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
<script src="{{ $webmentionjs.Permalink }}" async></script>
<!-- Metadata -->

View file

@ -1,6 +1,7 @@
{{ define "main"}}
{{ partial "header.html" }}
<h1>{{ .Title }}</h1>
{{ partial "header.html" . }}
<main>
<!-- tags -->
<div id="tags">
<ul>
@ -9,5 +10,6 @@
{{ end }}
</ul>
</div>
</main>
{{ partial "footer.html" . }}
{{ end }}