[TASK] refactor Theme to be able to ad styled code
This commit is contained in:
parent
57d7278090
commit
572e85f5db
@ -26,6 +26,8 @@
|
|||||||
<link rel="canonical"
|
<link rel="canonical"
|
||||||
href="{{ current_page.url }}" />
|
href="{{ current_page.url }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block css %}
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
@ -33,8 +35,6 @@
|
|||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="{{ theme_url }}/css/style.css"
|
href="{{ theme_url }}/css/style.css"
|
||||||
type="text/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>
|
||||||
|
|
||||||
@ -51,12 +51,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{% include "templates/layout/footer.twig" %}
|
{% include "templates/layout/footer.twig" %}
|
||||||
|
{% block js %}
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="{{ theme_url }}/js/materialize.min.js"></script>
|
src="{{ theme_url }}/js/materialize.min.js"></script>
|
||||||
<script src="{{ theme_url }}/js/site.js"
|
<script src="{{ theme_url }}/js/site.js"
|
||||||
type="text/javascript">
|
type="text/javascript">
|
||||||
</script>
|
</script>
|
||||||
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
11
Packages/chrosey_materialize/templates/withCode.twig
Normal file
11
Packages/chrosey_materialize/templates/withCode.twig
Normal 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 %}
|
||||||
Loading…
x
Reference in New Issue
Block a user