diff --git a/config.toml b/config.toml index 3fab18dd5ff4d137ab0c641f06d744576731e114..4ec83efa23f74d219109101ccd0fdafbb696b138 100755 --- a/config.toml +++ b/config.toml @@ -27,6 +27,8 @@ render_emoji = true version = "https://api.github.com/repos/kogeletey/karzok/releases/latest" cdnurl = "https://get.re128.net/" +show_word_count = true +show_reading_time = true [[extra.header]] text = "Meta" diff --git a/sass/src/_page.scss b/sass/src/_page.scss index 5fe0496ca9a57a60efc378f4c7fa2b0816a1be2d..ffb851b609ed5599ed7921655cc190b4a3645f75 100644 --- a/sass/src/_page.scss +++ b/sass/src/_page.scss @@ -103,7 +103,12 @@ display: flex; flex-wrap: wrap; li { + display: flex; list-style: none; - padding-left: 1em; + padding-right: 1em; + } + &-author { + padding-right: 0; + padding-left: 0.5em; } } diff --git a/templates/page.html b/templates/page.html index 697afa46466b333770058d15dced8df209d87c86..bcf250e7390950562970bce7120d071bde83e8cb 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,12 +10,21 @@ <h1 class="page-title"> {{ page.title }} </h1> {% block sections %} <ul class="sections"> + {% if config.extra.render_path %} + <li> <a href="{{ page.permalink }}">/{{ page.relative_path | trim_end_matches(pat=".md") }}</a></li> + {% endif %} + {% if config.extra.show_word_count %} + <li> <span> {{ page.word_count }} words </span></li> + {% endif %} + {% if config.extra.show_reading_time %} + <li> <span> {{ page.reading_time}} minutes to read </span></li> + {% endif %} {% if page.taxonomies.authors %} - <span> Authors: </span> + <span> Authors: </span> {% for author in page.taxonomies.authors %} <li> <!-- <a href="{{ get_taxonomy_url(kind="authors",name=author) | safe }}"> --> - <span>{{ author }}</span> + <span class="sections-author">{{ author }}</span> <!-- </a> --> </li> {% endfor %}