diff options
author | Volpeon <git@volpeon.ink> | 2021-11-15 17:14:27 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-15 17:14:27 +0100 |
commit | a2aa0c0a6261850800d97e735adad9b02236f1e3 (patch) | |
tree | 91ad486c0ccdbb1e1cd92a27dcfad504bcce7fca | |
parent | Move ASCII fox to partials (diff) | |
download | volpeon.ink-a2aa0c0a6261850800d97e735adad9b02236f1e3.tar.gz volpeon.ink-a2aa0c0a6261850800d97e735adad9b02236f1e3.tar.bz2 volpeon.ink-a2aa0c0a6261850800d97e735adad9b02236f1e3.zip |
Various adjustments
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | assets/css/components/_card.scss | 18 | ||||
-rw-r--r-- | content/9thPK7O3xn/dreams/index.md | 2 | ||||
-rw-r--r-- | content/9thPK7O3xn/index.md | 8 | ||||
-rw-r--r-- | content/9thPK7O3xn/misc/index.md | 6 | ||||
-rw-r--r-- | content/9thPK7O3xn/pages/design-test.md (renamed from content/9thPK7O3xn/misc/design-test.md) | 6 | ||||
-rw-r--r-- | content/9thPK7O3xn/pages/index.md | 2 | ||||
-rw-r--r-- | content/docs/index.md | 4 | ||||
-rw-r--r-- | scripts/metadata_filter.lua | 2 | ||||
-rw-r--r-- | templates/base.html | 17 |
10 files changed, 29 insertions, 38 deletions
@@ -10,7 +10,7 @@ PANDOC_FILTERS := $(patsubst %,--lua-filter %,$(wildcard filters/*.lua)) | |||
10 | GLOBAL_METADATA := $(patsubst %,--metadata-file %,$(wildcard metadata/*.yaml)) | 10 | GLOBAL_METADATA := $(patsubst %,--metadata-file %,$(wildcard metadata/*.yaml)) |
11 | 11 | ||
12 | CONTENT_SRC := $(shell find content -type f -name "*.md") | 12 | CONTENT_SRC := $(shell find content -type f -name "*.md") |
13 | FEED_SRC := $(shell grep -l "^create_feed: *true$$" $(CONTENT_SRC)) | 13 | FEED_SRC := $(shell grep -l "^feed: *true$$" $(CONTENT_SRC)) |
14 | CONTENT_TEMPLATES_SRC := $(shell find templates -type f -name "*.html") | 14 | CONTENT_TEMPLATES_SRC := $(shell find templates -type f -name "*.html") |
15 | FEED_TEMPLATES_SRC := $(shell find templates -type f -name "*.xml") | 15 | FEED_TEMPLATES_SRC := $(shell find templates -type f -name "*.xml") |
16 | CSS_SRC := $(shell find assets/css -type f -name "*.scss") | 16 | CSS_SRC := $(shell find assets/css -type f -name "*.scss") |
diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index 0a64f1f..c1d58db 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss | |||
@@ -1,14 +1,5 @@ | |||
1 | @include namespace('card') { | 1 | @include namespace('card') { |
2 | @include store(( | 2 | @include store(( |
3 | --dims: ( | ||
4 | --pad-x: 1.1em, | ||
5 | --pad-y: .8em, | ||
6 | --hover-offset: -.3rem, | ||
7 | --indicator: ( | ||
8 | --width: 1em, | ||
9 | --height: 4px, | ||
10 | ), | ||
11 | ), | ||
12 | --colors: ( | 3 | --colors: ( |
13 | --bg: prop(--colors --bg-lo, $global: true), | 4 | --bg: prop(--colors --bg-lo, $global: true), |
14 | --fg: prop(--colors --fg, $global: true), | 5 | --fg: prop(--colors --fg, $global: true), |
@@ -18,6 +9,15 @@ | |||
18 | --bg: prop(--colors --fg-lo, $global: true), | 9 | --bg: prop(--colors --fg-lo, $global: true), |
19 | --fg: prop(--colors --bg-hi, $global: true), | 10 | --fg: prop(--colors --bg-hi, $global: true), |
20 | ), | 11 | ), |
12 | ), | ||
13 | --dims: ( | ||
14 | --pad-x: 1.1em, | ||
15 | --pad-y: .8em, | ||
16 | --hover-offset: -.3rem, | ||
17 | --indicator: ( | ||
18 | --width: 1em, | ||
19 | --height: 4px, | ||
20 | ), | ||
21 | ) | 21 | ) |
22 | )); | 22 | )); |
23 | 23 | ||
diff --git a/content/9thPK7O3xn/dreams/index.md b/content/9thPK7O3xn/dreams/index.md index c89aad4..dde66b0 100644 --- a/content/9thPK7O3xn/dreams/index.md +++ b/content/9thPK7O3xn/dreams/index.md | |||
@@ -3,5 +3,5 @@ title: Dream Journal | |||
3 | position: 9 | 3 | position: 9 |
4 | list_order: date_desc | 4 | list_order: date_desc |
5 | list_read_indicators: true | 5 | list_read_indicators: true |
6 | create_feed: true | 6 | feed: true |
7 | --- | 7 | --- |
diff --git a/content/9thPK7O3xn/index.md b/content/9thPK7O3xn/index.md index 52ceada..58272fb 100644 --- a/content/9thPK7O3xn/index.md +++ b/content/9thPK7O3xn/index.md | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | title: Personal | 2 | title: Personal |
3 | unlisted: true | 3 | unlisted: true |
4 | create_feed: true | 4 | feed: true |
5 | --- | 5 | --- |
6 | 6 | ||
7 | Welcome to the personal section of my website! | 7 | Welcome to the personal section of my website! |
8 | Here you will find content that doesn't belong in the public sections of my website, such as layout and design tests or pages about more personal topics. | 8 | Here you will find content that doesn't belong in the public sections of my website such as test pages or essays about more personal topics. |
diff --git a/content/9thPK7O3xn/misc/index.md b/content/9thPK7O3xn/misc/index.md deleted file mode 100644 index d39ae3f..0000000 --- a/content/9thPK7O3xn/misc/index.md +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | --- | ||
2 | title: Other stuff | ||
3 | position: 10 | ||
4 | list_read_indicators: true | ||
5 | create_feed: true | ||
6 | --- | ||
diff --git a/content/9thPK7O3xn/misc/design-test.md b/content/9thPK7O3xn/pages/design-test.md index edf8ae2..2367513 100644 --- a/content/9thPK7O3xn/misc/design-test.md +++ b/content/9thPK7O3xn/pages/design-test.md | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | title: "Design Test: Markdown Syntax" | 2 | title: Design Test |
3 | --- | 3 | --- |
4 | 4 | ||
5 | - [Overview](#overview) | 5 | - [Overview](#overview) |
@@ -15,10 +15,6 @@ title: "Design Test: Markdown Syntax" | |||
15 | - [Emphasis](#emphasis) | 15 | - [Emphasis](#emphasis) |
16 | - [Code](#code) | 16 | - [Code](#code) |
17 | 17 | ||
18 | |||
19 | **Note:** This document is itself written using Markdown; you | ||
20 | can [see the source for it by adding '.text' to the URL](/projects/markdown/syntax.text). | ||
21 | |||
22 | ---- | 18 | ---- |
23 | 19 | ||
24 | ## Overview | 20 | ## Overview |
diff --git a/content/9thPK7O3xn/pages/index.md b/content/9thPK7O3xn/pages/index.md index 33818ff..4c42948 100644 --- a/content/9thPK7O3xn/pages/index.md +++ b/content/9thPK7O3xn/pages/index.md | |||
@@ -2,5 +2,5 @@ | |||
2 | title: Pages | 2 | title: Pages |
3 | position: 0 | 3 | position: 0 |
4 | list_read_indicators: true | 4 | list_read_indicators: true |
5 | create_feed: true | 5 | feed: true |
6 | --- | 6 | --- |
diff --git a/content/docs/index.md b/content/docs/index.md new file mode 100644 index 0000000..d02c2a8 --- /dev/null +++ b/content/docs/index.md | |||
@@ -0,0 +1,4 @@ | |||
1 | --- | ||
2 | title: Documents | ||
3 | position: 3 | ||
4 | --- | ||
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index fefb1ce..ef4f44e 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
@@ -267,7 +267,7 @@ function process(global, parent, meta) | |||
267 | if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end | 267 | if meta.list_order then meta.list_order = pandoc.utils.stringify(meta.list_order) end |
268 | if meta.position then meta.position = pandoc.utils.stringify(meta.position) end | 268 | if meta.position then meta.position = pandoc.utils.stringify(meta.position) end |
269 | 269 | ||
270 | if meta.create_feed then | 270 | if meta.feed then |
271 | if meta.file_out:match(".html$") then | 271 | if meta.file_out:match(".html$") then |
272 | meta.feed = { | 272 | meta.feed = { |
273 | url = resolve_url(global.site.url, global.file_out, | 273 | url = resolve_url(global.site.url, global.file_out, |
diff --git a/templates/base.html b/templates/base.html index adc5466..64e6b00 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -53,16 +53,13 @@ | |||
53 | <use href="/symbols.svg#logo"></use> | 53 | <use href="/symbols.svg#logo"></use> |
54 | </svg> | 54 | </svg> |
55 | </a> | 55 | </a> |
56 | $if(namespace.root.is_index)$ | 56 | $for(menus.main.items)$ |
57 | $else$ | 57 | $if(it.active)$ |
58 | $for(menus.main.items)$ | 58 | <a class="c-header__item" href="$it.url$"> |
59 | $if(it.active)$ | 59 | $it.label$ |
60 | <a class="c-header__item" href="$it.url$"> | 60 | </a> |
61 | $it.label$ | 61 | $endif$ |
62 | </a> | 62 | $endfor$ |
63 | $endif$ | ||
64 | $endfor$ | ||
65 | $endif$ | ||
66 | </nav> | 63 | </nav> |
67 | 64 | ||
68 | <main> | 65 | <main> |