Location: ./scripts/new_post.sh
https://github.com/thraddash/thraddash.github.io/blob/master/scripts/new_post.sh
Execute the script ./new_post.sh
Example: /posts/2021-07-17-first-post.md
Screenshot:
=====> Generate A New Blog POST:
=====> Current date will be appended to the front of file
=====> Any spaces in the title will be converted into dashes
=====> Example: 2021-07-17-first-post.md
=====> Control-C anytime to quit
Enter a blog title:
=====> you didn't enter anything... aborting
$
<img src="/path/to/image.png" align="left" width="200px"/>
To break img alignment use <br clear="left">
Linking svg icons using relative path on github.com/github.io
![some txt](./icons/resume.svg>
<img src="./icons/resume.svg">
use: raw to prevent XSS attack
<img src="https://raw.githubusercontent.com/thraddash/thraddash.github.io/master/icons/resume.svg">
$0 name of the bash script
$@ expands into a list of seperated parameter. $@ is equivalent to "$1" "$2"
$* is one parameter consisting of all the parameter added together
Additional info:
bash shell special parameters