From cf95aa88595184f51da4eeb06301e436a6a5f589 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 20 Apr 2019 02:48:57 +0200 Subject: make: use permalinks as atom ids I have just realized that was implementing atom feeds wrong for long time. atom ids are supposed to be valid uris. this is a small but breaking change. it is supposed to make some clients think that all of the old posts were republished. This can be avoided by running something like this, before upgrading: $ blogc-make atom_dump > templates/atom.tmpl however, keep in mind that your atom ids are invalid :/ --- src/blogc-make/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blogc-make') diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c index 3018820..58113fc 100644 --- a/src/blogc-make/atom.c +++ b/src/blogc-make/atom.c @@ -21,7 +21,7 @@ static const char atom_template[] = "\n" " {{ SITE_TITLE }}{%% ifdef FILTER_TAG %%} - " "{{ FILTER_TAG }}{%% endif %%}\n" - " {{ BASE_URL }}%s\n" + " {{ BASE_DOMAIN }}{{ BASE_URL }}%s\n" " {{ DATE_FIRST_FORMATTED }}\n" " \n" " \n" @@ -33,7 +33,7 @@ static const char atom_template[] = " {%% block listing %%}\n" " \n" " {{ TITLE }}\n" - " {{ BASE_URL }}%s\n" + " {{ BASE_DOMAIN }}{{ BASE_URL }}%s\n" " {{ DATE_FORMATTED }}\n" " {{ DATE_FORMATTED }}\n" " \n" -- cgit v1.2.3-18-g5258