diff options
author | Volpeon <git@volpeon.ink> | 2021-11-11 13:34:13 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-11 13:34:13 +0100 |
commit | e9a69b140a9aa44223c40d56aa738479131600fd (patch) | |
tree | d2796e5c5b53a83f030b95c5e61bf69e63bb0fc1 | |
parent | Body: Don't make bg white (diff) | |
download | volpeon.ink-e9a69b140a9aa44223c40d56aa738479131600fd.tar.gz volpeon.ink-e9a69b140a9aa44223c40d56aa738479131600fd.tar.bz2 volpeon.ink-e9a69b140a9aa44223c40d56aa738479131600fd.zip |
Fixes
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | assets/css/scopes/_headlines.scss | 12 | ||||
-rw-r--r-- | scripts/metadata_filter.lua | 7 | ||||
-rw-r--r-- | templates/layouts/page.html | 2 |
4 files changed, 5 insertions, 18 deletions
@@ -53,7 +53,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
53 | mkdir -p $(@D) | 53 | mkdir -p $(@D) |
54 | $(eval PAGES_FILES = $(filter .cache/meta/%.json,$^)) | 54 | $(eval PAGES_FILES = $(filter .cache/meta/%.json,$^)) |
55 | $(eval NAMESPACE = $(call namespace,$@,.cache/meta)) | 55 | $(eval NAMESPACE = $(call namespace,$@,.cache/meta)) |
56 | $(if $(PAGES_FILES),jq -s --arg namespace "$(NAMESPACE)" -f scripts/subpages.jq $(PAGES_FILES) > "$@.pages",touch "$@.pages") | 56 | $(if $(PAGES_FILES),jq -s --arg namespace "$(NAMESPACE)" -f scripts/subpages.jq $(PAGES_FILES) > "$@.pages",echo "{}" > "$@.pages") |
57 | pandoc \ | 57 | pandoc \ |
58 | -f markdown-citations \ | 58 | -f markdown-citations \ |
59 | -t html5 \ | 59 | -t html5 \ |
diff --git a/assets/css/scopes/_headlines.scss b/assets/css/scopes/_headlines.scss index c525af6..6e035b6 100644 --- a/assets/css/scopes/_headlines.scss +++ b/assets/css/scopes/_headlines.scss | |||
@@ -67,18 +67,6 @@ | |||
67 | ); | 67 | ); |
68 | } | 68 | } |
69 | 69 | ||
70 | @include modifier('body') { | ||
71 | @include element('title-inner') { | ||
72 | background-image: linear-gradient( | ||
73 | to top, | ||
74 | transparent .15em, | ||
75 | #{prop(--colors --emph --body-bg)} .15em, | ||
76 | #{prop(--colors --emph --body-bg)} .6em, | ||
77 | transparent .6em | ||
78 | ); | ||
79 | } | ||
80 | } | ||
81 | |||
82 | @include element('link') { | 70 | @include element('link') { |
83 | display: none; | 71 | display: none; |
84 | margin: -.5rem 0; | 72 | margin: -.5rem 0; |
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 3bea687..daad940 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
@@ -89,18 +89,17 @@ end | |||
89 | 89 | ||
90 | function prep_menu(active_id, main_menu) | 90 | function prep_menu(active_id, main_menu) |
91 | local active_item = nil | 91 | local active_item = nil |
92 | local items = pandoc.List() | ||
92 | 93 | ||
93 | for i = 1, #main_menu do | 94 | for i = 1, #main_menu do |
94 | local item = main_menu[i] | 95 | local item = main_menu[i] |
95 | local active = pandoc.utils.stringify(item.id) == active_id | 96 | local active = pandoc.utils.stringify(item.id) == active_id |
96 | item.active = active | 97 | item.active = active |
97 | if active then active_item = item end | 98 | if active then active_item = item end |
99 | if not item.hidden or item.active then items:insert(item) end | ||
98 | end | 100 | end |
99 | 101 | ||
100 | return { | 102 | return { items = items, active = active_item } |
101 | items = main_menu:filter(function(item) return not item.hidden or item.active end), | ||
102 | active = active_item, | ||
103 | } | ||
104 | end | 103 | end |
105 | 104 | ||
106 | function process_pages(global, pages_by_id) | 105 | function process_pages(global, pages_by_id) |
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 0f795ea..e406d99 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -1,5 +1,5 @@ | |||
1 | <div class="s-body"> | 1 | <div class="s-body"> |
2 | <section class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines s-headlines--body"> | 2 | <section class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines"> |
3 | $if(show_date)$ | 3 | $if(show_date)$ |
4 | <div class="s-body__meta"> | 4 | <div class="s-body__meta"> |
5 | $date.long$ | 5 | $date.long$ |