Stella, an easy using and beautiful blog based on Gatsby
Welcome to Stella !! 🎉
Stella has three parts, Passages, Snippets, and About.
- Passages: To place all your passages.
- Snippets: To place something short and simple such as code snippets. (emm... Snippets just like Twitter tweets)
- About: To place your self-introduction.
- Install Gatsby cli
# npm
npm install -g gatsby-cli
# yarn
yarn global dd gatsby-cli
- Create your site
gatsby new blog https://github.com/jctaoo/stella.git
- Place your content in
./blog/content
and modify the field namedsiteMetadata
in./blog/gatsby-config.ts
. (For all configure options check Configure Options. Also check Gatsby Config API)
If you don't want to install Gatsby cli globally, just clone this repository to install. (first and second steps below)
Stella use yaml Markdown mate data, view in HelloWorld.md
Stella supports following meta data fields
-
category: (string optional)
-
tags: (string[] optional)
-
title: (string required)
-
identifier: (string optional) The unique id of passage.
-
topImage: (string optional) The path of large image. The image will show on the top of passage.
-
topImageAlt: (string optional) The alt value of topImage.
-
circleImage: (string optional) The path of circle image. The circle image will show beside title. It's useful when you want to show avatar.
-
abbr: (string optional): The short version of the passage, Stella will display it in the thumbnail passage view, if the value is not provided, Stella will automatically intercept it.
-
updateDates: (string[] optional) Format with 'YYYY-M-D', and in descending order of time.
- Only support one Code Block, and the Code Block must be at the top of markdown (not including yml metadata).
- Markdown in Content will be ignored.
- place a '+' behind your code line indicates the line is newly added.
- place a '-' behind your code line indicates the line will be removed.
Following code
// adding codes
+console.log("🍔");
// removing codes
-console.log("💩");
Unfortunately, there isn't a good way to debug with the code-less installation way now.
In the first way to install, you can use the following steps:
- Run
yarn start
ornpm run start
to view your site. - If you want to modify your content, just stop the above command and restart it. (Hot reload comming soon...)
See Gatsby Deploying and Hosting
0BSD License
Copyright (c) 2021 jctaoo
LICENSE file