Skip to content
Snippets Groups Projects
Unverified Commit e0ac253c authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add 404 template

parent 17f9dbb9
No related branches found
No related tags found
No related merge requests found
Pipeline #175230 passed
{% extends "base.html" %}
{% block main %}
<section class="section">
<div class="container">
<div class="message is-danger">
<div class="message-header">
<p>Seite nicht gefunden (404)</p>
<a class="button delete" href="{{ get_url(path="@/_index.md") }}"></a>
</div>
<div class="message-body">
Die gesuchte Seite wurde leider nicht gefunden.
</div>
</div>
</div>
</section>
{% endblock %}
{% if page -%} {% if page -%}
{% set thing = page -%} {% set thing = page -%}
{% else -%} {% elif section -%}
{% set thing = section -%} {% set thing = section -%}
{% endif -%} {% endif -%}
<!DOCTYPE html> <!DOCTYPE html>
...@@ -16,16 +16,17 @@ ...@@ -16,16 +16,17 @@
{% block og %} {% block og %}
<meta property="og:site_name" content="{{ config.title }}" /> <meta property="og:site_name" content="{{ config.title }}" />
<meta property="og:title" content="{% block og_title %}{{ thing.title | default(value=config.title) }}{% endblock og_title %}" /> {% if thing %}
<meta property="og:description" content="{{ thing.description | default(value=config.description) }}" /> <meta property="og:title" content="{% block og_title %}{{ thing.title | default(value=config.title) }}{% endblock og_title %}" />
<meta property="og:type" content="{% block og_type %}{{ thing.extra.og.type | default(value='article') }}{% endblock og_type %}" /> <meta property="og:description" content="{{ thing.description | default(value=config.description) }}" />
<meta property="og:url" content="{% block og_url %}{{ thing.permalink | safe }}{% endblock og_url %}" /> <meta property="og:type" content="{% block og_type %}{{ thing.extra.og.type | default(value='article') }}{% endblock og_type %}" />
{% if thing.extra.depiction %} <meta property="og:url" content="{% block og_url %}{{ thing.permalink | safe }}{% endblock og_url %}" />
<meta property="og:image" content="{{ get_url(path="@/" ~ thing.relative_path, trailing_slash=true) }}{{ thing.extra.depiction.image | safe }}" /> {% if thing.extra.depiction %}
<meta property="og:image:alt" content="{{ thing.extra.depiction.alt }}" /> <meta property="og:image" content="{{ get_url(path="@/" ~ thing.relative_path, trailing_slash=true) }}{{ thing.extra.depiction.image | safe }}" /> <meta property="og:image:alt" content="{{ thing.extra.depiction.alt }}" />
{% elif config.extra.og.image %} {% elif config.extra.og.image %}
<meta property="og:image" content="{{ get_url(path=config.extra.og.image.url) }}" /> <meta property="og:image" content="{{ get_url(path=config.extra.og.image.url) }}" />
<meta property="og:image:alt" content="{{ config.extra.og.image.alt }}" /> <meta property="og:image:alt" content="{{ config.extra.og.image.alt }}" />
{% endif %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment