updating example config
Peter Molnar hello@petermolnar.eu
Fri, 27 Oct 2017 10:44:01 +0100
2 files changed,
66 insertions(+),
52 deletions(-)
M
config.ini.dist
→
config.ini.dist
@@ -1,68 +1,82 @@
[common] -base = ~/your_base_directory -domain = your.domain.com -; thiss should be in the base directory speficied above -watermark = watermark_file.png -; size of the default image show, get one from the list in [downsize] -fallbackimg = 720 -; items per page, also applies to RSS feed -pagination = 8 - -[source] -; directories for various content; all within "base" from "common" -content = content +base = ~/ +domain = domain.com +build = ~/public files = files -templates = templates -tags = tag -photos = photos -offlinecopies = offlinecopies -; static is a folder where the contents will be copied to the destination -static = copy -[target] -; directories for various targets; all within "base" from "common" -; these are created automatically -build = build +[dirs] +content = ${common:base}/content +tmpl = ${common:base}/nasg/templates +files = ${common:base}/${common:files} +static = ${common:base}/static +var = ${common:base}/var +archive = ${common:base}/archive + +[archive] +favorite = ${dirs:archive}/favorite + +[photo] +regex = your_regex_artist +watermark = ${dirs:tmpl}/watermark.png +default = 720 + +[downsize] +;90 = s +;360 = m +720 = z +1920 = b + +[crop] +;90 = true [var] -; directories for various targets; all within "build" from "target" -; these are created automatically -searchdb = s +searchdb = ${dirs:var}/s.sqlite +webmentiondb = ${dirs:var}/webmention.sqlite +redirects = ${dirs:var}/redirects.tsv +gone = ${dirs:var}/gone.tsv +tokendb = ${dirs:var}/tokens.json +cache = ${dirs:var}/cache [site] -charset = UTF-8 -title = additional title text | ${common:domain} +title = Yet another static site url = https://${common:domain} -default_lang = en -domains = ${common:domain} extra.domain +lang = en +domains = ${common:domain} +websuburl = https://example.superfeedr.com/ + +[display] +pagination = 12 + +[licence] +default = by-nc-nd [author] -; author details for h-card name = Your Name -email = your@email.address +email = your_email url = ${site:url} -; you may want to put this into the "static" dir from "source" -avatar = name_of_avatar_file.jpg -; GPG long key -gpg = XXXX XXX XXXX XXXX +avatar = ${site:url}/avatar.jpg +gpg = GPG long key +donateurl = https://paypal.me/yourname/3GBP +appendwith = socials [socials] -; list of social network name = social network account -flickr = https://www.flickr.com/people/yourhandle -github = https://github.com/yourhandle -; feel free to add more +flickr = https://www.flickr.com/people/your_flickr_handle +github = https://github.com/your_github_handle -[photo] -; regex to be matched in EXIF data against EXIF:Author -regex = "this should be a tricky regex to match your usual author line in EXIF" +[api_flickr] +api_key = api_key +api_secret = api_secret +username = username + +[api_500px] +api_key = api_key +api_secret = api_secret -[downsize] -; size = suffix -90 = s -360 = m -720 = z -1280 = b +[api_tumblr] +api_key = api_key +api_secret = api_secret -[crop] -; size = crop to square boolean, defaults to False -90 = true +[api_deviantart] +api_key = api_key +api_secret = api_secret +username = username