1774201228-elettrona-poliversity-it-reply
Support for About Me and custom nav links
@elettrona@poliversity.it @fabio@manganiello.eu I've had a bit of time today to put together a new #madblog version π
About Me
Now you can just drop an ABOUT.md in your pages directory. If you provide the right metadata in the #markdown header you also get a nicely rendered semantic h-card as a bonus.
An example from the header of my site's about page (trim the initial spaces, otherwise Madblog interprets these as true headers and messes up this post):
[//]: # (title: My Name)
[//]: # (name: My Name)
[//]: # (given-name: My)
[//]: # (family-name: Name)
[//]: # (url: https://example.com)
[//]: # (photo: https://example.com/photo.jpg)
[//]: # (email: me@example.com)
[//]: # (job-title: Cat herder)
[//]: # (org: My Company|https://example.com, My Side Project|https://another-example.com)
[//]: # (note: Some brief description)
[//]: # (key: https://pgp.example.com/key.txt|FINGERPRINT)
[//]: # (links: @me@example.social|https://example.social/@me, Github|https://github.com/me, LinkedIn|https://www.linkedin.com/in/me/, XMPP|xmpp://me@example.com, Matrix|https://matrix.to/#/@me:example.com)
External Links
You can add them now to your config.yaml.
# Mastodon-double linking purposes, but
# they are not rendered on the HTML
rel_me:
- https://example.social/@me
- https://goto.social/@name
# External links are automatically rendered
# on the about page
external_links:
- url: https://example.social/@me
display_name: Mastodon
# nav_links are automatically rendered
# on the navigation panel
nav_links:
- url: https://example.social/@me
display_name: Mastodon
icon: https://example.social/favicon.ico
Also remember to specify enable_activitypub: true (and also link, or federation may break) if you want to make the blog handle discoverable on Mastodon:
# link is required for Webmentions and ActivityPub
link: https://madblog.plusbrothers.net/
enable_activitypub: true
# Only set these two if you want to use a different
# domain (e.g. plusbrothers.net) for your federated
# handles (e.g. @elena@plusbrothers.net). Otherwise
# it'll be @elena@madblog.plusbrothers.net
activitypub_link: https://plusbrothers.net
activitypub_domain: plusbrothers.net
# The username to expose to ActivityPub - in this configuration's case
# your user will be @elena@plusbrothers.net
activitypub_username: elena
# Additional profile fields that you want to add to your ActivityPub profile
# when visited on Mastodon (supports verification)
activitypub_profile_fields:
"Powered by Madblog": https://git.fabiomanganiello.com/madblog
"Main Profile": '<a href="https://mastodon.social/@me" rel="me">@me@mastodon.social</a>'
Reactions
How to interact with this page
Webmentions
To interact via Webmentions, send an activity that references this URL from a platform that supports Webmentions, such as Lemmy, WordPress with Webmention plugins, or any IndieWeb-compatible site.
ActivityPub
- Follow @fabio@manganiello.blog on your ActivityPub platform (e.g. Mastodon, Misskey, Pleroma, Lemmy).
- Mention @fabio@manganiello.blog in a post to feature on the Guestbook.
- Search for this URL on your instance to find and interact with the post.
- Like, boost, quote, or reply to the post to feature your activity here.
@fabio I'll look at it; what I'm wondering is how to create the so-called header and footer links which appear on every page. Where you put your project/company/blog's mission explanation, the "support us" links, contacts, and (in case of writers) license, as creative commons and so on.
I also noticed an accessibility issue both in cards and lists mode: post titles aren't semantically marked with h2 headings.
I'd expect main blog's title with h1, then every title in the blog posts list is an h2. See the example in WordPress blogs
@fabio is there a complete documentation of all configuration variables? In the config yaml example I didn't find the nav_links variable.
And about pages: if I want to link to a specific blog's article? I was wondering how it works. If I want to place the guestbook page into the nav bar, should I link the whole http URL or just /guestbook?
Then - on WriteFreely, if I publish a post and pin it, it goes to header's links. As it should. But every markdown post I upload on madblog, gets into the Rss I think, like normal posts, even if it's not a post but a "static" page
@fabio This platform seems very interesting. It has a bigger learning curve than WordPress but, as far as I understood, I have no longer to worry about themes and stuff - except for the logo if needed, maybe I should set dimension manually (no idea of how sighted folks need it to be!)