1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 03:01:17 -04:00

moved blog to hugo! lots of stuff still to do 😬

This commit is contained in:
2019-03-31 11:08:29 -04:00
parent 9de55032ce
commit 2cf35eb44f
49 changed files with 764 additions and 1397 deletions

View File

@@ -0,0 +1,5 @@
{{ partial "header.html" . }}
{{ partial "blog-header.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }}

17
layouts/notes/list.html Normal file
View File

@@ -0,0 +1,17 @@
{{ define "main" }}
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="year">
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
<li class="item">
<div class="date">{{ .Date.Format "Jan 2" }}</div>
<div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}

27
layouts/notes/single.html Normal file
View File

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