"Likes" is a tag-driven static website generator for creating list website of stuff you like.
Live example can be found: granitosaurus.rocks/likes
Click "Use This Template" button on github repository.
Then clone the repository and install dependencies
$ git clone https://github.com/YOU/likes
$ cd likes
$ poetry install --no-root
$ poetry shell
Done! You can test it via:
$ invoke livereload
go to http://localhost:8000
For detailed usage see official Pelican documentation but as quick overview:
-
Create your entries as markdown files in
content/
directory following this template:# e.g. this would be /content/snakes.md Title: Snakes Date: 2020-02-01 Tags: pet,animal,nature Summary: Short summary of the subject Thumb: snake.jpg # taken from /content/img directory long blog body that can include anything you want as long as it's markdown or html.
You can use
invoke new <title> <tags> <summary>
command shortcut. -
Preview it in your browser:
$ invoke livereload
go to http://localhost:8000
-
publish the site on github:
invoke github
-
Enable github pages option in your repository under
repository->settings->options->github pages
(selectmaster
branch) and go to http://your_username.github.io/likes
see me
branch for real live example.