commit 4ae859b630e27f59ffc1e1d58cc8e4449eeaff33 Author: Luke Smith Date: Thu Apr 14 16:07:48 2022 -0400 initial diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..05a6576 --- /dev/null +++ b/config.toml @@ -0,0 +1,11 @@ +baseURL = 'https://example.org' +languageCode = 'en-us' +title = "Website Name" + +# [menu] +# [[menu.main]] +# identifier = 'home' +# name = 'Home' +# pre = "🏡" +# url = '/index.html' +# weight = -110 diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..eacfec0 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} + +

404: Page not found

+ +{{ .Content }} + +{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..9319f6a --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ partial "header.html" . }} + +

{{ .Title }}

+ +{{ .Content }} + +{{ range.Pages }} + +
  • + – + {{ .Title }} +
  • + +{{ end }} + +{{ partial "footer.html" . }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..aa85f84 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,26 @@ + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range .Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{- .Content | html -}} + + {{ end }} + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..b991d24 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} + +

    {{ .Title }}

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

    {{ .Title }}

    + +{{ .Content }} + +{{ partial "footer.html" . }} diff --git a/layouts/blog.html b/layouts/blog.html new file mode 100644 index 0000000..26dccc7 --- /dev/null +++ b/layouts/blog.html @@ -0,0 +1,10 @@ +{{ define "main" }} +{{ .Content }} + +{{range.Site.RegularPages}} +
  • {{.Title}}
  • +{{end}} + +{{ partial "tagcloud.html" . }} + +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..8fb9e18 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,9 @@ +{{ partial "header.html" . }} + +

    {{ .Site.Title }}

    + +{{ .Content }} + +{{ partial "tagcloud.html" . }} + +{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..a5bf875 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,17 @@ + {{ if isset .Params "tags" }} + {{ $tagsLen := len .Params.tags }} + {{ if gt $tagsLen 0 }} +
    + See related recipes:
    + {{ range $k, $v := .Params.tags }} + {{ $url := printf "tags/%s" (. | urlize | lower) }} + {{ . }} + {{ if lt $k (sub $tagsLen 1) }}·{{ end }} + {{ end }} +
    + {{ end }} + {{ end }} + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..9b3d2c8 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,14 @@ + + + + {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} + + + + + + + + + {{ partial "nav.html" . }} +
    diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..26b4a71 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,7 @@ + diff --git a/layouts/partials/tagcloud.html b/layouts/partials/tagcloud.html new file mode 100644 index 0000000..82c8744 --- /dev/null +++ b/layouts/partials/tagcloud.html @@ -0,0 +1,10 @@ +{{ 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 new file mode 100644 index 0000000..aa68373 --- /dev/null +++ b/layouts/shortcodes/hidvid.html @@ -0,0 +1,9 @@ +
    + Click to reveal video. + +
    diff --git a/layouts/shortcodes/vid.html b/layouts/shortcodes/vid.html new file mode 100644 index 0000000..4c612fe --- /dev/null +++ b/layouts/shortcodes/vid.html @@ -0,0 +1,6 @@ + diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..7977ac2 --- /dev/null +++ b/static/style.css @@ -0,0 +1,52 @@ +body { + font-style: sans-serif ; + background: #100 ; + color: #ddd ; +} + +main { + max-width: 800px ; + margin: auto ; +} + +header h1 { + text-align: center ; +} + +h1,h2,h3,h4,h5,h6 { + text-align: center ; +} + +nav,footer { + text-align: center ; + clear: both ; + border-radius: 20px ; + margin: auto ; +} +nav li,footer li { + display: inline-block ; + list-style: none ; + border-radius: 10px ; + padding: .5em ; + max-width: 7em ; +} +nav ul, footer ul, #taglist { + padding: 0; + margin: .5em; +} + + +@media (min-width: 1200px) { + nav { + float: left ; + width: 175px ; + position: fixed ; + text-align: left ; + font-size: large ; + } + nav li { + display: block ; + text-align: center ; + margin: .5em auto ; + } +}