summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-01-10 21:47:29 +0100
committerVolpeon <git@volpeon.ink>2021-01-10 21:47:29 +0100
commit9e795f303ffa8a6350a49d45eefdffd5b84f2036 (patch)
tree98c59a09b326684f26ffd7d2a88f26de99d74227
parentMoved output filename handling into Pandoc filter, implemented path rewriting (diff)
downloadvolpeon.ink-9e795f303ffa8a6350a49d45eefdffd5b84f2036.tar.gz
volpeon.ink-9e795f303ffa8a6350a49d45eefdffd5b84f2036.tar.bz2
volpeon.ink-9e795f303ffa8a6350a49d45eefdffd5b84f2036.zip
Show secret footer, add link meta tag to feed for owning page, finished home page
-rw-r--r--assets/css/_vars.scss2
-rw-r--r--assets/css/components/_footer.scss6
-rw-r--r--assets/css/style.scss1
-rw-r--r--content/blog/test1.md5
-rw-r--r--content/blog/test2/index.md17
-rw-r--r--content/index.md41
-rw-r--r--metadata/metadata.yaml6
-rw-r--r--scripts/metadata_filter.lua7
-rw-r--r--templates/base.html3
-rw-r--r--templates/layouts/index.html4
10 files changed, 33 insertions, 59 deletions
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;
20$nav--item--pad-h: 1ch; 20$nav--item--pad-h: 1ch;
21$nav--item--pad-v: .9em; 21$nav--item--pad-v: .9em;
22 22
23$footer--pad-v: .9em;
24
23$page--item-prefix--max-chars: 3ch; 25$page--item-prefix--max-chars: 3ch;
24$page--item-prefix--pad: 2ch; 26$page--item-prefix--pad: 2ch;
25$page--item-prefix--width: $page--item-prefix--max-chars + $page--item-prefix--pad; 27$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 @@
1.c-footer {
2 padding-top: $footer--pad-v;
3 padding-bottom: $footer--pad-v;
4 color: var(--obj);
5 text-align: right;
6}
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 @@
7@import 'components/nav'; 7@import 'components/nav';
8@import 'components/page'; 8@import 'components/page';
9@import 'components/hero'; 9@import 'components/hero';
10@import 'components/footer';
10 11
11@import 'layouts/container'; 12@import 'layouts/container';
12 13
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 @@
1---
2date: 2020-12-25
3title: Test Page 1
4category: tes
5---
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 @@
1---
2date: 2020-12-21
3title: Test Page 2
4category: per
5---
6
7Lorem 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.
8
9```
10 - /----\
11- | |
12 - \----/
13```
14
15## Subtitle
16
17Lorem 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
4 4
5# Volpeon's Den 5# Volpeon's Den
6 6
7Welcome to my website! I'm Volpeon and here's an [inline link](#c). 7Welcome to my website! I'm Volpeon, a red fox doing human things such as programming, creating vector art, and running a website.
8 8
9> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et 9## Find me
10> dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
11> clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
12 10
13Welcome to my website! I'm Volpeon and here's an [inline link](#d). 11Here's a complete list of my profiles on other platforms:
14 12
15```lua 13- **Bandcamp:** [volpeon](https://bandcamp.com/volpeon)
16function Header(el) 14- **Email:** me@volpeon.ink
17 if el.level == 1 then 15- **Fediverse:** @volpeon@fedi.vulpes.one
18 el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h1'} 16- **GitHub:** [volpeon](https://github.com/volpeon)
19 elseif el.level == 2 then
20 el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h2'}
21 elseif el.level == 3 then
22 el.classes = el.classes .. {'c-page__prefixed', 'c-page__prefixed--h3'}
23 end
24 return el
25end
26```
27 17
28Welcome to my website! I'm Volpeon and here's an [inline link](#e). 18If 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.
29
30## Subtitle
31
32### Last one
33
34- Lorem ipsum dolor sit amet
35- Another item
36
371. Lorem ipsum dolor sit amet
382. Another item
39
40::: { macro=refs }
41- [Lorem ipsum dolor sit amet](#a)
42- [Another item](#b)
43:::
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:
14 - id: blog 14 - id: blog
15 label: Blog 15 label: Blog
16 url: /blog/ 16 url: /blog/
17 hidden: true
17 - id: personal_blog 18 - id: personal_blog
18 label: Personal 19 label: Personal
19 label_long: Personal Blog 20 label_long: Personal Blog
@@ -25,13 +26,10 @@ feeds:
25 url: /blog/index.xml 26 url: /blog/index.xml
26 27
27categories: 28categories:
28 blog:
29 tes: Testing
30 per: Personal
31 personal_blog: 29 personal_blog:
32 dre: Dream Journal 30 dre: Dream Journal
33 31
34rewrites: 32rewrites:
35 path: 33 path:
36 - from: ^/personal_blog 34 - from: ^/personal_blog
37 to: /3jF85da 35 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)
262 }) 262 })
263 end 263 end
264 264
265 if meta.create_feed then
266 meta.feed = pandoc.MetaMap({
267 url = resolve_url(meta.site.url, meta.output_dir, meta.file_out,
268 meta.file_out:gsub("%.html$", ".xml"))
269 })
270 end
271
265 if meta.menus and meta.menus.main then 272 if meta.menus and meta.menus.main then
266 meta.menus.main = prep_main_menu(meta.rewrites, meta.section, 273 meta.menus.main = prep_main_menu(meta.rewrites, meta.section,
267 meta.menus.main) 274 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 @@
22 $for(feeds)$ 22 $for(feeds)$
23 <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" /> 23 <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" />
24 $endfor$ 24 $endfor$
25 $if(feed)$
26 <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(section.is_index)$$else$$title$ – $endif$$site.title$" />
27 $endif$
25 28
26 <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title> 29 <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title>
27 30
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$
25 </div> 25 </div>
26</main> 26</main>
27 27
28<footer class="c-footer l-container">
29 9thPK7O3xn
30</footer>
31
28<template id="header-sm"> 32<template id="header-sm">
29 $-- .| //\__ ' .' | . | ' . ' 33 $-- .| //\__ ' .' | . | ' . '
30 $-- | _.~-"""-----~`` ,-´ ' ' |' | ' ' 34 $-- | _.~-"""-----~`` ,-´ ' ' |' | ' '