[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"
|
||||
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>
|
||||
|
||||
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