Skip to content

Garik-/blog-generator

Repository files navigation

blog-generator

I'm making a personal medium-style website for myself, which I want to publish on github pages
I didn't like gatsby because it generates too much garbage, so I wrote my own generator.

mem

MD file format

post-title.md

---
tags:
  - architecture
  - golang
---

![[post_image.png]]

post description

post content

![[post_content_image.png]]

![[post_content_image2.png]]
with caption

Any yaml code can be placed between special characters at the beginning of the file. It will be deserialized as post attributes.
You can use any markup in the github format.

The publication date of the article is taken from the file information, you can change the file date using the command

$ touch -t 202111042100 post-title.md

[[CC]YY]MMDDhhmm[.SS] where 202111042100 = Nov 4, 2021 21:00

Usage

$ ln -s obsidian-public data
$ ln -s obsidian-images images
$ npm install
$ npm start
$ npm run publish

TODO

  • article page
  • tags page
  • support images
  • sass support
  • compress css
  • responsive images
  • compress html
  • availability
  • open graph
  • json+ld
  • sitemap.xml
  • site web manifest
  • code highlight
  • reading time algorithm
  • pinned stories
  • styled cache problem

About

obsidian + express + wget -r = static site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published