summaryrefslogtreecommitdiff
path: root/www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-05-21 18:59:15 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-05-21 18:59:15 +0100
commit0b9acaf9eb8ba65595fe2762abfa79b0cd636acf (patch)
tree5f0bdff9a5f6ee02a55d49aebee55694b7671cc6 /www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html
parent7d1cf217e8b8a45eb18f9af14a73f54ae385e17f (diff)
Add defer attribute to js links
Diffstat (limited to 'www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html')
-rw-r--r--www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html b/www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html
index 9438359..292ee9f 100644
--- a/www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html
+++ b/www/posts/jigsaw/2020-06-01/scheduling-posts-in-jigsaw/index.html
@@ -36,7 +36,7 @@ return [
],
],
];</code></pre><p>When deploying the site each post is passed to this filter. The first thing it does is convert the date that has been specified in the post's YAML front matter into a Carbon instance. It then returns true if the date is on or before the current date, I.e. when the site is been deployed. </p><p>With this filter I can specify future dates for several posts and they will only published once that date comes around. Posts are also exluded if a date has not been specified. This allows me to have posts that are a work in progress and shouldn't be published.</p><h3>Links</h3><a href="https://jigsaw.tighten.co/">Jigsaw - Static Site Generator for PHP Developers.</a><a href="https://jigsaw.tighten.co/docs/collections-filtering/">Using Filters in Jigsaw.</a><a href="https://carbon.nesbot.com/">Carbon - PHP API Extension for DateTime.</a><a href="/posts/jigsaw/">Jigsaw - Read More Posts.</a><p>I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to.</p><a href="mailto:david@davidtsadler.com">Email david@davidtsadler.com</a><h3>License</h3><a href="https://creativecommons.org/licenses/by-sa/4.0/">The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</a><p>Copyright © 2021 David T. Sadler.</p><a href="/">Return to Homepage.</a></section>
- <script src="/js/highlight.min.js"></script>
- <script src="/js/site.js"></script>
+ <script defer src="/js/highlight.min.js"></script>
+ <script defer src="/js/site.js"></script>
</body>
</html>