Today we describe how this website is created and updated. We use a Hexo framework hosted on Github.
Hexo
Hexo is our blogging framework.
Setup
Themes
Markdown image support
Folder structure
1 | ├── _drafts |
Github
Github stores our site’s code and hosts the statically generated website.
Actions
Example
This automatically builds Hexo site from [main] branch and publishes to [gh-pages] brach.
The secret [secrets.GITHUB_TOKEN] is provided by default to the all running jobs.
1 | name: Pages |
Pages
- Pages docs
- Configure to watch branch [gh-pages] root [/root] folder.
- Setup a custom domain and SSL
Diagrams.net
Used to create diagrams.
Create new diagram
- Download desktop client from diagrams.net
- New diagram
- Navigate to post folder [source/_posts/how-its-made]
- Name [example.drawio]
Export as SVG
- File, Export as, SVG
- Navigate to post folder [source/_posts/how-its-made]
- Name [example.drawio.svg]
Markdown
Formatting syntax for blog posts.
Example header structure
This section controls how the page is rendered and various metadata.
1 | --- |
Example of body structure
Use <!-- more -->
to generate cleaner excerpts on homepage.
1 | Description of today's post |
Example image code
1 |  |
Results in :