Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taoso/makedown
Makefile for Markdown Blogging
https://github.com/taoso/makedown
bash lua makefile markdown pandoc pandoc-filter pandoc-markdown static-site-generator
Last synced: 9 days ago
JSON representation
Makefile for Markdown Blogging
- Host: GitHub
- URL: https://github.com/taoso/makedown
- Owner: taoso
- License: mit
- Created: 2023-05-30T07:14:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-30T09:31:36.000Z (over 1 year ago)
- Last Synced: 2024-11-11T08:39:02.312Z (2 months ago)
- Topics: bash, lua, makefile, markdown, pandoc, pandoc-filter, pandoc-markdown, static-site-generator
- Language: Smarty
- Homepage: https://taoshu.in/unix/makefile-based-blogging.html
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Makedown - Makefile based Markdown Blogging
Markdown is a simple blogging toolchain based on makefile.
## Quick Start
You only need to install the make, bash and pandoc.
Then clone this repository.
```bash
git clone https://github.com/taoso/makedown.git
```With makedown, you can create a new blog. You need to offer the blog dir.
```bash
make -f path/to/makedown/Makefile new dir=hello
```After this, you can build html for markdown file.
```bash
cd hello
make -f path/to/makedown/Makefile build
``````bash
python3 -m http.server
```Finally, open http://localhost:8000 to see the generated website.
## Customization
Let's `$root` represent the directory of blog.
You need to custom some site data in the `$root/env` file:
```bash
site_title=makedown
site_url=https://example.com
author_name=Bob
[email protected]
```While most of this info are mainly used for generating Atom feed, the `$site_title`
will also be used for generating index.html for all directories.The template file `$root/article.tpl` is used for generating html for markdown.
And the template file `$root/index.tpl` is used for generating all index.html[s].Both two files are the standard pandoc template.
While the index.html generated for the top root directory will contain links for
all markdown's html files, the index.html in one sub-directory only contains the
html in this directory.