dblog blog generator, that generates blog from Markdown and JSON file. dblog handles technical parts, so you can focus on hard part writing.
Repository
Current version released
4 years ago
Dependencies
deno.land/x
jspm.dev
front-matter@4.0.2markdown-it@13.0.1markdown-it-abbr@1.0.4markdown-it-deflist@2.1.0markdown-it-footnote@3.0.3markdown-it-header-sections@1.0.0markdown-it-image-figures@2.1.0markdown-it-ins-del@0.1.1markdown-it-kbd@2.2.2markdown-it-mark@3.0.1markdown-it-small@1.0.0markdown-it-sub@1.0.0markdown-it-sup@1.0.0markdown-it-task-lists@2.1.1markdown-it-underline@1.0.1
skypack.dev
markdown-it-anchor@v8.6.4markdown-it-highlightjs@4.0.1markdown-it-multimd-table@4.2.0
dblog
dblog blog generator, that generates blog from Markdown and JSON file. dblog handles technical parts, so you can focus on hard part writing.
Features
- Easy to:
- Setup
- Configure
- Write
- Supports:
- Tags
- Canonical
- Open Graph
- Analytics
- Auto generate:
- RSS Feed
- Github Pages Actions file
- Favicon
- Sitemap
- 404 page
- CSS
mainfest.jsonfile
- No Client side JavaScript
- Minified HTML & Inline CSS
- Lightweight
Getting Started
- Download deno from https://deno.land/ and install it.
- After installing deno run following commands.
# See all the options that are available
deno run --allow-write --allow-read --allow-net --allow-run https://deno.land/x/dblog/mod.js --help
# Setup the your blog (Skip this if already your blog setup)
deno run --allow-write --allow-read --allow-net --allow-run https://deno.land/x/dblog/mod.js --setup
# Make your blog and Run on localhost
deno run --allow-write --allow-read --allow-net --allow-run https://deno.land/x/dblog/mod.jsLive Demo & Folder
Configuration
Place config.json in root folder to edit default configuration. The config.json is optional.
The config.json with default configuration:
{
"name": "dblog",
"start_url": "https://AnzenKodo.github.io/dblog/",
"description": "dblog blog generator, that generates blog from Markdown and JSON file. dblog handles technical parts, so you can focus on hard part writing.",
"email": "",
"author": "AnzenKodo",
"posts": "./posts",
"output": "./site",
"favicon": "favicon.svg",
"lang": "en-US",
"port": 8000,
"background": "#ffffff",
"foreground": "#000000",
"theme": "#01a252",
"footer": "<p>Made by <a href=\"https://AnzenKodo.github.io/AnzenKodo\">AnzenKodo</a> under <a href=\"https://anzenkodo.github.io/dblog/LICENSE\">MIT</a></p>\n",
"page404": "<p>404 Page Not Found, Sorry :(</p>\n",
"backup": false,
"exclude": [
"config.json",
"backup.json"
],
"nav": {},
"head": ""
}Note: Every option is optional.
- name - Name of your blog.
- start_url - Start url of your site. Example: βhttps://example.com/β, βhttps://blog.example.com/β, βhttps://example.com/blog/β
- email - Your email address. This will enable βReply with Emailβ button in posts.
- author - Your name or username.
- posts - Path of posts.
- output - Folder where your blog build will be placed. Example: β./blogβ, β../site/blogβ, βsite/blogβ.
- favicon - Favicon location. If empty generated favicon will be used. Example: β./favicon.pngβ, β./static/favicon.iconβ, β../favicon.jpgβ.
- lang - You blog language in βRFC 5646β format. Example: βjaβ for Japanese, βsvβ for Swedish, βitβ for Italian. See List of common primary language subtags in Wikipedia
- footer - Footer of your website. Supports Commonmark Markdown format. Example:
Made by [AnzenKodo](https://anzenkodo.github.io/AnzenKodo) uder [MIT License](https://github.com/dblog/LICENSE.html). - port - Port of your blog on localhost. Example: β8080β, β8300β, β8400β.
- background - Background color in light mode. Becomes foreground color in light mode. Example: β#000000β, β#ffffffβ, β##FEFBFEβ.
- foreground - Foreground color in light mode. Becomes background color in light mode. Example: β#000000β, β#ffffffβ, β##FEFBFEβ.
- theme - Blog theme color. Example: β#0583f2β, β#f20544β, β#f2b705β.
- page404 - 404 page message. Supports Commonmark Markdown format. Example: βSorry page not found :(β.
- backup - Backup file location. Example:
falseto donβt generatbackup.jsonfile, β./backup.jsonβ, β./site/backup.jsonβ, β../backup.jsonβ. - exclude - Exclude file or folder. Example:
"exclude": [ ".env", "todo.md", "drafts" ],
- nav - Nav bar item list. Example:
"nav": { "about": "./about.md", "stie": "https://anzenkodo.github.io/AnzenKodo" }
- head - If you analytics or any other tags you want to put on head tag. Example:
<link rel="preconnect" href="//www.google-analytics.com" crossorigin="">.
Cli Options
dblog blog generator, that generates blog from Markdown and JSON file. dblog handles technical parts, so you can focus on hard part writing.
Website: https://anzenkodo.github.io/dblog
Repo: https://github.com/AnzenKodo/dblog
USAGE:
deno run --allow-write --allow-read --allow-net --allow-run https://deno.land/x/dblog/mod.js [OPTIONS]
OPTIONS:
If no options are given the localhost will run normally.
--noopen Don't open browser, when starting localhost.
--help Print help information.
--build Build blog without starting localhost.
--setup Setup new blog.
--backup Restore blog if 'backup.json' file available.
--readme Generate dblog 'README.md' file.
File Options
---
title: If empty the file name will be used
description: If empty the first paragraph will be used.
tags: [ "tag1", "tag2" ]
date: 20/08/2020
canonical:
---- date - If empty the file date will be used. Note: The file
datemight not always right. So always give you own date. - canonical - Share content between multiple sites without impacting SEO. Just put canonical URL. Know more about canonical url.
If file name start with underscore β_β it will be consider as draft.
Example: posts/_This is draf.md
Markdown Guide
Commonmark Syntex
Heading
# H1
## H2
### H3
#### H4
##### H5
###### H6H1
H2
H3
H4
H5
H6
Inline style
**Bold** *Italic* ~~Strikethrough~~Bold Italic Strikethrough
Link and Image
[dblog website](https://anzenkodo.github.io/dblog)
Blockquote
> 'The road to hell is paved with good intentions' by Abbot BernardβThe road to hell is paved with good intentionsβ by Abbot Bernard
List
* List
* List
* List
1. One
2. Two
3. Three- List
- List
- List
- One
- Two
- Three
Horizontal rule
---Code block
`Inline code` with backticks
```js
console.log("Code Blog in JavaScript");
```
Inline code with backticks
console.log("Code Blog in JavaScript");Additional Markdown syntax
Checkbox
- [ ] Checkbox
- [x] Checkbox with tick- Checkbox
- Checkbox with tick
Image with caption

Footer
Here is a footnote reference[^1].
[^1]: Here is the footnote.Here is a footnote reference[^1]. [^1]: Here is the footnote.
Additional inline syntax
~sub~
^sup^
==mark==
[[kbd]]
_underline_
++insert++
~~delete~~sub
sup
mark
kbd
underline
insert
delete
Description list
: Definition 1
Term 2 with *inline markup*
: Definition 2
Third paragraph of definition 2.- Definition 1
- Term 2 with inline.
- Definition 2
- Third paragraph of definition 2.
Abbreviation
*[abbr]: Abbreviationabbr
Table
Normal
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text || Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Multiline
| Markdown | Rendered HTML |
|--------------|---------------|
| *Italic* | *Italic* | \
| | |
| - Item 1 | - Item 1 | \
| - Item 2 | - Item 2 |
| ```python | ```python \
| .1 + .2 | .1 + .2 | ``` | ``` || Markdown | Rendered HTML |
|---|---|
| Italic |
|
|
| |
Rowspan
Stage | Direct Products | ATP Yields
----: | --------------: | ---------:
Glycolysis | 2 ATP ||
^^ | 2 NADH | 3--5 ATP |
Pyruvaye oxidation | 2 NADH | 5 ATP |
Citric acid cycle | 2 ATP ||
^^ | 6 NADH | 15 ATP |
^^ | 2 FADH2 | 3 ATP |
**30--32** ATP |||
[Net ATP yields per hexose]| Stage | Direct Products | ATP Yields |
|---|---|---|
| Glycolysis | 2 ATP | |
| 2 NADH | 3β5 ATP | |
| Pyruvaye oxidation | 2 NADH | 5 ATP |
| Citric acid cycle | 2 ATP | |
| 6 NADH | 15 ATP | |
| 2 FADH2 | 3 ATP | |
| 30β32 ATP | ||
Headerless
|--|--|--|--|--|--|--|--|
|β| |β|β|β|β|β|β|
| |β|β|β| |β|β|β|
|β| |β| | | | | |
| |β| | |β| | | |
| | | | |β| | | |
| | | | | |β| | |
|β|β|β|β| |β|β|β|
|β|β|β|β|β| | |β|| β | β | β | β | β | β | β | |
| β | β | β | β | β | β | ||
| β | β | ||||||
| β | β | ||||||
| β | |||||||
| β | |||||||
| β | β | β | β | β | β | β | |
| β | β | β | β | β | β |
