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:
5
layouts/notes/baseof.html
Normal file
5
layouts/notes/baseof.html
Normal 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
17
layouts/notes/list.html
Normal 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
27
layouts/notes/single.html
Normal 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" }} · {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} · {{ .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 }}
|
Reference in New Issue
Block a user