aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJieiku2022-08-14 12:41:15 -0700
committerJieiku2022-08-14 12:41:15 -0700
commit830cabab1f638052a8c4ac39eb86370da5a676eb (patch)
treef59bc6914105256ea684066277a49ab2dce53300 /templates/index.html
parentcf95ee520261a0a523d5a3dfbc01a3847d67de51 (diff)
downloadabridge-1.2.0.tar.gz
abridge-1.2.0.tar.bz2
abridge-1.2.0.zip
Alternate Search Libraries Tinysearch and Stork1.2.0
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html
index 9c25fa4..1434aee 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -33,17 +33,18 @@
{%- if config.extra.meta_index.position == "top" or config.extra.meta_index.position == "both" %}
{{- macros::meta_index(page=page) }}
{%- endif %}{%- endif %}
- <p class="sum">
+ <div class="sum">
+ <p>
{%- if page.summary %}
{{ page.summary | markdown(inline=true) | safe }}
{%- elif page.description %}
{{ page.description | safe }}
{%- elif page.content %}
- {{ page.content | safe | striptags | truncate(length=150) }}
+ {{ page.content | striptags | truncate(length=150) | safe }}
{%- elif page.extra.static_thumbnail %}
{%- endif %}
<a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">...more</a>
- </p>
+ </div>
{%- if config.extra.meta_index.position %}
{%- if config.extra.meta_index.position == "bottom" or config.extra.meta_index.position == "both" %}
{{- macros::meta_index(page=page) }}