diff --git a/templates/page.html b/templates/page.html index 8ed6816..e458d64 100644 --- a/templates/page.html +++ b/templates/page.html @@ -137,6 +137,10 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- set previous_visible = true -%} {% endif %} + {% if config.extra.hcard and config.extra.hcard.enable and ( not author_list or author_list is containing(config.author)) %} + {% include "partials/hcard_small.html" %} + {% endif %} + {%- set separator_with_class = ""-%} {#- Date -#} diff --git a/templates/partials/hcard_small.html b/templates/partials/hcard_small.html new file mode 100644 index 0000000..cee858e --- /dev/null +++ b/templates/partials/hcard_small.html @@ -0,0 +1,26 @@ +{%- set hcard = config.extra.hcard -%} + +{%- set full_name = config.author -%} +{%- if hcard.full_name -%} + {%- set full_name = hcard.full_name -%} +{%- endif -%} + +{%- set homepage = config.base_url -%} +{%- if hcard.homepage -%} + {%- set homepage = hcard.homepage -%} +{%- endif -%} + +{%- set icon_attr = "" -%} +{%- if hcard.avatar -%} + {%- set icon_attr = "author-icon" -%} +{%- endif -%} + +