diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9319f6a..a4d0358 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@ {{ range.Pages }}
  • - – + {{ .Title }}
  • diff --git a/layouts/_default/tag.html b/layouts/_default/tag.html new file mode 100644 index 0000000..b9bbacd --- /dev/null +++ b/layouts/_default/tag.html @@ -0,0 +1,10 @@ +{{ partial "header.html" . }} + +

    {{ .Title | title }}

    + +{{ .Content }} + + +{{ partial "footer.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html deleted file mode 100644 index b991d24..0000000 --- a/layouts/_default/terms.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ partial "header.html" . }} - -

    {{ .Title }}

    - -{{ .Content }} - -{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 8fb9e18..4115bec 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,7 @@ {{ partial "header.html" . }} -

    {{ .Site.Title }}

    +

    {{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}

    {{ .Content }} -{{ partial "tagcloud.html" . }} - {{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 859c912..ee586ac 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,7 +5,7 @@ See related:
    {{ range $k, $v := .Params.tags }} {{ $url := printf "tags/%s" (. | urlize | lower) }} - {{ . }} + {{ . | title }} {{ if lt $k (sub $tagsLen 1) }}·{{ end }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9b3d2c8..8aa75cd 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,7 @@ - {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} + {{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 26b4a71..dbc93f1 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,7 +1,7 @@ diff --git a/layouts/partials/tagcloud.html b/layouts/partials/tagcloud.html deleted file mode 100644 index 82c8744..0000000 --- a/layouts/partials/tagcloud.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ if isset .Site.Taxonomies "tags" }} -{{ if not (eq (len .Site.Taxonomies.tags) 0) }} -
    - {{ range $name, $items := .Site.Taxonomies.tags }} - {{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}} - {{ $name }} - {{ end }} -
    -{{ end }} -{{ end }} diff --git a/layouts/shortcodes/hidvid.html b/layouts/shortcodes/hidvid.html index aa68373..14f592d 100644 --- a/layouts/shortcodes/hidvid.html +++ b/layouts/shortcodes/hidvid.html @@ -4,6 +4,7 @@ loading="lazy" sandbox="allow-same-origin allow-scripts allow-popups" allowfullscreen frameborder="0" + class="embvid" title="Embedded Video"> diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..0d51052 --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1,18 @@ + +
    + {{ with .Get "link"}}{{ end }} + + {{ if .Get "link"}}{{ end }} + {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} +
    {{ if isset .Params "title" }} +

    {{ .Get "title" }}

    {{ end }} + {{ if or (.Get "caption") (.Get "attr")}}

    + {{ .Get "caption" }} + {{ with .Get "attrlink"}}{{ end }} + {{ .Get "attr" }} + {{ if .Get "attrlink"}}{{ end }} +

    {{ end }} +
    + {{ end }} +
    + diff --git a/layouts/shortcodes/tagcloud.html b/layouts/shortcodes/tagcloud.html new file mode 100644 index 0000000..ae8dbc0 --- /dev/null +++ b/layouts/shortcodes/tagcloud.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
    + {{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}{{ $name | title }} + {{ end }}
    {{ end }}{{ end }} diff --git a/static/style.css b/static/style.css index 7977ac2..25e03b8 100644 --- a/static/style.css +++ b/static/style.css @@ -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 ;