aboutsummaryrefslogtreecommitdiff
path: root/templates/archive.html
diff options
context:
space:
mode:
authorJieiku2023-09-08 15:08:39 -0700
committerJieiku2023-09-08 15:08:39 -0700
commit5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1 (patch)
treed034c24a0debdb22066c659fa67ab5564227acdd /templates/archive.html
parent288de9dac39869ac94d0265351f5884a78dce5a8 (diff)
downloadabridge-2.2.0.tar.gz
abridge-2.2.0.tar.bz2
abridge-2.2.0.zip
Refactor package.json2.2.0
Diffstat (limited to 'templates/archive.html')
-rw-r--r--templates/archive.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/archive.html b/templates/archive.html
index eff70a9..8ac3cfc 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -4,6 +4,8 @@ This Template can also be used as the rendering template for Sections, eg: examp
#}
{% extends "base.html" %}
+{%- set uglyurls = config.extra.uglyurls | default(value=false) -%}
+{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %}
{%- block seo %}
{{- super() }}
@@ -62,7 +64,7 @@ This Template can also be used as the rendering template for Sections, eg: examp
{%- endif %}
{%- endif %}
{%- for post in posts %}
- <p><a href="{{ post.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ post.title }}</a>{%- if not hide_section_dates %} - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time>{%- endif %}</p>
+ <p><a href="{{ post.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ post.title }}</a>{%- if not hide_section_dates %} - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time>{%- endif %}</p>
{%- endfor %}
{%- endfor %}
{%- else %}
@@ -75,7 +77,7 @@ This Template can also be used as the rendering template for Sections, eg: examp
{%- endif %}
{%- endif %}
{%- for post in posts %}
- <p><a href="{{ post.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ post.title }}</a>{%- if not hide_section_dates %} - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time>{%- endif %}</p>
+ <p><a href="{{ post.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ post.title }}</a>{%- if not hide_section_dates %} - <time datetime="{{ post.date }}">{{ post.date | date(format="%F") }}</time>{%- endif %}</p>
{%- endfor %}
{%- endfor %}
{%- endif %}