diff --git a/README.md b/README.md index f8f4518..f917af9 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ Simple and stylish text-to-html microblog generator. ## Requirements - python3 dateutil toml make curl pycurl urllib + python3 dateutil toml curl pycurl make urllib -* `dateutil`, `toml` are Python modules. +* `dateutil`, `toml`, `pycurl` are Python modules. * `make` (optional), method for invoking the script. -* `curl`, `pycurl` and `urllib` (optional), for uploading multiple files to neocities (`neouploader.py`). +* `urllib` (optional), for uploading multiple files to neocities (`neouploader.py`). ### Usage diff --git a/example/Makefile b/example/Makefile index f25dbc5..8a91908 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,22 +1,23 @@ -all: template.tpl content.txt timeline.css +all: demo tpl css settings python microblog.py ./template.tpl ./content.txt > result.html -# for people who don't want to read the README -# and want to hit `make` to see how things work. -template.tpl: +tpl: cp ./example/default.tpl ./template.tpl -timeline.css: +css: cp ./example/timeline.css ./timeline.css -content.txt: +demo: cp ./example/demo.txt ./content.txt +settings: + cp ./example/settings.toml ./settings.toml + .PHONY: clean clean: rm ./pages/*.html rm ./tags/*/*.html - rm lastfullpage.txt - rmdir ./pages ./tags/* ./tags + rm ./webring/*.html + rmdir ./pages ./tags/* ./tags ./webring diff --git a/example/settings.toml b/example/settings.toml index 3b0ba1d..2e2c77f 100644 --- a/example/settings.toml +++ b/example/settings.toml @@ -1,4 +1,5 @@ -latestpage="result.html" +# latestpage="result.html" +latestpages=["meta.json", "result.html"] [page] postsperpage = 20 @@ -28,3 +29,37 @@ interact = "https://yoursite.tld/cgi?postid=" [post.gallery] path_to_thumb="./thumbs" path_to_fullsize="./images" + +[webring] +enabled=false +file_output="meta.json" + +[webring.profile] +username="Your name here" +url="https://yourdomain.tld/microblog/" +avatar="https://yourdomain.tld/microblog/images/avatar.jpg" +short-bio= "Your self-description. Anything longer than 150 characters is truncated." + +[webring.following] +list= ["https://likho.neocities.org/microblog/meta.json"] +format=""" +
{__shortbio__}
+