PSRule/overrides/main.html

54 строки
1.8 KiB
HTML

{% extends "base.html" %}
<!-- Custom front matter -->
{% block extrahead %}
<!-- Determine title -->
{% set title = config.site_name %}
{% if page and page.title and not page.is_homepage %}
{% set title = config.site_name ~ " - " ~ page.title | striptags %}
{% endif %}
<!-- Determine description -->
{% set description = config.site_description %}
{% if page and page.meta and page.meta.description %}
{% set description = page.meta.description %}
{% endif %}
<!-- The image needs to have an absolute URL -->
{% set image = config.extra.local.social_preview %}
<!-- Open graph meta tags -->
<meta property="og:site_name" content="{{ config.site_name }}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="{{ image }}" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="640" />
<meta property="og:image:alt" content="{{ description }}" />
<!-- Twitter meta tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@github" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ description }}" />
<meta name="twitter:image" content="{{ image }}" />
{% endblock %}
{% block content %}
{{ super() }}
{% include "partials/giscus.html" %}
{% endblock %}
{% block announce %}
You are viewing the next version PSRule.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest stable version.</strong>
</a>
{% endblock %}