layout stuffz

This commit is contained in:
parent 27517de0a0
commit 722233edab
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
8 changed files with 38 additions and 6 deletions

@ -72,6 +72,7 @@
{{ define "main" }}
<article class="markdown">
<h1 class="title">{{ partial "docs/title.html" . }}</h1>
{{ partial "docs/inject/before-title.html" . }}
{{partial "quartz/textprocessing" . }}
{{ partial "quartz/footer" .}}
{{/* {{- .Content -}} */}}

@ -0,0 +1,31 @@
<div id="tabs-post-meta">
<div class="big-meta">
<div class="book-columns flex flex-wrap">
{{if or (eq .Type "writing") (eq .Type "fic")}}
<div class="gridmaybe">
<b class="meta-field">Words:</b>
<span class="meta-value">
{{.WordCount}}
</span>
</div>
{{end}}
</div>
</div>
<span class="post-date">
{{.Date.Format $.Site.Params.BookDateFormat }}
</span>
<div>
<div class="tags-heading">
<h3 class="small-caps">
tags
</h3>
</div>
<div class="tag-container">
{{ range $.Params.tags }}
<div class="post-tag">
<a href="/tags/{{ . }}">{{ . }}</a> <!-- The . represents an element in $array -->
</div>
{{ end }}
</div>
</div>
</div>

@ -8,9 +8,9 @@
{{ $year := dateFormat "2006" now }}
<p>{{ i18n "copyright" (dict "name" $name "year" $year) | safeHTML}}</p>
<ul>
{{ if not .IsHome }}
<!-- {{ if not .IsHome }}
<li><a href="{{ $.Site.BaseURL}}">{{ i18n "home" }}</a></li>
{{end}}
{{end}} -->
{{- range $data.links | default $.Site.Params.links -}}
<li><a href="{{.link}}">{{.link_name}}</a></li>
{{- end -}}

@ -1,7 +1,7 @@
{{if .Date}}
{{.Date.Format "Jan 2, 2006"}}
{{.Date.Format $.Site.Params.BookDateFormat}}
{{else if .Lastmod}}
{{.Lastmod.Format "Jan 2, 2006"}}
{{.Lastmod.Format $.Site.Params.BookDateFormat}}
{{else}}
Unknown
{{end}}

@ -2,7 +2,7 @@
<hr/>
{{/* {{if $.Site.Params.enableFooter}} */}}
{{if $.Site.Params.enableFooter}}
<div class="page-end" id="footer">
<div class="backlinks-container">
{{partial "quartz/backlinks.html" .}}
@ -11,6 +11,6 @@
{{partial "quartz/graph.html" .}}
</div>
</div>
{{/* {{end}} */}}
{{end}}
{{partial "quartz/contact" .}}