• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 179

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 4th 2020 replying to this from @cassidoo
@cassidoo If the 6th one wasn’t a question, I think you’ve missed an opportunity.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 3rd 2020 replying to this from @csswizardry
@csswizardry @hey_stac Preparation preparation preparation. My view of the production team getting ducks in a row for #AllDayHey this Thursday.

Usually just for those able to get to glorious Yorkshire. This year, anyone can attend!
Embedded image from Twitter
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @addyosmani
@addyosmani @eleven_ty @sebmck Yeah. I also like that it’s JavaScript all the way down. (But not necessarily all the way to the front)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @mahemoff
@mahemoff @maplemedia Huge congratulations!!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @philhawksworth
@X_Qlusive @gerwitz @Netlify And in my example site, I do that here

https://github.com/philhawksworth/virtual-lolly/blob/ed1dd458112eef6902b8522544e20b30b64b27d9/plugins/track-latest/index.js#L52-L57
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @X_Qlusive
@X_Qlusive @gerwitz @Netlify Exactly.

The cache utility of Netlify Build makes that action simple. The logic of when/what to cache is where things might get complex and each use case needs some thought.

Here’s the cache API:

https://github.com/netlify/build/blob/master/packages/cache-utils/README.md
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @BarstoolNewsN
@BarstoolNewsN Or maybe just try a vegetable patch instead of murder and cannibalism.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @gerwitz
@gerwitz @X_Qlusive @Netlify I’m using the @Netlify build environment for this. But you can run that locally which is what I do for development.

https://github.com/netlify/build
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @philhawksworth
@X_Qlusive @gerwitz @Netlify - Builds retrieve previously cached pages and the timestamp of the previous build
- Builds only create new pages for content created after our timestamp

This is made pretty simple because of the content model on this site, and easy access to cache between builds.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 2nd 2020 replying to this from @X_Qlusive
@X_Qlusive @gerwitz @Netlify I’ll blog it in detail next week, but in summary:

- Content data comes from an API
- When the site builds it notes the timestamp of the most resent item
- After building, we cache all the API driven pages, and the timestamp of the latest item

...
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @X_Qlusive
@X_Qlusive @eleven_ty @Netlify Interesting. What are you using to generate the site?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @gerwitz
@gerwitz @Netlify There isn’t a plugin for this, but all plugins get access to some utilities of which the build cache is one.

You can make and use plugins without publishing them. Which is what I did here. It’s part of the site’s code.

https://github.com/philhawksworth/virtual-lolly/tree/master/plugins/track-latest

I’ll write it up in a blog post.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @DavidWells
@DavidWells @Netlify I’m so enjoying the very logical access to such useful utilities which were juuuuust out of reach before Build plugins.

Imagination humming a little now.
Fun!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @philhawksworth
Oh hello, incremental builds!

@eleven_ty now takes ~1.5 to rebuild the ~1300 page site.

Netlify Build Plugins makes build cache available!

👉 https://www.netlify.com/build/plugins-beta?utm_source=twitter&utm_medium=plugins-incremental-pnh&utm_campaign=devex

And wow! @eleven_ty's pagination has some nifty tricks to help make the pages!

👉 https://www.11ty.dev/docs/pagination/#the-before-callback
Embedded image from Twitter
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @bzmills
@bzmills @wesbos @stolinski @syntaxfm @Netlify Nice!

I tried to illustrate how to use that in this blog post. I'd love to hear more about your implementation!

https://www.netlify.com/blog/2020/03/19/learn-how-to-add-jamstack-to-your-infrastructure-in-8-minutes/
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @craigrcoles
@craigrcoles Oh very good.
*Adds to queue*
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @piccalilli_
@hankchizljaw Same.
There might be some air-drumming happening.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020
Starting my Friday like it's a Friday. No regrets.
Embedded image from Twitter
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • May 1st 2020 replying to this from @marcysutton
@marcysutton Take care, Marcy.
Lots of 💜
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020 replying to this from @bepsays
@bepsays Don’t Stop Me Now, by Queen, I’d imagine.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020
Facts. https://twitter.com/Netlify/status/1255938736489222155
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020 replying to this from @zachleat
@zachleat @nhoizey @hankchizljaw @eleven_ty @Netlify Any thoughts on what you'll be using that time for now that you're getting it back?
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020
RT @jlengstorf: 🔴 live now!

I’m doing a solo stream to build a @Netlify Build Plugin

come learn about the powerful customizations this un…
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020 replying to this from @jenlooper
@jenlooper @eleven_ty @Netlify This makes me incredibly happy! 🍭❤️
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 30th 2020 replying to this from @iambolajiayo
@iambolajiayo @DThompsonDev @techgirl1908 @dabit3 @sarah_edo @EmmaBostian @TatianaTMac @TaelurAlexis @Zfinix1 @AdoraNwodo @lauragift_ @TejasKumar_ @tlakomy @unicodeveloper @Ace_KYD @cassidoo @yomdroid @VishwaMehta30 @iamdillion @jamesqquick @kentcdodds How very flattering! 🤗
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.