A plugin for Micro.blog that is effectively a glorified wrapper for an invocation of plugin-lightbox's gallery
partial, introduced by optional title and description elements and promoted to its own standalone page. The code for this plugin lives here
{{ with .Scratch.Get "plugin-banner.Parameters" }} .{{ .Style.ClassName }} { background-color: {{ .Style.Color }}; height: {{ .Style.Height }}; width: {{ .Style.Width }}; background-position: {{ .Style.Position }}; background-repeat: {{ .Style.Repeat }}; background-size: {{ .Style.Size }}; position: relative; {{ $URLs := .Banners.URLs }} {{ range $id, $index := .Banners.IndexByID }} &#{{ $id }} { background-image: url({{ index $URLs $index }}); } {{ end }} } {{ end }}
plugin-social-media-links (a README Experience)
A Micro.blog plugin for injecting your social media account links into the page
<head>
with a partial suitable for profile display. It's code lives here.plugin-cards (a README Experience)
plugin-cards is a Micro.blog plugin for generating link preview cards on various platforms (including your blog) as well as generating structured data for search engine consumption. Its code lives here.
plugin-cards (a README Experience)
plugin-cards is a Micro.blog plugin for generating link preview cards on various platforms (including your blog) as well as generating structured data for search engine consumption. Its code lives here.
plugin-programmable-search-engine (a README Experience)
A plugin for Micro.blog for adding a site search interface using Google’s programmable search engine API. It’s code lives here
plugin-lightbox (a README Experience)
A plugin for Micro.blog for presenting a slide carousel containing images and/or videos. Its code lives here.
{{< gallery gallery="Murphy" fit="cover" row-height="150px" gap="10px" grid-width=3 >}}
{{< gallery gallery="Murphy" fit="contain" row-height="150px" gap="10px" grid-width=3 >}}
{{< gallery gallery="Murphy" row-height="100px" grid-width=3 >}}
{{< gallery gallery="Murphy" row-height="100px" row-count=2 >}}
{{< gallery Murphy >}}
plugin-category-cloud (A README Experience)
A plugin for Micro.blog that creates a page displaying links to your categories layed out as a category cloud. Its code lives here.
https://moondeer.blog/2021/09/07/on-the-american.html plugin-cards (A README Experience)
plugin-cards is a Micro.blog plugin for generating link preview cards on various platforms (including your blog) as well as generating structured data for search engine consumption. Its code lives here.
Sooo … since I figured out how to create my own Chroma style to use with Hugo 0.91's automagical syntax highlighting for fenced (and labeled) code, I've totally dropped plugin-prism. Other than my moondeer theme, the only other survivor is the shortcode for tricking Hugo into rendering its own code as example code rather than attempting to invoke it.
The example output below tricks Hugo into not tagging the
+++
lines that fence the front matter for a Markdown Hugo content file with the.err
class and into actual printing the shortcode in the content block below the front matter.+++ title = "Bookshelf" description = "Book collections" type = "bookshelf" +++ {{< plugin-bookshelves >}}
To get this example to render in this little post looks something like:
{{< preserve "+++" >}} title = "Bookshelf" description = "Book collections" type = "bookshelf" {{< preserve "+++" >}} {{< preserve "{{< plugin-bookshelves >}}" >}}
So what complex logic must one stick into the code for
layouts/shortcodes/preserve.html
to get this all to work? All you need is this :{{ .Get 0 }}
Side note: more trickery may actually be necessary for this shortcode to work outside of a code fence. Totally didn't work when I tried to render that list bit as inline code.
plugin-bookshelves (a README Experience)
A plugin for Micro.blog that creates a page displaying multiple bookshelves. Its code lives here.
Walking Through
plugin-cards
Y’all asked for it … now you’re getting it. Here comes a walkthrough (aimed mostly at folks that haven’t spent the last six months as a part-time reverse engineer figuring out how Micro.blog-flavored Hugo works under the hood) of my Micro.blog plugin for generating preview cards, creatively named plugin-cards.
{ "@context": "https://schema.org", "@type": "BlogPosting", "author": { "@type": "Person", "name": "Jason Cardwell", "url": "https://moondeer.blog/about/" }, "datePublished": "2021-10-17T12:25:00-08:00", "description": "An idea under construction", "headline": "On What is Missing", "image": [ "https://moondeer.blog/uploads/2021/782087f3c2.jpg" ], "wordcount": 602 }
{ "@context": "https://schema.org", "@type": "BlogPosting", "author": { "@type": "Person", "name": "Jason Cardwell", "url": "https://moondeer.blog/about/" }, "datePublished": "2021-10-17T12:25:00-08:00", "description": "An idea under construction", "headline": "On What is Missing", "image": [ "https://moondeer.blog/uploads/2021/782087f3c2.jpg" ], "wordcount": 602 }
row-count=1:
positional parameter: