diff options
| author | Richard Mortier | 2025-04-06 03:01:31 +0200 |
|---|---|---|
| committer | GitHub | 2025-04-05 18:01:31 -0700 |
| commit | b8eed1ec176073bbbcd12392da3244971ceb51b0 (patch) | |
| tree | b201488c3869b95ab05b699b29f61faba0d30eab /templates/macros/macros.html | |
| parent | 2aa5a83686880e947a6614a42f93550d96b1f87f (diff) | |
| download | abridge-b8eed1ec176073bbbcd12392da3244971ceb51b0.tar.gz abridge-b8eed1ec176073bbbcd12392da3244971ceb51b0.tar.bz2 abridge-b8eed1ec176073bbbcd12392da3244971ceb51b0.zip | |
process markdown in titles and subtitles in index and recents (#217)
Diffstat (limited to 'templates/macros/macros.html')
| -rw-r--r-- | templates/macros/macros.html | 6 |
1 files changed, 3 insertions, 3 deletions
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 %} |
