diff options
-rw-r--r-- | layouts/_default/single.html | 51 | ||||
-rw-r--r-- | layouts/partials/full_post.html | 9 | ||||
-rw-r--r-- | static/style.css | 17 |
3 files changed, 49 insertions, 28 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bc058fb7..1ef78b36 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,45 @@ {{ define "main" }} <article> - {{ partial "partials/full_post.html" . }} + <a href="{{ .Page.Permalink }}"> + <h2>{{ .Page.Title }}</h2> + </a> + {{- if not (eq .Page.Type "special") }} + <time datetime="{{.PublishDate }}"> + {{ .PublishDate.Format "January 2, 2006" }} + </time> + {{- end }} + <div> + {{ .Page.Content }} + </div> -{{- if not (in .Params.category "pages") }} - <BR> - {{- if isset .Params "tags" -}} + {{- if not (in .Params.category "pages") }} + <aside> + {{- if isset .Params "tags" -}} {{- $tagsLen := len .Params.tags -}} {{- if gt $tagsLen 0 -}} - with tags: - {{- range $k, $v := .Params.tags -}} - {{- $url := printf "tags/%s" (. | urlize | lower) -}} - <a href="{{ $url | absURL }}"> {{ . | title }}</a> - {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} - {{- end -}} + <h3>Tags</h3> + {{- range $k, $v := .Params.tags -}} + {{- $url := printf "tags/%s" (. | urlize | lower) -}} + <a href="{{ $url | absURL }}"> {{ . | title }}</a> + {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} {{- end -}} + {{- end -}} + </aside> {{- end }} + {{- if not (eq .Page.Type "special") }} + <aside> + <h3>Author</h3> + <p> + Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! + </p> + <p> + I don't have any commenting system, but comments over <a href="/about#contact">email</a> are more than welcome! + </p> + </aside> + {{- end }} </article> - {{ if or .Next .Prev -}} - <div> - {{- with .Prev }} <a class="prev-link" href="{{ .RelPermalink}}"> ← Previous</a> {{ end -}} - {{- with .Next -}}<a class="next-link" href="{{ .RelPermalink}}">Next →</a> {{ end -}} - </div> - {{ end -}} - - {{ end }} +{{ end }} {{ end }} diff --git a/layouts/partials/full_post.html b/layouts/partials/full_post.html index 407fee37..e69de29b 100644 --- a/layouts/partials/full_post.html +++ b/layouts/partials/full_post.html @@ -1,9 +0,0 @@ -<a href="{{ .Page.Permalink }}"> - <h2>{{ .Page.Title }}</h2> -</a> -{{- if not (eq .Page.Type "special") }} - {{ .PublishDate.Format "January 2, 2006" }} -{{- end }} -<div> - {{ .Page.Content }} -</div> diff --git a/static/style.css b/static/style.css index fde2bd9a..1145c0f5 100644 --- a/static/style.css +++ b/static/style.css @@ -94,7 +94,7 @@ h1 { #top-nav a { margin-right: 5px; } - + /* ---------- Main */ main { @@ -126,6 +126,10 @@ article a { } h3 { text-align: left; + border: 0; + border-bottom-width: 1px; + border-style: solid; + font-size: inherit; } a h2{ text-decoration: none; @@ -197,3 +201,14 @@ a[href^="#fn:"]:after{ content: ']' } .footnotes p { margin: 3px; } +.footnotes hr { + display: none +} +.footnotes::before { + content: "References"; + border: 0; + border-bottom-width: 1px; + border-style: solid; + font-weight: bold; + display: block;; +} |