diff options
| -rw-r--r-- | templates/index.html | 4 | ||||
| -rw-r--r-- | templates/macros/macros.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html index 2c9fdfb..c2f1c40 100644 --- a/templates/index.html +++ b/templates/index.html @@ -46,9 +46,9 @@ This Template can also be used directly for the index eg: example.com/ or as the {%- if page.summary %} {{ page.summary | markdown(inline=true) | safe }} {%- elif page.description %} - {{ page.description | safe }} + {{ page.description | markdown(inline=true) | safe }} {%- elif page.content %} - {{ page.content | striptags | truncate(length=150) | safe }} + {{ page.content | striptags | truncate(length=150) | markdown(inline=true) | safe }} {%- elif page.extra.static_thumbnail %} {%- endif %} <a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}"> diff --git a/templates/macros/macros.html b/templates/macros/macros.html index c02f190..6c7b85c 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -6,7 +6,7 @@ {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} <div class="tpad"> - <a href="{{ page.permalink | safe}}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a> + <a href="{{ page.permalink | safe}}{%- if uglyurls %}index.html{%- endif %}">{{ page.title | markdown(inline=true) | safe }}</a> </div> {%- endmacro page_listing %} @@ -25,7 +25,7 @@ {%- macro title_post(page, config) %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} - <h1><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1> + <h1><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title | markdown(inline=true) | safe }}</a></h1> {%- endmacro title_post %} @@ -100,7 +100,7 @@ {%- macro title_index(page, config) %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} - <big>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</big> + <big>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title | markdown(inline=true) | safe }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</big> {%- endmacro title_index %} |
