[TASK] refactor Theme to be able to ad styled code

This commit is contained in:
TLRZ Seyfferth 2020-05-05 18:40:30 +02:00
parent 57d7278090
commit 572e85f5db
2 changed files with 15 additions and 3 deletions

View File

@ -26,6 +26,8 @@
<link rel="canonical"
href="{{ current_page.url }}" />
{% endif %}
{% endblock %}
{% block css %}
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link rel="stylesheet"
@ -33,8 +35,6 @@
<link 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 %}
</head>
@ -51,12 +51,13 @@
</div>
</main>
{% include "templates/layout/footer.twig" %}
{% block js %}
<script type="text/javascript"
src="{{ theme_url }}/js/materialize.min.js"></script>
<script src="{{ theme_url }}/js/site.js"
type="text/javascript">
</script>
{% endblock %}
</body>
</html>

View File

@ -0,0 +1,11 @@
{% extends "templates/layout/base.twig" %}
{% block css %}
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css"
rel="stylesheet" />
{{ parent() }}
{% endblock %}
{% block js %}
{% endblock %}