5 ms·
>Doesn't this mean that I have to type a bunch of boilerplate every time I create a new blog post? > >My simple answer is: just copy it. My more advanced answer
by macspoofing 6y ago
>Doesn't this mean that I have to type a bunch of boilerplate every time I create a new blog post?
>
>My simple answer is: just copy it. My more advanced answer is this:
>
>1. Make blog posts and pages self-contained – in other words, have each post or page reside in its own folder, with its own scripts and stylesheets.
>
>2. When you want to write another post or page, copy the folder of an already existing post or page and edit it.
>
>3. If you find the previous step too much work, write a shell script that copies the directory and removes the old content for you.
Shell script eh ... OK - that'll work ...
And now you want to adjust your style and have it apply it to all your existing page. Another shell script? That'll work, though you're on your way in recreating a static site generator.
- deleted 6y ago[deleted]
- Kneecaps07 6y agoHe actually addresses this by saying he doesn't care about the previous posts. They'll just have a different format and are a time capsule.
- matthuggins 6y agoDid you see his update below that paragraph? He admits that he had to update everything, and his pages are not currently a time capsule. It basically negates his entire message.
- lhorie 6y agoFWIW, the screenshot of the page doesn't actually look like how the page looks like currently. One could handwave and say that's intentional, but IMHO it looks as though the styles are broken (in particular the text in really small font and the yellow highlighted text) I think the moral of the story here is that if you're going to be advocating for HTML over a SSG, then perhaps it would make sense to invest a bit of time on a styleguide page, or take a bit more effort to leverage default styles (in the style of http://motherfuckingwebsite.com/ http://motherfuckingwebsite.com/), or just commit to inline styles to lock down the individualistic look of each page (if that's what they want). Being wishy-washy about style management over time is not going to age well.
- type0 6y ago> Shell script eh ... OK - that'll work ... There's Blogit shell script https://pedantic.software/git/blogit https://pedantic.software/git/blogit as well as many others, no reason to write your own.
- macspoofing 6y agoThere's also jekyll and countless other tools too =)