mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-07 03:52:38 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
108aae831c
|
|||
246fb81eb2 |
@ -102,6 +102,7 @@ plugins:
|
|||||||
externals_exclude:
|
externals_exclude:
|
||||||
- cdn.jsdelivr.net/npm/mathjax@3/*
|
- cdn.jsdelivr.net/npm/mathjax@3/*
|
||||||
- api.privacyguides.net/*
|
- api.privacyguides.net/*
|
||||||
|
- giscus.app/*
|
||||||
extra_css:
|
extra_css:
|
||||||
- assets/stylesheets/extra.css?v=2.10.0
|
- assets/stylesheets/extra.css?v=2.10.0
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
|
5
theme/main.html
Normal file
5
theme/main.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block extrahead %}
|
||||||
|
<link rel="preload" href="{{ 'assets/brand/WOFF/bagnard/Bagnard.woff' | url }}" as="font" type="font/woff" crossorigin>
|
||||||
|
{% endblock %}
|
@ -1,11 +1,14 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block extrahead %}
|
{% 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 }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/blog.css' | url }}">
|
||||||
<link rel="me" href="https://aragon.sh/@jonah">
|
<meta property="og:title" content='{{ page.meta.title }}' />
|
||||||
<link rel="me" href="https://fosstodon.org/@freddy">
|
<meta property="og:type" content='article' />
|
||||||
<link rel="me" href="https://mastodon.social/@dngray">
|
<meta property="og:url" content='{{ page.canonical_url }}' />
|
||||||
<link rel="me" href="https://mastodon.social/@blacklight447">
|
<meta property="og:image" content='https://www.privacyguides.org/{{ page.meta.image }}' />
|
||||||
<link rel="me" href="https://fosstodon.org/@hook54321">
|
<meta property="og:site_name" content='Privacy Guides' />
|
||||||
|
<meta name="twitter:creator" content='@privacy_guides' />
|
||||||
|
<meta name="twitter:site" content='@privacy_guides' />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
@ -35,4 +38,51 @@
|
|||||||
<h1>{{ page.title | d(config.site_name, true)}}</h1>
|
<h1>{{ page.title | d(config.site_name, true)}}</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ page.content }}
|
{{ 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 %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block extrahead %}
|
{% 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/home.css?v=2.10.0' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/home.css?v=2.10.0' | url }}">
|
||||||
<link rel="me" href="https://aragon.sh/@jonah">
|
<link rel="me" href="https://aragon.sh/@jonah">
|
||||||
<link rel="me" href="https://fosstodon.org/@freddy">
|
<link rel="me" href="https://fosstodon.org/@freddy">
|
||||||
|
Reference in New Issue
Block a user