diff --git a/templates/_partials/head.html b/templates/_partials/head.html index e69de29..ccdd011 100644 --- a/templates/_partials/head.html +++ b/templates/_partials/head.html @@ -0,0 +1,83 @@ + + + + + {% if page.extra.meta %} + + {% for data in page.extra.meta %} + + {% endfor %} + {% endif %} + + {% if current_path == "/" %} + + {{ config.title | default(value="Home") }} + + {% if not page_has_og_title %} + + {% endif %} + {% else %} + + {% if page.title %} {{ page.title }} + {% elif config.title %} {{ config.title }} + {% else %} Post {% endif %} + + + {% if not page_has_og_title %} + + {% endif %} + {% endif %} + + {% if not page_has_og_description %} + {% if page.description %} + + {% elif config.description %} + + {% endif %} + {% endif %} + + {% if not page_has_description %} + {% if page.description %} + + {% elif config.description %} + + {% endif %} + {% endif %} + + {% if config.extra.favicon %} + + {% endif %} + + {# opengraph, twitter_cards #} + + + {% if config.extra.useCDN | default(value=false) %} + + + + {% else %} + + {% endif %} + + + + + + + + + +