Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit b666dff

Browse files
committed
Order the blog post and frontmatter points next to each other
1 parent 7de3490 commit b666dff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ Just add a Markdown file under `md/blog/` to create a new blog post:
115115
2. Add in some basic Markdown content
116116
3. Then go to `http://localhost:3000/blog/foo`. You should see the new post.
117117

118-
## Google Analytics
119-
120-
Just add your Google Analytics ID (e.g. 'UA-999999999-1') to `globals.ts` and Devii will automatically add the appropriate Google Analytics snippet to your site. Go to `/pages/_app.ts` to see how this works or customize this behavior.
121-
122118
## Frontmatter support
123119

124120
Every Markdown file can include a "frontmatter block" containing various metadata. Devii provides a `loadPost` utility that loads a Markdown file, parses it's frontmatter metadata, and returns a structured `PostData` object:
@@ -159,6 +155,10 @@ thumbnailPhoto: /brook.jpg
159155

160156
View `/loader.ts` to see how this works.
161157

158+
## Google Analytics
159+
160+
Just add your Google Analytics ID (e.g. 'UA-999999999-1') to `globals.ts` and Devii will automatically add the appropriate Google Analytics snippet to your site. Go to `/pages/_app.ts` to see how this works or customize this behavior.
161+
162162
## Medium-inspired design
163163

164164
The Markdown renderer (`Markdown.tsx`) provides a default style inspired by Medium. Just modify the CSS in `Markdown.tsx` to customize the design to your liking.

0 commit comments

Comments
 (0)