|
1 | 1 | # Blognow  [](https://goreportcard.com/report/github.com/johnjago/blognow)
|
2 | 2 |
|
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. |
7 | 4 |
|
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). |
10 | 8 |
|
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 |
14 | 10 |
|
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 |
16 | 22 |
|
17 | 23 | `blognow my-blog` creates a new blog in the directory my-blog.
|
18 | 24 |
|
| 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 | + |
19 | 47 | `blognow` generates a static site in dist/. You can copy these files to any
|
20 | 48 | place where you can host static websites. It looks in the posts/ directory
|
21 | 49 | and formats any correctly structured .md file as HTML.
|
22 | 50 |
|
23 | 51 | It creates an index page (the latest post), individual post pages, and an
|
24 | 52 | archive page.
|
25 | 53 |
|
26 |
| -The format for a post is: |
| 54 | +### Post format |
27 | 55 |
|
28 | 56 | ```
|
29 | 57 | ---
|
@@ -59,10 +87,17 @@ $ http-server dist/
|
59 | 87 |
|
60 | 88 | 
|
61 | 89 |
|
| 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 | + |
| 96 | + |
62 | 97 | ## Contribute
|
63 | 98 |
|
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! |
66 | 101 |
|
67 | 102 | Pull requests are welcome!
|
68 | 103 |
|
|
0 commit comments