You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 months ago | |
---|---|---|
content | 5 months ago | |
data | 5 years ago | |
layouts | 5 months ago | |
static | 4 months ago | |
themes | 4 months ago | |
.gitignore | 8 months ago | |
.gitmodules | 7 months ago | |
README.md | 4 months ago | |
config.toml | 7 months ago |
README.md
This repository contain my homepage schiessle.org.
On first checkout
After first checkout you have to fetch the submodule with the theme:
git submodule update --init
How to build it
- cd ~/Repos/schiessle.org
- rm -rf public
- hugo
- rsync -hrvz --delete --exclude=_ public/ schiesbn@schiessle.org:/home/schiesbn/html/
Usually I put this in a bash alias:
alias deploy-homepage="cd ~/Repos/build.schiessle.org; git pull; rm -rf public; hugo; rsync -hrvz --delete --exclude=_ public/ schiesbn@schiessle.org:/home/schiesbn/html/; cd -"
Note: I always build the web page in a separate checkout (in this example ~/Repos/build.schiessle.org
) to avoid to put stuff online which was not yet committed.
Integration my latest Mastodon posts to the index.html
This is done by a PHP script in the back-end. In order to make it work you have to perform following steps:
- copy
static/mastodon.feed/config.feed.php
to/home/schiesbn/mastodon.feed/config.feed.php
. (This path is hard coded at the moment, if you want to use a different path you have to change therequire_once '/home/schiesbn/mastodon.feed/config.feed.php';
statement at the top ofstatic/mastodon.feed/getmastodonfeed.php
) - update the config file with the data and your Mastodon account(s)
The token can be generated in the developer section of your mastodon account settings. It is a bit harder to find your account ID. One way to find it is with following command:
curl 'https://mastodon.schiessle.org/api/v2/search?q=bjoern&resolve=true&limit=5' -H 'Authorization: Bearer <your-access-token>