Added meta tag support for Google site verification.
This commit is contained in:
Bobby Wibowo 2018-08-31 01:45:51 +07:00
parent b49d625a01
commit bf31a59f2c
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
3 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,8 @@
{% set home_subtitle = "A <strong>modern</strong> self-hosted file upload service" %}
{% set google_site_verification = null %}
{#
This will be appended to the URLs of static files (CSS, JS, images, etc),
and should be changed on every updates to make sure clients load the very latest version of them.

View File

@ -7,6 +7,7 @@
<meta name="keywords" content="upload,{{ globals.name }},file,images,hosting">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ title | default(globals.name + ' &#8211; ' + globals.motto) | safe }}</title>
{% block stylesheets %}
@ -48,11 +49,10 @@
<meta name="application-name" content="{{ globals.name }}">
<meta name="msapplication-config" content="{{ globals.root }}/icons/browserconfig.xml?v={{ globals.v2 }}">
<meta name="theme-color" content="#232629">
{% block endmeta %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block scripts %}
<!-- Scripts -->
{% endblock %}
{% block scripts %}{% endblock %}
</body>
</html>

View File

@ -1,5 +1,12 @@
{% extends "_layout.njk" %}
{% block endmeta %}
{{ super() }}
{% if globals.google_site_verification %}
<meta name="google-site-verification" content="{{ globals.google_site_verification }}" />
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="libs/fontello/fontello.css?v={{ globals.v3 }}">