The second batch of WordPress add-ons rebuilt as packs, templates and styles only:
- docs: a documentation section with a sidebar, part pages and previous/next, in the order data/docs-nav.yaml gives (the layout behind hotdogcms.org/docs, without its search script).
- downloads: files to download, with their type and size read from the file at build time.
- menu-and-prices: a price list in groups (a menu, services) and plans side by side.
- portfolio: a work collection with a cover, details and pictures per project, a list page and a section.
- share-links: plain links to Mastodon, Bluesky, LinkedIn and email share pages; nothing loads from those sites until someone chooses one.
Also a fileSize template function ("1.2 MB" for a file in static/, "" if it isn't there). The bundled-packs test covers all ten.
18 lines
626 B
YAML
18 lines
626 B
YAML
name: share-links
|
|
version: 1.0.0
|
|
title: Share links
|
|
description: Plain links for sharing a page on Mastodon, Bluesky, LinkedIn or by email. No buttons from other sites, no tracking, no script.
|
|
license: MIT
|
|
author: Coffey Labs LLC
|
|
notes: |
|
|
Show them at the end of every article by adding this line to
|
|
layouts/article.html, after {{ .Content }}:
|
|
|
|
{{ template "share-links" . }}
|
|
|
|
or put the "Share links" section on any page.
|
|
|
|
Mastodon has no single address, so the link goes to the server set in
|
|
site.yaml (params: { share_mastodon: mastodon.social }), where people
|
|
on other servers can still use the share box.
|