Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arran4/blog

Github pages blog
https://github.com/arran4/blog

blog hugo

Last synced: about 1 month ago
JSON representation

Github pages blog

Awesome Lists containing this project

README

        

# blog

I guess always under development.

Found at:

https://arran4.github.io/blog/

## Random notes / snippets

### Create a new post
```bash
read -p "Post Title? " PostTitle && hugo new -k post "post/$(date +%Y)/$(printf "%03d" $(($(find content/post/$(date +%Y) -mindepth 1 -maxdepth 1 -type d | wc -l )+1)))-$PostTitle"
```

```zsh
echo "Post Title? " && read PostTitle && hugo new -k post "post/$(date +%Y)/$(printf "%03d" $(($(find content/post/$(date +%Y) -mindepth 1 -maxdepth 1 -type d | wc -l )+1)))-$PostTitle"
```

### Date in right format
```bash
date --rfc-3339=sec
```