mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-12-03 00:13:33 +01:00
89 lines
3.2 KiB
HTML
89 lines
3.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block extrahead %}
|
|
<link rel="preload" href="{{ 'assets/brand/WOFF/bagnard/Bagnard.woff' | url }}" as="font" type="font/woff" crossorigin>
|
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/blog.css' | url }}">
|
|
<meta property="og:title" content='{{ page.meta.title }}' />
|
|
<meta property="og:type" content='article' />
|
|
<meta property="og:url" content='{{ page.canonical_url }}' />
|
|
<meta property="og:image" content='https://www.privacyguides.org/{{ page.meta.image }}' />
|
|
<meta property="og:site_name" content='Privacy Guides' />
|
|
<meta name="twitter:creator" content='@privacy_guides' />
|
|
<meta name="twitter:site" content='@privacy_guides' />
|
|
{% endblock %}
|
|
{% block tabs %}
|
|
{{ super() }}
|
|
<style>.md-content > .md-typeset h1{visibility:hidden;font-size:0;}</style>
|
|
<section class="mdx-container">
|
|
<div class="md-grid md-typeset">
|
|
<div class="mdx-hero">
|
|
<div class="mdx-hero__content">
|
|
<h1>{{ page.meta.title }}</h1>
|
|
<p>{{ page.meta.created }} | {{ page.meta.author }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|
|
{% block content %}
|
|
{% if page.meta.image %}
|
|
<img src="{{ page.meta.image | url }}">
|
|
{% endif %}
|
|
<a href="{{ '/feed_rss_created.xml' | url }}" title="Open RSS Feed" class="md-content__button md-icon">
|
|
{% include ".icons/material/rss.svg" %}
|
|
</a>
|
|
{% if "tags" in config.plugins %}
|
|
{% include "partials/tags.html" %}
|
|
{% endif %}
|
|
{% if not "\x3ch1" in page.content %}
|
|
<h1>{{ page.title | d(config.site_name, true)}}</h1>
|
|
{% endif %}
|
|
{{ page.content }}
|
|
|
|
<!-- Giscus -->
|
|
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
|
|
<script src="https://giscus.app/client.js"
|
|
data-repo="privacyguides/privacyguides.org"
|
|
data-repo-id="MDEwOlJlcG9zaXRvcnkzMTg0MDE5MDY="
|
|
data-category="Announcements"
|
|
data-category-id="DIC_kwDOEvptcs4COX5p"
|
|
data-mapping="og:title"
|
|
data-reactions-enabled="1"
|
|
data-emit-metadata="0"
|
|
data-input-position="top"
|
|
data-theme="light"
|
|
data-lang="en"
|
|
crossorigin="anonymous"
|
|
async>
|
|
</script>
|
|
|
|
<!-- Reload on palette change -->
|
|
<script>
|
|
var palette = __md_get("__palette")
|
|
if (palette && typeof palette.color === "object")
|
|
if (palette.color.scheme === "slate") {
|
|
var giscus = document.querySelector("script[src*=giscus]")
|
|
giscus.setAttribute("data-theme", "transparent_dark")
|
|
|
|
|
|
}
|
|
|
|
/* Register event handlers after documented loaded */
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
var ref = document.querySelector("[data-md-component=palette]")
|
|
ref.addEventListener("change", function() {
|
|
var palette = __md_get("__palette")
|
|
if (palette && typeof palette.color === "object") {
|
|
var theme = palette.color.scheme === "slate" ? "transparent_dark" : "light"
|
|
|
|
/* Instruct Giscus to change theme */
|
|
var frame = document.querySelector(".giscus-frame")
|
|
frame.contentWindow.postMessage(
|
|
{ giscus: { setConfig: { theme } } },
|
|
"https://giscus.app"
|
|
)
|
|
}
|
|
})
|
|
})
|
|
</script>
|
|
{% endblock %}
|