Skip to content

Commit fe510b0

Browse files
committed
docs: update README with more details
1 parent 86ef373 commit fe510b0

File tree

3 files changed

+56
-23
lines changed

3 files changed

+56
-23
lines changed

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3-
## [Unreleased]
3+
## 0.3.0 (2021-03-08)
44

5-
## [0.2.0] (2019-08-03)
5+
#### Changed
6+
- Upgrade to Water.css 2 with dark theme support
7+
- Upgrade to Go modules
8+
9+
## 0.2.0 (2019-08-03)
610

711
### Added
812
- CSS styles via Water.css
@@ -14,15 +18,11 @@
1418
### Fixed
1519
- Posts on archive page are sorted by date, newest on top
1620

17-
## [0.1.0] (2019-07-21)
21+
## 0.1.0 (2019-07-21)
1822

1923
### Added
2024
- Create a new blog with the `blognow [name]` command
2125
- Build a static site with `blognow`
2226
- Blog title and tagline
2327
- Single post page
2428
- Archive page to view all posts
25-
26-
[Unreleased]: https://github.com/johnjago/blognow/compare/0.2.0...HEAD
27-
[0.2.0]: https://github.com/johnjago/blognow/releases/tag/0.2.0
28-
[0.1.0]: https://github.com/johnjago/blognow/releases/tag/0.1.0

README.md

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,57 @@
11
# Blognow ![Build status](https://travis-ci.org/johnjago/blognow.svg?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/johnjago/blognow)](https://goreportcard.com/report/github.com/johnjago/blognow)
22

3-
Blognow is a static site generator for blogs. There is no configuration,
4-
confusing theme files, or complex hierarchies of pages and posts. It uses an
5-
opinionated design that is optimized for reading, with particular attention
6-
to typography.
3+
Blognow is a static site generator for blogs.
74

8-
The screenshots below do not reflect the final design. As of now, it's more
9-
of a placeholder.
5+
There is no configuration, confusing theme files, or complex hierarchies of
6+
pages and posts. It uses an opinionated, straightforward design courtesy of
7+
[Water.css](https://github.com/kognise/water.css).
108

11-
Blognow is in **alpha** and should not be used in production. It's changing a
12-
lot right now as I work to design a great workflow for writing and publishing
13-
to a static site.
9+
## Build
1410

15-
## Proposed usage
11+
To build the binary, run
12+
13+
```sh
14+
go build .
15+
```
16+
17+
You should then have the binary `blognow` in the same directory as the project.
18+
The path to the binary can then be added to the PATH for easy usage no matter
19+
where you are.
20+
21+
## Usage
1622

1723
`blognow my-blog` creates a new blog in the directory my-blog.
1824

25+
You'll see a few directories inside:
26+
27+
- **posts** is where you write posts as .md files
28+
- **templates** are the HTML templates (you shouldn't need to modify anything here)
29+
- **config.toml** is a configuration file, ready to go. It really is no configuration,
30+
but you may want to change the name of the blog.
31+
32+
### config.toml
33+
34+
A default config file is automatically created when you make a new blog.
35+
36+
```
37+
baseURL = "https://example.org/"
38+
title = "My Blog"
39+
tagline = "Don't sail too close to the wind"
40+
dateFormat = "2 January 2006"
41+
```
42+
43+
There is no configuration apart from the four lines you see here.
44+
45+
### Generating the blog
46+
1947
`blognow` generates a static site in dist/. You can copy these files to any
2048
place where you can host static websites. It looks in the posts/ directory
2149
and formats any correctly structured .md file as HTML.
2250

2351
It creates an index page (the latest post), individual post pages, and an
2452
archive page.
2553

26-
The format for a post is:
54+
### Post format
2755

2856
```
2957
---
@@ -59,10 +87,17 @@ $ http-server dist/
5987

6088
![](img/archive-page.png)
6189

90+
### Dark theme
91+
92+
If the computer is set to use a dark theme, a dark theme will automatically
93+
be applied.
94+
95+
![](img/dark.png)
96+
6297
## Contribute
6398

64-
Blognow is currently under development and is not stable. If you would like to
65-
report an issue or suggest a feature, check out the GitHub issues.
99+
Blognow is currently under development. If you would like to report an issue or
100+
suggest a feature, please do so!
66101

67102
Pull requests are welcome!
68103

blognow.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/*
2-
This is the CLI for Blognow.
3-
*/
1+
// blognow is a CLI application for generating static blogs.
42
package main
53

64
import (

0 commit comments

Comments
 (0)