diff --git a/example/settings.toml b/example/settings.toml index 3b0ba1d..31c8daf 100644 --- a/example/settings.toml +++ b/example/settings.toml @@ -28,3 +28,31 @@ interact = "https://yoursite.tld/cgi?postid=" [post.gallery] path_to_thumb="./thumbs" path_to_fullsize="./images" + +[webring] +enabled=true +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] +following= ["https://likho.neocities.org/microblog/meta.json"] +format=""" +
+
+ Avatar + + +
Last Update: {__lastupdated__}
+ Posts: {__post_count__} +
+

{__shortbio__}

+
+
+""" diff --git a/example/timeline.css b/example/timeline.css index 139ca73..7ed9ab6 100644 --- a/example/timeline.css +++ b/example/timeline.css @@ -31,28 +31,28 @@ color: green; font-weight: bold; } -.profile { - vertical-align: middle; - padding-left: 10px; - border:1px solid blue; -} .avatar { vertical-align: middle; width: 50px; height: 50px; } -.handle{ +.column .profile { + vertical-align: middle; + padding-left: 10px; + padding:1%; +} +.column .profile .handle{ font-size: 1.1em; font-weight: bold; } -.email{ - text-align:left; +.column .profile .email{ font-size: 0.8em; + text-align:left; text-decoration:none; } -.bio { - vertical-align: middle; +.column .profile .bio { font-size: 0.9em; + vertical-align: middle; margin: 1em } .gallery { @@ -73,6 +73,28 @@ border: 1px solid #777; filter: invert(100%); } +.postcell .avatar { + margin-left:3%; + margin-top:2%; + height: 4em; + width:auto; + vertical-align:top; +} +.postcell .wrapper { + margin-top:2%; + display: inline-block; +} +.postcell .wrapper .last-updated, +.postcell .wrapper .post-count { + font-size: 1em; + color:grey; +} +.postcell .short-bio{ + padding-left: 3%; + padding-right: 2%; + font-style: italic; + word-wrap: break-word; +} /* Clear floats after the columns */ .row:after { content: ""; diff --git a/microblog.py b/microblog.py index a48e56e..b049c07 100644 --- a/microblog.py +++ b/microblog.py @@ -450,12 +450,12 @@ if __name__ == "__main__": tpl, tagline, tc, cfg["page"], \ subdir="tags/%s" % key[1:] \ ) - if "syndication" in cfg: - if cfg["syndication"]["enabled"] == True: + if "webring" in cfg: + if cfg["webring"]["enabled"] == True: export_profile( - len(p), p[0].get_epoch_time(), cfg["syndication"] ) - if "following" in cfg["syndication"]: - fellows = fn1(cfg["syndication"]["following"] ) + len(p), p[0].get_epoch_time(), cfg["webring"] ) + if "following" in cfg["webring"]: + fellows = fn1(cfg["webring"]["following"] ) updated += writepage( tpl, fellows, tc, cfg["page"], subdir="placeholder" ) with open("updatedfiles.txt", 'w') as f: