From f1998c321a4eec6d75b58d84aa8610971bf21979 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 31 Jul 2021 11:35:39 -0600 Subject: move static files into static sub-dir, refactor nix a bit --- static/src/_includes/footer.html | 7 +++++++ static/src/_includes/head.html | 15 ++++++++++++++ static/src/_includes/header.html | 36 +++++++++++++++++++++++++++++++++ static/src/_includes/image.html | 43 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 static/src/_includes/footer.html create mode 100644 static/src/_includes/head.html create mode 100644 static/src/_includes/header.html create mode 100644 static/src/_includes/image.html (limited to 'static/src/_includes') diff --git a/static/src/_includes/footer.html b/static/src/_includes/footer.html new file mode 100644 index 0000000..f66a879 --- /dev/null +++ b/static/src/_includes/footer.html @@ -0,0 +1,7 @@ + + diff --git a/static/src/_includes/head.html b/static/src/_includes/head.html new file mode 100644 index 0000000..e1cbd06 --- /dev/null +++ b/static/src/_includes/head.html @@ -0,0 +1,15 @@ + + + + + {%- seo -%} + + + + + + + {%- feed_meta -%} + + + diff --git a/static/src/_includes/header.html b/static/src/_includes/header.html new file mode 100644 index 0000000..a6b9e30 --- /dev/null +++ b/static/src/_includes/header.html @@ -0,0 +1,36 @@ + diff --git a/static/src/_includes/image.html b/static/src/_includes/image.html new file mode 100644 index 0000000..8875050 --- /dev/null +++ b/static/src/_includes/image.html @@ -0,0 +1,43 @@ +
+ + + {%- if include.width %} + {%- for targetWidth in site.img_widths reversed -%} + {% if include.width <= targetWidth %}{% continue %}{% endif %} + {%- if targetWidth > 1000 %} + 500 %} + + {%- endfor %} + {%- endif %} + {{ include.descr }} + + + {%- if include.descr %}
{{ include.descr }}{%- endif %} +
-- cgit v1.2.3