From 9e795f303ffa8a6350a49d45eefdffd5b84f2036 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 10 Jan 2021 21:47:29 +0100 Subject: Show secret footer, add link meta tag to feed for owning page, finished home page --- assets/css/_vars.scss | 2 ++ assets/css/components/_footer.scss | 6 ++++++ assets/css/style.scss | 1 + content/blog/test1.md | 5 ----- content/blog/test2/index.md | 17 ---------------- content/index.md | 41 ++++++++------------------------------ metadata/metadata.yaml | 6 ++---- scripts/metadata_filter.lua | 7 +++++++ templates/base.html | 3 +++ templates/layouts/index.html | 4 ++++ 10 files changed, 33 insertions(+), 59 deletions(-) create mode 100644 assets/css/components/_footer.scss delete mode 100644 content/blog/test1.md delete mode 100644 content/blog/test2/index.md diff --git a/assets/css/_vars.scss b/assets/css/_vars.scss index 77b59b9..d665c0b 100644 --- a/assets/css/_vars.scss +++ b/assets/css/_vars.scss @@ -20,6 +20,8 @@ $nav--item--spacing--sm: 3ch; $nav--item--pad-h: 1ch; $nav--item--pad-v: .9em; +$footer--pad-v: .9em; + $page--item-prefix--max-chars: 3ch; $page--item-prefix--pad: 2ch; $page--item-prefix--width: $page--item-prefix--max-chars + $page--item-prefix--pad; diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss new file mode 100644 index 0000000..a015d92 --- /dev/null +++ b/assets/css/components/_footer.scss @@ -0,0 +1,6 @@ +.c-footer { + padding-top: $footer--pad-v; + padding-bottom: $footer--pad-v; + color: var(--obj); + text-align: right; +} diff --git a/assets/css/style.scss b/assets/css/style.scss index 9f3bb31..60fa4ff 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -7,6 +7,7 @@ @import 'components/nav'; @import 'components/page'; @import 'components/hero'; +@import 'components/footer'; @import 'layouts/container'; diff --git a/content/blog/test1.md b/content/blog/test1.md deleted file mode 100644 index 943570c..0000000 --- a/content/blog/test1.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -date: 2020-12-25 -title: Test Page 1 -category: tes ---- diff --git a/content/blog/test2/index.md b/content/blog/test2/index.md deleted file mode 100644 index aa23764..0000000 --- a/content/blog/test2/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -date: 2020-12-21 -title: Test Page 2 -category: per ---- - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -``` - - /----\ -- | | - - \----/ -``` - -## Subtitle - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. diff --git a/content/index.md b/content/index.md index 3d2462c..169a791 100644 --- a/content/index.md +++ b/content/index.md @@ -4,40 +4,15 @@ title: Home # Volpeon's Den -Welcome to my website! I'm Volpeon and here's an [inline link](#c). +Welcome to my website! I'm Volpeon, a red fox doing human things such as programming, creating vector art, and running a website. -> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et -> dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet -> clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. +## Find me -Welcome to my website! I'm Volpeon and here's an [inline link](#d). +Here's a complete list of my profiles on other platforms: -```lua -function Header(el) - if el.level == 1 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h1'} - elseif el.level == 2 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h2'} - elseif el.level == 3 then - el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h3'} - end - return el -end -``` +- **Bandcamp:** [volpeon](https://bandcamp.com/volpeon) +- **Email:** me@volpeon.ink +- **Fediverse:** @volpeon@fedi.vulpes.one +- **GitHub:** [volpeon](https://github.com/volpeon) -Welcome to my website! I'm Volpeon and here's an [inline link](#e). - -## Subtitle - -### Last one - -- Lorem ipsum dolor sit amet -- Another item - -1. Lorem ipsum dolor sit amet -2. Another item - -::: { macro=refs } -- [Lorem ipsum dolor sit amet](#a) -- [Another item](#b) -::: +If you see someone with my username, you'll know it's me if their profile is listed here. I'll make sure to keep this list up-to-date. diff --git a/metadata/metadata.yaml b/metadata/metadata.yaml index 0cf5db8..05150ea 100644 --- a/metadata/metadata.yaml +++ b/metadata/metadata.yaml @@ -14,6 +14,7 @@ menus: - id: blog label: Blog url: /blog/ + hidden: true - id: personal_blog label: Personal label_long: Personal Blog @@ -25,13 +26,10 @@ feeds: url: /blog/index.xml categories: - blog: - tes: Testing - per: Personal personal_blog: dre: Dream Journal rewrites: path: - from: ^/personal_blog - to: /3jF85da + to: /9thPK7O3xn diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 5ed5382..d7116dc 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -262,6 +262,13 @@ function Meta(meta) }) end + if meta.create_feed then + meta.feed = pandoc.MetaMap({ + url = resolve_url(meta.site.url, meta.output_dir, meta.file_out, + meta.file_out:gsub("%.html$", ".xml")) + }) + end + if meta.menus and meta.menus.main then meta.menus.main = prep_main_menu(meta.rewrites, meta.section, meta.menus.main) diff --git a/templates/base.html b/templates/base.html index 8682125..08c85bb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -22,6 +22,9 @@ $for(feeds)$ $endfor$ + $if(feed)$ + + $endif$ $if(section.is_index)$$else$$title$ โ€“ $endif$$site.title$ diff --git a/templates/layouts/index.html b/templates/layouts/index.html index a1410f1..21e6293 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html @@ -25,6 +25,10 @@ $body$ + +