diff options
Diffstat (limited to 'templates/archive.html')
| -rw-r--r-- | templates/archive.html | 6 |
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 %} |
