inlined script and css to base html

This commit is contained in:
Parker TenBroeck 2026-01-23 09:19:44 -05:00
parent 7e636125c3
commit aecbbcf022
4 changed files with 10 additions and 7 deletions

View file

@ -2,7 +2,7 @@
@media (prefers-color-scheme: dark) {
* {
color-scheme: dark !important;
color-scheme: dark;
}
}
@ -14,7 +14,7 @@
@media (prefers-color-scheme: light) {
* {
color-scheme: light !important;
color-scheme: light;
}
}

View file

@ -23,7 +23,8 @@
{%- block feeds -%}{%- endblock -%}
{% endif %}
<link rel="stylesheet" href="{{ get_url(path='style.css', cachebust=true) }}">
{% set css = load_data(path="style.css") %}
<style>{{ css | safe }}</style>
{%- if page.extra.stylesheets or section.extra.stylesheets %}
{%- for stylesheet in page.extra.stylesheets | default(value=section.extra.stylesheets) %}
@ -142,5 +143,7 @@
</div>
</div>
</body>
<script src="{{ get_url(path='/js/script.js') }}"></script>
{% set script = load_data(path="js/script.js") %}
<script>{{script | safe}}</script>
</html>

View file

@ -6,9 +6,9 @@
<br><br>
<div class="gallery">
{% for page in section.pages -%}
{% set image = resize_image(path=page.extra.picture_src, width=260*2, height=180*2, op="fit_width") %}
{% set image = resize_image(path=page.extra.picture_src, width=260, height=180, op="fit_width") %}
<a href="{{ page.permalink }}">
<img src="{{ image.url }}" />
<img src="{{ image.url }}" alt="{{page.description}}" fetchpriority=high />
</a>
{%- endfor %}
</div>

View file

@ -1,7 +1,7 @@
<p><a href="https://github.com/ParkerTenBroeck">ParkerTenBroeck</a> on GitHub
|
<a href="mailto:parker@parkertenbroeck.ca">parker@parkertenbroeck.ca</a>
<a href="mailto:me@parkertenbroeck.ca">me@parkertenbroeck.ca</a>
|
<a href="{{ get_url(path='rss.xml', trailing_slash=false) }}">RSS</a>
|