{# Some common data #} {%if page.path or section.path %} {% set title = page.title | default(value=section.title) %} {% set path = page.path | default(value=section.path) %} {% set content = page.content | default(value=section.content) %} {% set extra = page.extra | default(value=section.extra) %} {% set is_blog_post = path != "/blog/" and path is starting_with("/blog/") %} {% set is_photo_page = path != "/photography/" and path is starting_with("/photography/") %} {% else %} {# If here, we are on the 404 page #} {% set title = "NOT FOUND" %} {% set path = "/404" %} {% set extra = [] %} {% set is_blog_post = false %} {% set is_photo_page = false %} {% endif %} {% block head %} {{title}} | {{config.title}} {% if current_url %}{% endif %} {# OpenGraph #} {% set opengraph_image = extra.og_image | default(value=config.extra.profile_photo)%} {% if extra.og_description %} {% elif page.description %} {% endif %} {% if page.path %}{% endif %} {% if page.date %}{% endif %} {# Fonts #} {# Allow pages to import custom CSS if they need #} {% for url in extra.css_import | default(value=[]) %} {% endfor %} {# Allow pages to import custom Head JS if they need #} {% for url in extra.head_js_import | default(value=[]) %} {% endfor %} {% endblock head %} {# Heading section (profile photo & name) #}
Evan Pratten
Evan Pratten
Software Developer
{# Navigation #} {# Announcement Handling #} {% if config.extra.home_announcement and path == "/" %}
{{config.extra.home_announcement | safe}}
{% elif config.extra.global_announcement %}
{{config.extra.global_announcement | safe}}
{% endif %} {# Page Content #}
{% block content %}
{{ content | safe }}
{% endblock content %}
{# Footer #}
{# Goatcounter #} {# Google Analytics #} {# Mermaid #} {# MathJax #}
{# Allow pages to import custom CSS if they need #}
{% for url in extra.js_import | default(value=[]) %} {% endfor %}
{# Used to for brid.gy verification #}