mirror of
https://github.com/xemu-project/xemu-website.git
synced 2024-11-23 11:29:43 +00:00
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block extrahead %}
|
|
{% set title = config.site_name %}
|
|
{% if page and page.title and not page.is_homepage %}
|
|
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
|
|
{% endif %}
|
|
{% set image = config.site_url ~ 'assets/images/social_banner.png' %}
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:title" content="{{ title }}">
|
|
<meta property="og:description" content="{{ config.site_description }}">
|
|
<meta property="og:url" content="{{ page.canonical_url }}">
|
|
<meta property="og:image" content="{{ image | url }}">
|
|
<meta property="og:image:type" content="image/png">
|
|
<meta property="og:image:width" content="1280">
|
|
<meta property="og:image:height" content="640">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="@xemu_project">
|
|
<meta name="twitter:creator" content="@xemu_project">
|
|
<meta name="twitter:title" content="{{ title }}">
|
|
<meta name="twitter:description" content="{{ config.site_description }}">
|
|
<meta name="twitter:image" content="{{ image | url }}">
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-163809672-1"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-163809672-1');
|
|
</script>
|
|
{% endblock %}
|
|
{% block htmltitle %}
|
|
{% if page and page.meta and page.meta.title %}
|
|
<title>{{ page.meta.title }} | {{ config.site_name }}</title>
|
|
{% elif page and page.title and not page.is_homepage %}
|
|
<title>{{ page.title | striptags }} | {{ config.site_name }}</title>
|
|
{% else %}
|
|
<title>{{ config.site_name }}</title>
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block announce %}
|
|
|
|
<a href="https://discord.gg/ayyjsuM">
|
|
Join the <strong>xemu</strong> community on
|
|
<span class="twemoji discord">
|
|
{% include ".icons/fontawesome/brands/discord.svg" %}
|
|
</span>
|
|
<strong>Discord</strong>
|
|
</a>
|
|
|
|
|
|
|
|
|
<a href="https://twitter.com/xemu_project">
|
|
Follow <strong>@xemu_project</strong> on
|
|
<span class="twemoji twitter">
|
|
{% include ".icons/fontawesome/brands/twitter.svg" %}
|
|
</span>
|
|
<strong>Twitter</strong>
|
|
</a>
|
|
{% endblock %} |