From b299a35f3970c94f7fb5987801fa72c374937584 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 10 Jun 2022 22:25:01 -0700 Subject: Meta Data Options --- templates/index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 03a652c..6d3bfe0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -22,11 +22,17 @@ {{- macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }} {%- endblock seo %} + + {%- block content %}
{%- for page in paginator.pages %}

{{ page.title }}

+ {%- if config.extra.meta_index.position %} + {%- if config.extra.meta_index.position == "top" or config.extra.meta_index.position == "both" %} + {{- macros::title_index(page=page) }} + {%- endif %}{%- endif %}

{%- if page.summary %} {{ page.summary | markdown(inline=true) | safe }} @@ -38,17 +44,11 @@ {%- endif %} ...more

- - {%- if page.taxonomies.authors and config.taxonomies %} - {%- for author in page.taxonomies.authors %} - {%- if author_flag %} and {% endif %} - {{ author }} - {%- set_global author_flag = true %} - {%- endfor %} - {%- elif config.extra.author and config.extra.author_show %}{{ config.extra.author }} - {%- endif %} {{ page.date | date(format="%Y %B %d") }}{%- if config.extra.readtime %} {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} {% endif %} -{%- if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}]{% endif %} -{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #{{ tag }} {% endfor -%}{%- endif %} + {%- if config.extra.meta_index.position %} + {%- if config.extra.meta_index.position == "bottom" or config.extra.meta_index.position == "both" %} + {{- macros::title_index(page=page) }} + {%- endif %} + {%- endif %}
{%- endfor %} {{- macros::pagination(paginator=paginator) }} -- cgit v1.3.1