diff --git a/README.md b/README.md index 20455f4..cef9347 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,20 @@ default_og_image = "static/ocean.jpg" ## Configuration +### Only show the post's description + +On each post you can specify the following: + +```toml +description = "test description" + +[extra] +show_only_description = true +``` + +This will render `test description` under this +particular post on the homepage instead of a summary. + ### Colors Both the accent colors and background colors are diff --git a/templates/index.html b/templates/index.html index 94d668d..8b67c98 100644 --- a/templates/index.html +++ b/templates/index.html @@ -73,7 +73,8 @@ {%- for page in show_pages %}
{{ post_macros::header(page=page) }} - {{ post_macros::content(page=page, summary=true) }} + + {{ post_macros::content(page=page, summary=true, show_only_description=page.extra.show_only_description | default(value=false)) }}
{% endfor -%}