1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 15:25:31 -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,21 +1,21 @@
{{ 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>
<ul> <ul>
{{ range .Pages }} {{ range .Pages }}
<li class="item"> <li class="item">
<div class="date">{{ .Date.Format "Jan 2" }}</div> <div class="date">{{ .Date.Format "Jan 2" }}</div>
<div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></div> <div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
</li> </li>
{{ end }} {{ end }}
</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 }} </div>
{{ end }} </div>
</div>
<div id="content">
{{ .Content }}
</div> </div>
</div> </div>
</div>
{{ if .Site.Params.enableToc }}
{{ if .TableOfContents }}
<div id="toc">
{{ .TableOfContents }}
</div>
{{ end }}
{{ end }}
<div id="content">
{{ .Content }}
</div>
</div>
{{ partial "blog-footer.html" . }} {{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View File

@@ -1,6 +1,6 @@
<div id="header"> <div id="header">
{{ if eq .Kind "page" }}<a href="{{ "notes/" | absURL }}" id="more" title="More Posts">&laquo; More Posts</a>{{ else }}<a href="{{ .Site.BaseURL }}" id="more" title="Return Home">&laquo; Return Home</a>{{ end }} {{ if eq .Kind "page" }}<a href="{{ "notes/" | absURL }}" id="more" title="More Posts">&laquo; More Posts</a>{{ else }}<a href="{{ .Site.BaseURL }}" id="more" title="Return Home">&laquo; Return Home</a>{{ end }}
<a href="{{ .Site.BaseURL }}" id="logo" title="Jake Jarvis"> <a href="{{ .Site.BaseURL }}" id="logo" title="Jake Jarvis">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 144.1"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 144.1">
<title>Jake Jarvis</title> <title>Jake Jarvis</title>
<polygon fill="#6fbc4e" points="57.6 88.7 19.2 110.9 19.2 110.9 38.4 121.9 76.8 99.8 76.8 99.8 57.6 88.7 57.6 88.7"/> <polygon fill="#6fbc4e" points="57.6 88.7 19.2 110.9 19.2 110.9 38.4 121.9 76.8 99.8 76.8 99.8 57.6 88.7 57.6 88.7"/>