[TASK] update base.twig
This commit is contained in:
parent
53fcfd0e7f
commit
3737093a4d
@ -4,8 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta name="viewport"
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||||
content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% if meta.title %}
|
{% if meta.title %}
|
||||||
@ -14,26 +13,19 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ site_title }}</title>
|
{{ site_title }}</title>
|
||||||
{% if meta.description %}
|
{% if meta.description %}
|
||||||
<meta name="description"
|
<meta name="description" content="{{ meta.description|striptags }}"/>
|
||||||
content="{{ meta.description|striptags }}" />
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if meta.robots %}
|
{% if meta.robots %}
|
||||||
<meta name="robots"
|
<meta name="robots" content="{{ meta.robots }}"/>
|
||||||
content="{{ meta.robots }}" />
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if current_page %}
|
{% if current_page %}
|
||||||
<link rel="canonical"
|
<link rel="canonical" href="{{ current_page.url }}"/>
|
||||||
href="{{ current_page.url }}" />
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
||||||
href="{{ theme_url }}/css/mini-{{ config.theme_config.color }}.min.css">
|
<link rel="stylesheet" href="{{ theme_url }}/css/style.css" type="text/css"/>
|
||||||
<link rel="stylesheet"
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css" rel="stylesheet"/>
|
||||||
href="{{ theme_url }}/css/style.css"
|
|
||||||
type="text/css" />
|
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css"
|
|
||||||
rel="stylesheet" />
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -67,12 +59,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include "templates/layout/footer.twig" %}
|
{% include "templates/layout/footer.twig" %}
|
||||||
<script src="{{ theme_url }}/js/site.js"
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
||||||
type="text/javascript">
|
<script src="{{ theme_url }}/js/site.js" type="text/javascript"></script>
|
||||||
</script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-core.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-core.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js">
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user