mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-02 17:42:39 +00:00
Add cover images (#2137)
This commit is contained in:
@ -84,13 +84,31 @@
|
||||
<strong>Visit privacyguides.org for current advice.</strong>
|
||||
</a>
|
||||
{% else %}{% endif %}{% endblock %}
|
||||
{% block extrahead %}{% if page and page.meta and page.meta.schema %}
|
||||
{% block extrahead %}
|
||||
<meta name="robots" content="max-snippet:-1, max-image-preview:large">
|
||||
{% if page and page.meta and page.meta.schema %}
|
||||
<script type="application/ld+json">
|
||||
{{ page.meta.schema|tojson }}
|
||||
</script>
|
||||
{% endif %}{% endblock %}
|
||||
{% block content %}
|
||||
{% include "partials/content.html" %}
|
||||
{% if page and page.meta and page.meta.cover %}
|
||||
<div class="center-cropped" style="background-image:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/en/assets/img/cover/{{ page.meta.cover }}');">
|
||||
<h1>{{ page.title | d(config.site_name, true)}}</h1>
|
||||
<img src="/en/assets/img/cover/{{ page.meta.cover }}" alt="{{ page.title | d(config.site_name, true)}} cover image" title="{{ page.title | d(config.site_name, true)}}">
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "material/tags" in config.plugins %}
|
||||
{% include "partials/tags.html" %}
|
||||
{% endif %}
|
||||
{% include "partials/actions.html" %}
|
||||
{% if "\x3ch1" not in page.content and not page.meta.cover %}
|
||||
<h1>{{ page.title | d(config.site_name, true)}}</h1>
|
||||
{% endif %}
|
||||
{{ page.content }}
|
||||
{% include "partials/source-file.html" %}
|
||||
{% include "partials/feedback.html" %}
|
||||
{% include "partials/comments.html" %}
|
||||
{% if config.theme.language == "es" %}
|
||||
<div class="admonition info">
|
||||
<p>Está viendo la copia en español de Privacy Guides, traducidas por nuestro fantástico equipo lingüístico en <a href="https://crowdin.com/project/privacyguides">Crowdin</a>. Si nota un error o ve alguna sección sin traducir en esta página, ¡<a href="https://matrix.to/#/#pg-i18n:aragon.sh">considere ayudar</a>!</p>
|
||||
|
Reference in New Issue
Block a user