{% if page.title %} {% set title = page.title %} {% elif section.title %} {% set title = section.title %} {% elif term %} {% set title = "|" ~ term.name ~ "|" %} {% elif current_path and "tags" in current_path %} {% set title = "Root Index" %} {% elif config.title %} {% set title = config.title %} {% endif %} {% if page.extra.author %} {% set author = page.extra.author %} {% elif section.extra.author %} {% set author = section.extra.author %} {% elif config.extra.author %} {% set author = config.extra.author %} {% endif %} {% if page.description %} {% set description = page.description | truncate(length=150) %} {% elif section.description %} {% set description = section.description | truncate(length=150) %} {% elif config.description %} {% set description = config.description | truncate(length=150) %} {% endif %} {% if page.extra.image %} {% set image = get_url(path=page.extra.image, trailing_slash=false) %} {% elif section.extra.image %} {% set image = get_url(path=section.extra.image, trailing_slash=false) %} {% elif page.path %} {% set image = get_url(path=page.path ~ "og.png", trailing_slash=false) %} {% elif current_path %} {% set image = get_url(path=current_path ~ "og.png", trailing_slash=false) %} {% else %} {% set image = get_url(path="og.png", trailing_slash=false) %} {% endif %} {% if page.permalink %} {% set url = page.permalink %} {% elif section.permalink %} {% set url = section.permalink %} {% elif config.base_url %} {% set url = config.base_url %} {% endif %} {% if title %} {% if current_url and url != current_url %} {% set url = get_url(path=current_path, trailing_slash=true) %} {% endif %} {{ title }} {% endif %} {% block metatags %} {% if title %} {% endif %} {% if author %} {% endif %} {% if description %} {% endif %} {% if title %} {% endif %} {% if title %} {% endif %} {% if description %} {% endif %} {% if image %} {% endif %} {% set twitter_card = config.extra.twitter_card | default(value=true) %} {% if twitter_card != false %} {% if title %} {% endif %} {% if description %} {% endif %} {% if image %} {% endif %} {% endif %} {% endblock metatags %} {% if config.generate_feeds %} {% block feed%} {% endblock feed %} {% endif%} {% block css %} {% set cssHash = get_hash(path="css/main.css", sha_type=256, base64=true) %} {% endblock css %} {% set cssNakedDayJsHash = get_hash(path="js/css-naked-day.js", sha_type=256, base64=true) %} {% set jsHash = get_hash(path="js/copy-button.js", sha_type=256, base64=true) %} {% set emojiJsHash = get_hash(path="js/emoji-replace.js", sha_type=256, base64=true) %} {% set lightboxJsHash = get_hash(path="js/lightbox.js", sha_type=256, base64=true) %} {% set relativeTimeJsHash = get_hash(path="js/relative-time.js", sha_type=256, base64=true) %}