This commit is contained in:
Luke Smith 2022-05-08 22:37:00 -04:00
parent dd78002586
commit e5645601a6
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
12 changed files with 47 additions and 26 deletions

View File

@ -7,7 +7,7 @@
{{ range.Pages }}
<li>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 2" }}</time> &ndash;
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> &ndash;
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>

10
layouts/_default/tag.html Normal file
View File

@ -0,0 +1,10 @@
{{ partial "header.html" . }}
<header><h1>{{ .Title | title }}</h1></header>
{{ .Content }}
<ul class=tagartlist>
{{ range.Pages }}<li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> &ndash; <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}</ul>
{{ partial "footer.html" . }}

View File

@ -1,7 +0,0 @@
{{ partial "header.html" . }}
<header><h1>{{ .Title }}</h1></header>
{{ .Content }}
{{ partial "footer.html" . }}

View File

@ -1,9 +1,7 @@
{{ partial "header.html" . }}
<header><h1>{{ .Site.Title }}</h1></header>
<header><h1>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</h1></header>
{{ .Content }}
{{ partial "tagcloud.html" . }}
{{ partial "footer.html" . }}

View File

@ -5,7 +5,7 @@
See related:</br>
{{ range $k, $v := .Params.tags }}
{{ $url := printf "tags/%s" (. | urlize | lower) }}
<a href="{{ $url | absURL }}">{{ . }}</a>
<a href="{{ $url | absURL }}">{{ . | title }}</a>
{{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }}
{{ end }}
</div>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='/style.css'>

View File

@ -1,7 +1,7 @@
<nav>
<ul>
{{ range.Site.Menus.main }}
<a href="{{ .URL }}"><li>{{ .Pre }}{{ .Name }}</li></a>
<ul>{{ $sec := .Page.Section }}{{ $file := .File.TranslationBaseName }}
{{ range.Site.Menus.main }}{{ $base := path.Base .URL }}
<a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><li><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></li></a>
{{ end }}
</ul>
</nav>

View File

@ -1,10 +0,0 @@
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}
{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}
<a href="{{ $url | absURL }}">{{ $name }}</a>
{{ end }}
</div>
{{ end }}
{{ end }}

View File

@ -4,6 +4,7 @@
loading="lazy"
sandbox="allow-same-origin allow-scripts allow-popups"
allowfullscreen frameborder="0"
class="embvid"
title="Embedded Video">
</iframe>
</details>

View File

@ -0,0 +1,18 @@
<!-- image -->
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}{{ with .Get "mouse"}}title="{{.}}"{{end}}/>
{{ if .Get "link"}}</a>{{ end }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
<figcaption>{{ if isset .Params "title" }}
<h4>{{ .Get "title" }}</h4>{{ end }}
{{ if or (.Get "caption") (.Get "attr")}}<p>
{{ .Get "caption" }}
{{ with .Get "attrlink"}}<a href="{{.}}">{{ end }}
{{ .Get "attr" }}
{{ if .Get "attrlink"}}</a>{{ end }}
</p>{{ end }}
</figcaption>
{{ end }}
</figure>
<!-- image -->

View File

@ -0,0 +1,3 @@
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <div id="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a>
{{ end }}</div>{{ end }}{{ end }}

View File

@ -4,6 +4,14 @@ body {
color: #ddd ;
}
.lw, p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, td img {
max-height: 1em;
max-width: 1em;
vertical-align: middle ;
}
img { max-width: 100% ; }
main {
max-width: 800px ;
margin: auto ;