Skip to content

Instantly share code, notes, and snippets.

@DrI-T
Last active April 16, 2021 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrI-T/3399f0f2e896bde40573e2d4106e6303 to your computer and use it in GitHub Desktop.
Save DrI-T/3399f0f2e896bde40573e2d4106e6303 to your computer and use it in GitHub Desktop.
jarrod's boilerplate

Get a simple boiler-plate for your static website

This intention here is to get a minimal jekyll template that let you start for creating a new site, without the need of doing everything from scratch again and again.

usage:

mkdir mynewsite.io
cd mynewsite.io
curl -sL https://gist.githubusercontent.com/DrI-T/3399f0f2e896bde40573e2d4106e6303/raw/boil.sh boil.sh | sh -
echo voilà

this file can be viewd on gist.io and on github

#
# intent: get a minimal jekyll folder for a new site
#
#
# usage:
# ```sh
# mkdir mynewsite.io
# cd mynewsite.io
# curl -sL https://gist.githubusercontent.com/DrI-T/3399f0f2e896bde40573e2d4106e6303/raw/boil.sh boil.sh | sh -
# echo voilà
# ```
symb=boilerplate
#key=$(ipfs key list -l --ipns-base b58mh | grep -w $symb | cut -d' ' -f1)
key=QmPREVeLrrbzMCn6S19cr1UrEzTsJtfU3YMm5mcJBRYDFb
qm=$(ipfs name resolve $key | sed -e 's,/ipfs/,,')
echo url: http://127.0.0.1:8080/ipfs/$qm
ipfs get -o . /ipfs/$qm
host=${PWD##*/}
symb=${host%.*}
cat > _config.yml <<EOF
--- # jekyll config file for $host
url: https://www.$host
sitename: $symb
netname: acme
badgeid: 1234
excludes:
- /*.sh
- .gitignore
- /*~1
EOF
exit $?
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment