Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericyd/blog
My blog
https://github.com/ericyd/blog
Last synced: about 2 months ago
JSON representation
My blog
- Host: GitHub
- URL: https://github.com/ericyd/blog
- Owner: ericyd
- License: unlicense
- Created: 2023-03-19T18:45:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T14:09:27.000Z (about 2 months ago)
- Last Synced: 2024-11-21T15:22:36.749Z (about 2 months ago)
- Language: HTML
- Homepage: https://blog.ericyd.com
- Size: 416 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blog
Web log --> weblog --> blog
## Setup
```shell
cp .env.sample .env # and then populate
npm i # for publishing to cloudflare pages
brew install hugo # for building site
```## Building
```shell
hugo
```or for development
```shell
hugo server
```## Publishing
```shell
npm run login # only required once in a while
npm run publish
```This will
1. "build" (i.e. copy public files into /build directory)
2. publish to Cloudflare pages## New post
```
hugo new my-new-post.md
```Interestingly, the `.md` is _critical_ in this command. Without it, Hugo won't know which archetype to use.
### New micro post
To use the "micro" blog template ("archetype" in Hugo parlance), include "micro/" in the path:
```
hugo new micro/my-micro-post.md
```