mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
inlined script and css to base html
This commit is contained in:
parent
7e636125c3
commit
aecbbcf022
4 changed files with 10 additions and 7 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
* {
|
* {
|
||||||
color-scheme: dark !important;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
* {
|
* {
|
||||||
color-scheme: light !important;
|
color-scheme: light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@
|
||||||
{%- block feeds -%}{%- endblock -%}
|
{%- block feeds -%}{%- endblock -%}
|
||||||
{% endif %}
|
{% 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 %}
|
{%- if page.extra.stylesheets or section.extra.stylesheets %}
|
||||||
{%- for stylesheet in page.extra.stylesheets | default(value=section.extra.stylesheets) %}
|
{%- for stylesheet in page.extra.stylesheets | default(value=section.extra.stylesheets) %}
|
||||||
|
|
@ -142,5 +143,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script src="{{ get_url(path='/js/script.js') }}"></script>
|
|
||||||
|
{% set script = load_data(path="js/script.js") %}
|
||||||
|
<script>{{script | safe}}</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="gallery">
|
<div class="gallery">
|
||||||
{% for page in section.pages -%}
|
{% 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 }}">
|
<a href="{{ page.permalink }}">
|
||||||
<img src="{{ image.url }}" />
|
<img src="{{ image.url }}" alt="{{page.description}}" fetchpriority=high />
|
||||||
</a>
|
</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<p><a href="https://github.com/ParkerTenBroeck">ParkerTenBroeck</a> on GitHub
|
<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>
|
<a href="{{ get_url(path='rss.xml', trailing_slash=false) }}">RSS</a>
|
||||||
|
|
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue