{%- set date_plugin = config.plugins.get('git-revision-date-localized') %} {%- set date_suffix = ('_raw_' ~ date_plugin.config.type) if date_plugin and date_plugin.config.type != 'timeago' else '' %} {%- set created = (page.meta.get('git_creation_date_localized' ~ date_suffix) or page.meta.get('git_creation_date_localized')) if config.theme.show_metadata_created and page and page.meta else none %} {%- set updated = (page.meta.get('git_revision_date_localized' ~ date_suffix) or page.meta.get('git_revision_date_localized')) if config.theme.show_metadata_updated and page and page.meta else none %} {%- set word_count = (page.content | striptags | wordcount) if config.theme.show_metadata_reading_time and page and page.content else 0 %} {%- set reading_minutes = ([1, ((word_count / 265) | round(0, 'ceil')) | int] | max) if word_count else 0 %} {%- set authors = git_page_authors if config.theme.show_metadata_authors else none %} {%- if config.theme.show_metadata and (created or updated or reading_minutes or authors) %} {%- endif %}