1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-20 22:01:18 -04:00

cleaned up HTML output

This commit is contained in:
2019-04-02 13:11:37 -04:00
parent 91cbf98449
commit ccd30a9e2b
3 changed files with 31 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
{{ partial "blog-header.html" . }} {{ partial "blog-header.html" . }}
<div id="archive"> <div id="archive">
{{ range .Data.Pages.GroupByDate "2006" }} {{ range .Data.Pages.GroupByDate "2006" }}
<div class="year"> <div class="year">
<h2>{{ .Key }}</h2> <h2>{{ .Key }}</h2>
@@ -15,7 +15,7 @@
</ul> </ul>
</div> </div>
{{ end }} {{ end }}
</div> </div>
{{ partial "blog-footer.html" . }} {{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View File

@@ -1,31 +1,22 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
{{ partial "blog-header.html" . }} {{ partial "blog-header.html" . }}
<div id="single"> <div id="single">
<div id="info"> <div id="info">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="meta"> <div class="meta">
{{ .Date.Format "January 2, 2006" }} &middot; {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} &middot; {{ .ReadingTime }} minute read {{ .Date.Format "January 2, 2006" }} &middot; {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} &middot; {{ .ReadingTime }} minute read
<div class="tags"> <div class="tags">
{{ with .Params.tags }} {{ with .Params.tags }}{{ if ge (len .) 1 }}
{{ if ge (len .) 1 }}
{{ range . }}<span class="tag"><!--<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">-->{{ . }}<!--</a>--></span> {{ end }} {{ range . }}<span class="tag"><!--<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">-->{{ . }}<!--</a>--></span> {{ end }}
{{ end }} {{ end }}{{ end }}
{{ end }}
</div> </div>
</div> </div>
</div> </div>
{{ if .Site.Params.enableToc }}
{{ if .TableOfContents }}
<div id="toc">
{{ .TableOfContents }}
</div>
{{ end }}
{{ end }}
<div id="content"> <div id="content">
{{ .Content }} {{ .Content }}
</div>
</div> </div>
</div>
{{ partial "blog-footer.html" . }} {{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}