Skip to content

Commit

Permalink
Add styles and scripts template blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 4, 2024
1 parent f0aab68 commit 642b480
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions htmd/example_site/templates/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<meta name="twitter:site" content="{{ SITE_TWITTER }}">
{% endif %}
{% endblock meta_tags %}
{% if INCLUDE_CSS %}
<link href="{{ url_for('static', filename='combined.min.css') }}" rel="stylesheet" type="text/css">
{% endif %}
<link href="{{ url_for('pygments_css') }}" rel="stylesheet">
{% block styles %}
{% if INCLUDE_CSS %}
<link href="{{ url_for('static', filename='combined.min.css') }}" rel="stylesheet" type="text/css">
{% endif %}
<link href="{{ url_for('pygments_css') }}" rel="stylesheet">
{% endblock styles %}
<link href="{{ url_for('feed') }}" rel="alternate" title="{{ SITE_NAME }}" type="application/atom+xml">
</head>
<body>
Expand Down Expand Up @@ -55,8 +57,10 @@
{% endblock footer %}
</footer>
</div>
{% if INCLUDE_JS %}
<script src="{{ url_for('static', filename='combined.min.js') }}"></script>
{% endif %}
{% block scripts %}
{% if INCLUDE_JS %}
<script src="{{ url_for('static', filename='combined.min.js') }}"></script>
{% endif %}
{% endblock scripts %}
</body>
</html>

0 comments on commit 642b480

Please sign in to comment.