aboutsummaryrefslogtreecommitdiff
path: root/templates/archive.html
diff options
context:
space:
mode:
authorJieiku2023-09-20 00:25:21 -0700
committerJieiku2023-09-20 00:25:21 -0700
commit08f406c44c861a914c8b63fab454250f8a4c4b36 (patch)
treea636aa28e60b6b110138b378996ee2523c1e7bf0 /templates/archive.html
parentb1be7cc6de3737ebbb1ae1485652e32a2888dbfc (diff)
downloadabridge-08f406c44c861a914c8b63fab454250f8a4c4b36.tar.gz
abridge-08f406c44c861a914c8b63fab454250f8a4c4b36.tar.bz2
abridge-08f406c44c861a914c8b63fab454250f8a4c4b36.zip
refactor nav, blocks, macros, templates. fix image shortcodes
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/archive.html b/templates/archive.html
index 8ac3cfc..e4f7e06 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -19,13 +19,17 @@ This Template can also be used as the rendering template for Sections, eg: examp
{%- set description = config.description %}
- {{- macros_head::seo(config=config, title=title, title_addition=title_addition, description=description, is_home=true) }}
+ {{- macros_seo::seo(config=config, title=title, title_addition=title_addition, description=description, is_home=true) }}
{%- endblock seo %}
{%- block content %}
{#- The following line is checking if the template is being used for the archive page or a section #}
{%- if current_path is matching("^(/[[:alpha:]][[:alpha:]])?/archive/$") %}
- {%- set sec = "" %}
+ {%- if section.extra.sec %}
+ {%- set sec = section.extra.sec ~ "/" %}
+ {%- else %}
+ {%- set sec = "" %}
+ {%- endif %}
{%- else %}
{%- set langpath = "/" %}
{%- if lang != config.default_language %}