updated name of config table from syndication to webring
This commit is contained in:
parent
427d4ff972
commit
9905a15ace
@ -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="""
|
||||
<div class="fill">
|
||||
<div class="postcell">
|
||||
<img src="{__avatar__}" alt="Avatar" class="avatar">
|
||||
<span class="wrapper"">
|
||||
<div class="handle">
|
||||
<a href="{__url__}">{__handle__}</a>
|
||||
</div>
|
||||
<div class="last-updated">Last Update: {__lastupdated__}</div>
|
||||
<span class="post-count">Posts: {__post_count__}</span>
|
||||
</span>
|
||||
<p class="short-bio">{__shortbio__}</p>
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
|
@ -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: "";
|
||||
|
10
microblog.py
10
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user