From cb554ebd19322f4bbef75294cdedb09e4c507bb3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 17 Dec 2021 17:41:12 +0100 Subject: Fix subpage content --- Makefile | 3 ++- assets/css/_utils.scss | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae1e75d..ac2fec0 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -maxdepth 1 -type f -name "*.md" ! -name "index.md") \ $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -mindepth 2 -maxdepth 2 -type f -name "index.md")) -.cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta +.cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) filters/*.lua scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta $(info [META] $< -> $@) mkdir -p $(@D) @@ -69,6 +69,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ --lua-filter scripts/subpages.lua \ $(GLOBAL_METADATA) \ --metadata namespace="$(NAMESPACE)" \ + $(PANDOC_FILTERS) \ -o "$@.content" "$<" jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" rm "$@.pages" diff --git a/assets/css/_utils.scss b/assets/css/_utils.scss index 14d32a1..da090dd 100644 --- a/assets/css/_utils.scss +++ b/assets/css/_utils.scss @@ -60,6 +60,10 @@ flex-shrink: 0; } +@include utility('g-span-row') { + grid-column: 1 / -1; +} + @include utility('elp') { overflow: hidden; text-overflow: ellipsis; -- cgit v1.2.3-70-g09d2