From 9e1585565c0bb236eb8f661b73c8852c2e19d972 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 1 Oct 2023 21:45:41 -0700 Subject: [PATCH] Metadata raedy in list pages --- main-site/archetypes/dev.md | 2 +- main-site/assets/feed.svg | 185 ++++++++++++++++++ main-site/content/feed/_index.md | 8 + main-site/hugo.yaml | 2 + main-site/static/img/feed.png | 3 + .../temper/layouts/_default/baseof.html | 2 +- .../themes/temper/layouts/_default/list.html | 5 + .../themes/temper/layouts/partials/head.html | 6 +- main-site/themes/temper/static/css/style.css | 14 +- 9 files changed, 217 insertions(+), 10 deletions(-) create mode 100644 main-site/assets/feed.svg create mode 100644 main-site/content/feed/_index.md create mode 100644 main-site/static/img/feed.png diff --git a/main-site/archetypes/dev.md b/main-site/archetypes/dev.md index ba62963..21fe117 100644 --- a/main-site/archetypes/dev.md +++ b/main-site/archetypes/dev.md @@ -1,6 +1,6 @@ --- date: '{{ .Date }}' -title: '{{ replace .File.ContentBaseName `-` ` ` | title }}' +title: {{ replace .File.ContentBaseName `-` ` ` | title }} description: /Dev Posting/ and Behind the Scenes thumbnail: null article: true diff --git a/main-site/assets/feed.svg b/main-site/assets/feed.svg new file mode 100644 index 0000000..47e9378 --- /dev/null +++ b/main-site/assets/feed.svg @@ -0,0 +1,185 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + Temper Feed + + + + + + + diff --git a/main-site/content/feed/_index.md b/main-site/content/feed/_index.md new file mode 100644 index 0000000..7cee653 --- /dev/null +++ b/main-site/content/feed/_index.md @@ -0,0 +1,8 @@ +--- +title: /feed +description: Micro posting because I frickin can! +thumbnail: /img/feed.png +article: false +--- + + diff --git a/main-site/hugo.yaml b/main-site/hugo.yaml index 5280ba2..8380ba5 100644 --- a/main-site/hugo.yaml +++ b/main-site/hugo.yaml @@ -4,6 +4,8 @@ title: Hiya, I'm temper theme: 'temper' +enableEmoji: true + Params: description: I like to make stuff name: temper.tv diff --git a/main-site/static/img/feed.png b/main-site/static/img/feed.png new file mode 100644 index 0000000..de2a431 --- /dev/null +++ b/main-site/static/img/feed.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:502b712b7acada225286ef1bac140cc5b75c3dfd8ef27ec01833ac33a681bf19 +size 2664 diff --git a/main-site/themes/temper/layouts/_default/baseof.html b/main-site/themes/temper/layouts/_default/baseof.html index cfaf72a..a097adf 100644 --- a/main-site/themes/temper/layouts/_default/baseof.html +++ b/main-site/themes/temper/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{- partial "header.html" . -}}
- {{- block "main" . }}{{- end }} + {{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}} diff --git a/main-site/themes/temper/layouts/_default/list.html b/main-site/themes/temper/layouts/_default/list.html index 8e242b9..ce187ac 100644 --- a/main-site/themes/temper/layouts/_default/list.html +++ b/main-site/themes/temper/layouts/_default/list.html @@ -1,5 +1,10 @@ {{ define "main" }} {{ partial "minimal-navbar.html" }} + {{ if eq .Page.Path "feed" }} +
/feed
+ {{ else if eq .Page.Path "dev" }} +
/dev
+ {{ end }} {{ $colors := slice "cyan" "yellow" "pink"}} {{ $opts := len $colors }} {{ range $i, $page := .Pages.ByDate.Reverse }} diff --git a/main-site/themes/temper/layouts/partials/head.html b/main-site/themes/temper/layouts/partials/head.html index dfa5998..0eb298e 100644 --- a/main-site/themes/temper/layouts/partials/head.html +++ b/main-site/themes/temper/layouts/partials/head.html @@ -10,5 +10,9 @@ - + {{ if .Params.Thumbnail }} + + {{ else }} + + {{ end }} diff --git a/main-site/themes/temper/static/css/style.css b/main-site/themes/temper/static/css/style.css index b25ba1f..917d25b 100644 --- a/main-site/themes/temper/static/css/style.css +++ b/main-site/themes/temper/static/css/style.css @@ -91,6 +91,7 @@ html { display:inline; font-size: 1.5rem; text-decoration: none; + color: #dcdcdc; } .socials:hover { @@ -155,13 +156,9 @@ html { .title-link { color: #EAA221; } .title-link { text-decoration-color: #EAA221; } -.card { - padding: 1em; - margin: 1em; - min-width: 250px; - width: 50%; +a { + color: orange; } -a { color:#dcdcdc; } a:hover { color: #EAA221; } .card-img { @@ -170,9 +167,12 @@ a:hover { color: #EAA221; } } .card { background-color: transparent; - max-width: 45%; border-style: solid; border-width: 3px; + padding: 1em; + margin: 1em; + max-width: 75%; + min-width: 250px; } ul.timeline {