- {{ page.title | markdown(inline=true) | safe }}
+
+
+ {{ page.title | markdown(inline=true) | safe }}
+
{#- Draft indicator -#}
@@ -122,14 +123,17 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- endif -%}
{%- if author_list | length == 1 -%}
- {%- set author_string = author_list.0 -%}
+ {%- set author_string = '' ~ author_list.0 ~ '' -%}
{%- else -%}
{%- set last_author = author_list | last -%}
{%- set other_authors = author_list | slice(end=-1) -%}
{%- set author_separator = macros_translate::translate(key="author_separator", default=", ", language_strings=language_strings) -%}
+ {%- set author_separator = '' ~ author_separator ~ '' -%}
{%- set conjunction = macros_translate::translate(key="author_conjunction", default=" and ", language_strings=language_strings) -%}
+ {%- set conjunction = '' ~ conjunction ~ '' -%}
{%- set author_string = other_authors | join(sep=author_separator) -%}
{%- set author_string = author_string ~ conjunction ~ last_author -%}
+ {%- set author_string = '' ~ author_string ~ '' -%}
{%- endif -%}
{%- set by_author = macros_translate::translate(key="by_author", default="By $AUTHOR", language_strings=language_strings) -%}
@@ -145,7 +149,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{#- Date -#}
{% if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" %}
- - {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{ macros_format_date::format_date(date=page.date, short=true, language_strings=language_strings) }}
+
{#- Variable to keep track of whether we've shown a section, to avoid separators as the first element -#}
{%- set previous_visible = true -%}
{% endif %}
@@ -160,7 +164,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- if page.taxonomies and page.taxonomies.tags -%}
- {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{- macros_translate::translate(key="tags", default="tags", language_strings=language_strings) | capitalize -}}:
{%- for tag in page.taxonomies.tags -%}
- - {{ tag }}
+
- {{ tag }}
{%- if not loop.last -%}
,
{%- endif -%}
@@ -175,7 +179,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- set formatted_date = macros_format_date::format_date(date=page.updated, short=true, language_strings=language_strings) -%}
{%- set updated_str = last_updated_str | replace(from="$DATE", to=formatted_date) -%}
{%- set previous_visible = true -%}
-
- {{ updated_str }}
+
{#- Show link to remote changes if enabled -#}
{%- if config.extra.remote_repository_url and macros_settings::evaluate_setting_priority(setting="show_remote_changes", page=page, default_global_value=true) == "true" -%}
- {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }}
@@ -227,7 +231,12 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{{ macros_toc::toc(page=page, header=true, language_strings=language_strings) }}
{% endif %}
-
+ {#- Optional Summary paragraph for readers -#}
+ {% if page.description %}
+ {{ page.description }}
+ {%- endif -%}
+
+
{#- Replace series_intro placeholder -#}
{%- set content_with_intro = page.content -%}
{%- if "" in page.content -%}
@@ -333,6 +342,13 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{% if comment_system %}
{% include "partials/comments.html" %}
{% endif %}
+ {#- Webmentions -#}
+ {%- set global_webmentions_enabled = config.extra.webmentions.enable | default(value=false) -%}
+ {%- set page_webmentions_enabled = page.extra.webmentions | default(value=global_webmentions_enabled) -%}
+ {%- set webmentions_enabled = global_webmentions_enabled and page_webmentions_enabled != false or page_webmentions_enabled == true -%}
+ {%- if webmentions_enabled -%}
+ {%- include "partials/webmentions.html" -%}
+ {%- endif -%}
+ {{ page.title | markdown(inline=true) | safe }}
+-
{#- Draft indicator -#}
@@ -122,14 +123,17 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- endif -%}
{%- if author_list | length == 1 -%}
- {%- set author_string = author_list.0 -%}
+ {%- set author_string = '' ~ author_list.0 ~ '' -%}
{%- else -%}
{%- set last_author = author_list | last -%}
{%- set other_authors = author_list | slice(end=-1) -%}
{%- set author_separator = macros_translate::translate(key="author_separator", default=", ", language_strings=language_strings) -%}
+ {%- set author_separator = '' ~ author_separator ~ '' -%}
{%- set conjunction = macros_translate::translate(key="author_conjunction", default=" and ", language_strings=language_strings) -%}
+ {%- set conjunction = '' ~ conjunction ~ '' -%}
{%- set author_string = other_authors | join(sep=author_separator) -%}
{%- set author_string = author_string ~ conjunction ~ last_author -%}
+ {%- set author_string = '' ~ author_string ~ '' -%}
{%- endif -%}
{%- set by_author = macros_translate::translate(key="by_author", default="By $AUTHOR", language_strings=language_strings) -%}
@@ -145,7 +149,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{#- Date -#}
{% if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" %}
-
- {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{ macros_format_date::format_date(date=page.date, short=true, language_strings=language_strings) }} + {#- Variable to keep track of whether we've shown a section, to avoid separators as the first element -#} {%- set previous_visible = true -%} {% endif %} @@ -160,7 +164,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- if page.taxonomies and page.taxonomies.tags -%}
- {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{- macros_translate::translate(key="tags", default="tags", language_strings=language_strings) | capitalize -}}: {%- for tag in page.taxonomies.tags -%} -
- {{ tag }} +
- {{ tag }} {%- if not loop.last -%} , {%- endif -%} @@ -175,7 +179,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- set formatted_date = macros_format_date::format_date(date=page.updated, short=true, language_strings=language_strings) -%} {%- set updated_str = last_updated_str | replace(from="$DATE", to=formatted_date) -%} {%- set previous_visible = true -%} -
- {{ updated_str }} +
-
{#- Show link to remote changes if enabled -#}
{%- if config.extra.remote_repository_url and macros_settings::evaluate_setting_priority(setting="show_remote_changes", page=page, default_global_value=true) == "true" -%}
- {%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }} @@ -227,7 +231,12 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {{ macros_toc::toc(page=page, header=true, language_strings=language_strings) }} {% endif %} -
{{ page.description }}
+ {%- endif -%} + +
` + getIcon('comment') + ` ` + comments.length + ` ` + type + `s
+`; + comments.forEach(function (comment) { + let content = ''; + if (comment.hasOwnProperty('content')) { + if (comment.content.hasOwnProperty('html')) { + content = comment.content.html; + } else if (comment.content.hasOwnProperty('text')) { + content = comment.content.text; + } + } + + html += ` +-
+
+
+
+ `+ comment.author.name + `
+ `;
+ if (comment.published) {
+ const published = new Date(comment.published);
+ html += `
+ `;
+ }
+ html += `
+
+
+
+`;
+ });
+ html += `
+
+`+ content + ` + + source + +
+