From a392498f696a70ccae0ae31a9398155625a6f7ca Mon Sep 17 00:00:00 2001 From: Vitaly Potyarkin Date: Tue, 22 Oct 2019 11:47:27 +0300 Subject: [PATCH] Support all edge cases for direct template links Non-hardcoded paths are not that simple. Direct templates do not always have meaningful *_URL or even *_SAVE_AS values. More than that, those variables are not even defined by default. Therefore we need to replicate the logic used by Pelican itself when calculating the path to direct template output. Related: - DIRECT_TEMPLATES handling by Pelican: https://github.com/getpelican/pelican/blob/01eb08c42b543450ee5e0e3de3854526708a6711/pelican/generators.py#L537-L550 - Pelican issue for "Why are CATEGORIES_URL and TAGS_URL gone?" https://github.com/getpelican/pelican/issues/1225 Merges #75 --- alchemy/templates/include/footer.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alchemy/templates/include/footer.html b/alchemy/templates/include/footer.html index 00c205f..a6c56c2 100644 --- a/alchemy/templates/include/footer.html +++ b/alchemy/templates/include/footer.html @@ -1,12 +1,12 @@