BlogEngine: PreRender everything
This commit is contained in:
parent
8d2a27e4d8
commit
6931e2a414
4 changed files with 7 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ After 4-5 months, I started to notice some noteworthy drawbacks to using Notion
|
|||
Sometimes, however, I found this limiting, and I had to force my ideas or notes to fit a structure that I hadn’t defined and didn’t want to define. I had a number of pages in Notion which were essentially lists of half-formed ideas, or were links to pages for half-formed ideas. This structural organisation felt so final, and high-cost. Like changing anything would require a lot of boilerplate and formulated thinking, when for me the note making and moving _is_ the thinking.
|
||||
When does something move to its own page versus sitting in bullet list of other whacky ideas? Where does this new page live? In my mind, it belongs with other half-formed ideas, because it’s in progress, but it also belongs with its thematic brethren: if it’s a software idea it doesn’t belong next to a meal plan, cycle route database, or fitness training regime.
|
||||
This is at the route of my move away from Notion: I learn best through experimenting and demonstrating to myself - and for this to be accessible, I need to have no investment in the results of experimentation. If I need to set up five different routes on Strava before I find the right one, I will happily just discard the old ones - it’s 2019 and data has never been cheaper. I could not learn a language, framework, or library by reading the docs or a blog post.
|
||||
Notion is about creating a product., a well formed artefact. My process is about creating a lot of mess at very low cost. I felt guilty about deleting things or moving them within Notion, which is strictly a personal feeling, and not a design intention by the team behind the product (it might be, but I really don’t think it is.) [f1](#footnote-1)
|
||||
Notion is about creating a product., a well formed artefact. My process is about creating a lot of mess at very low cost. I felt guilty about deleting things or moving them within Notion, which is strictly a personal feeling, and not a design intention by the team behind the product (it might be, but I really don’t think it is.)
|
||||
|
||||
## Returning To Bear
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ author: Thomas Wilson
|
|||
|
||||
This is the content of the blog post.
|
||||
|
||||
<h2 id="known-id">This is a heading</h2>
|
||||
|
||||
This is a [link](http://www.bbc.co.uk).
|
||||
|
||||
- This is a list item
|
||||
|
|
@ -86,6 +88,7 @@ describe('BlogPost', () => {
|
|||
expect(html).toStrictEqual(
|
||||
[
|
||||
`<p>This is the content of the blog post.</p>`,
|
||||
`\<h2 id="known-id">This is a heading</h2>`,
|
||||
`<p>This is a <a href="http://www.bbc.co.uk">link</a>.</p>`,
|
||||
`<ul>`,
|
||||
`<li>This is a list item</li>`,
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ export class BlogPost {
|
|||
.use(markdown)
|
||||
.use(markdownFrontmatter)
|
||||
.use(remarkStringify)
|
||||
.use(remarkRehype)
|
||||
.use(rehypeStringify);
|
||||
.use(remarkRehype, { allowDangerousHtml: true })
|
||||
.use(rehypeStringify, { allowDangerousHtml: true });
|
||||
}
|
||||
|
||||
private markdownToExcerptProcessorFactory(): Processor {
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
// requires some Markdown parsing that I've not done yet.
|
||||
// I'd love to get tis to be `true`
|
||||
// 2023-02-06 Wilson
|
||||
export const prerender = false;
|
||||
export const prerender = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue