mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
* Add Bootstrap Extension * Rename main.yml * Artifact Upload * Fix Bootstrap Reference Error * BootstrapTreeProcessor * getiterator removed * keys function * Style Images * Update docs_build.yml * Added Meta Files * Template Get * Fix Page Ref * Update BASE_URL * Sort Schemas * Add Sitemaps * Add favicons, open-graph, and setup guide * Update Setup.md * Update .gitignore * Update Setup.md * Use _blank on external links * Restructured Docs * Fix Links * Added XML Schemas * Name XML Schemas * Improved Best Practices * Add Logs For Static Files * Make docs build happen on PR
13 lines
885 B
Django/Jinja
13 lines
885 B
Django/Jinja
{% macro external_link(display_name, link, class) %}<a class="{{ class|default("") }}" target="_blank" rel="noopener" href="{{ link }}">{{ display_name|safe }}</a>{% endmacro %}
|
|
|
|
{% macro is_active_page(title) %}{% if title == page.title %}active{% endif %}{% endmacro %}
|
|
|
|
{% macro nav_item(title, href) %}<li class="nav-item me-1"><a href="{{ href }}" class="nav-link {% if title|lower == page.title|lower %}active{% endif %}" {% if title|lower == page.title|lower %}aria-current="page"{% endif %}>{{ title }}</a></li>{% endmacro %}
|
|
|
|
{% macro badge(type, content, classes) %}<span class="badge rounded-pill bg-{{ type }} {{ classes }}">{{ content|safe }}</span>{% endmacro %}
|
|
|
|
{% macro defer_css(link) %}
|
|
<link rel="preload" href="{{ link }}" as="style" onload="this.onload=null;this.rel='stylesheet';"/>
|
|
<noscript><link rel="stylesheet" href="{{ link }}"/></noscript>
|
|
{% endmacro %}
|