diff options
author | Volpeon <git@volpeon.ink> | 2021-01-10 21:47:29 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-01-10 21:47:29 +0100 |
commit | 9e795f303ffa8a6350a49d45eefdffd5b84f2036 (patch) | |
tree | 98c59a09b326684f26ffd7d2a88f26de99d74227 /scripts | |
parent | Moved output filename handling into Pandoc filter, implemented path rewriting (diff) | |
download | volpeon.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
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata_filter.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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) |