From 3becba020712e78a8a81e11ce4e0bfcc30f631d2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 16 Nov 2021 19:31:14 +0100 Subject: Fix full url generation --- assets/css/_vars.scss | 2 +- content/index.md | 2 +- content/projects/emojis/index.md | 1 + scripts/metadata_filter.lua | 2 +- templates/feed.xml | 8 ++------ 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/assets/css/_vars.scss b/assets/css/_vars.scss index ca7abd3..eea1764 100644 --- a/assets/css/_vars.scss +++ b/assets/css/_vars.scss @@ -22,7 +22,7 @@ $font-fam--large: 'Garet', $font-fam--text; $font-fam--mono: 'Iosevka Term SS09', 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace; $font-size: 16px; $line-height: 1.7; -$content--width: 42rem; +$content--width: 46rem; @include iro-execute { $gray0: hsl(220, 5%, 7%); diff --git a/content/index.md b/content/index.md index efc03c2..75efead 100644 --- a/content/index.md +++ b/content/index.md @@ -2,4 +2,4 @@ title: Volpeon's Den --- -Hi, I'm Volpeon. I enjoy programming, creating vector art and designing user interfaces. +Hi, I'm Volpeon! I'm a software developer who creates vector art. diff --git a/content/projects/emojis/index.md b/content/projects/emojis/index.md index 58ad85b..2d15d7d 100644 --- a/content/projects/emojis/index.md +++ b/content/projects/emojis/index.md @@ -2,4 +2,5 @@ title: Emojis icon: smile list_post_icon: icon-arrow-right +feed: true --- diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index ef4f44e..5a547ee 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -52,7 +52,7 @@ function resolve_url(site_url, ref_file, target_file) local ref_base_dir = path.directory(ref_file) local abs = target_file local rel = path.make_relative(abs, ref_base_dir, true) - local full = (abs[1] == "/" and (site_url .. abs)) or abs + local full = (abs:sub(1, 1) == "/" and (site_url .. abs)) or abs return { abs = abs, rel = rel, full = full } end diff --git a/templates/feed.xml b/templates/feed.xml index 22a86ac..cf9e359 100644 --- a/templates/feed.xml +++ b/templates/feed.xml @@ -16,13 +16,9 @@ $if(layout.is_categorized_list)$ $for(pages.date_desc)$ - $for(it.pages.date_desc)$ - $it:feed_entry()$ - $endfor$ + $it.pages.date_desc:feed_entry()$ $endfor$ $else$ - $for(pages.date_desc)$ - $it:feed_entry()$ - $endfor$ + $pages.date_desc:feed_entry()$ $endif$ -- cgit v1.2.3-70-g09d2