Currently the site is available here.
-
Install dependencies
yarn
-
Run development server
yarn start
-
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
-
Bash
- Use
bash
orbash-output
. - This will lead to a special code-block design.
- Use
-
Title
Set a file title with
js:title=server.js
. -
Line highlighting
- Use
js {3}
orjs {3-5}
to highlight one or several lines - Use
js {3-4,6}
to highlight different areas where empty lines are in-between. Note that there is no space after the comma!
- Use
Each article contains the following meta data at the top:
---
title: <string> The blog title
date: <string> Date at which writing of this article began, e.g. '1999-01-01'
datePublished: <string> Date at which article got published
author: <string>
description: <string> Used as preview text in list
category: <string> See available categories in `src/constants/Category.js`
tags: <Array<string>> See available tags in `src/constants/Tag.js`
draft: <boolean> Whether to display in `blog` page in __DEV__ mode
ready: <boolean> Release candidate - article ready to be released
published: <boolean> Whether article got published
---
Collect files which could be relatively easily be edited to become a good quality blog article
- Javascript Custom Error and Exception
- As copy-paste-notes: Docker Basic Example
-
Add RSS feed. See https://www.gatsbyjs.com/plugins/gatsby-plugin-feed/
-
Consolidate style
- Move styles to Chakra UI theme and define all styles there!
-
blockquote
style fromnode_modules/typography-theme-fairy-gates/dist/index.js
- Replace all
main ...
global styles
-
- Move styles to Chakra UI theme and define all styles there!
-
Copy button in code box
-
Special tags: how-to, starter - in different colors
-
This is similar to what I imagine for explain-programming: https://www.taniarascia.com/
- Copy the good parts, e.g. how she uses tags (should link to filtered page!)
- Her use of nice icons next to article
- Her GitHub: https://github.com/taniarascia/taniarascia.com
- Different bash layout
-
Search
- Look at https://github.com/greglobinski/gatsby-starter-hero-blog for an example
- See https://www.gatsbyjs.org/docs/adding-search/
- Search for name + description
- Search which includes every word in every page
-
Host on my programming url
-
Javascript: Write out examples instead of using screenshots
-
Check ALL files - whether draft or not and decide whether it looks good to be published!
-
Styles: Switch to styled-components
-
Check out gatsby example site
-
Design
- Make a point cloud
- Set up relations between categories and tags
- Make code block wide to cover entire page! -> Made it a bit wider and I like it more now.
- Create new cards [make it more square] to display each article in the overview list
- Make a point cloud
-
Comments
- Add comment section (include Discord?)
-
CMS
- Think about adding https://forestry.io/
- See whether https://tinacms.org/ makes sense to add an edit mode (Alternative is just editing via GitHub directly)
-
Add google analytics
-
Add impressum and privacy policy pages
-
Add footer with page link to impressum and privacy policy pages
-
Trace back creation dates of original commands files and add in
date
field. -
Restyle inline code block
-
Categories
-
Clickable tags
- Filter by tags
- Filter by category
-
Logo
- Design Logo
- Add logo in README, to title, as
static/favicon.ico
-
Rewrite bash fields where necessary (to show prompt)
-
Javascript: Include other command files
-
Remove description from preview
-
Think of how to use mdx See https://www.gatsbyjs.org/packages/gatsby-plugin-mdx/#installation
-
Draft option See https://github.com/wonism/gatsby-advanced-blog