A Micro.blog plugin that adds the capability to create a custom glossary for use in posts
This plugin is built for Micro.blog by @AndySylvester (also at Andy Sylvester's Web)
The plugin is avaialble in the Micro.blog Plug-in directory. Log into your Micro.blog account, go to the "Plug-ins" section and click "Find Plug-ins". Install "Glossary".
Once installed, you should see a new Menu entry for "Glossary".
The plugin provides two features for users. The first feature is a JSON data file for users to add their glossary entries. This file is a set of key/value entries. where the first item (the key) is the item you include in your post. The second item (the value) is the text that is substituted during the Micro.blog publish process. The second feature is a Hugo shortcode which is used to access the JSON data file. You can use {{< glossary key >}} in your posts, where "key" is one of the glossary entries.
First, log into Micro.blog, then click on the Plugins link in the left navigation menu:
Next, click on the "Find Plugins" button:
Next, click on the Install button for the Glossary plugin:
Next, click on the Settings button for the Glossary plugin from your list of plugins:
A new text field will appear:
Paste in a JSON object like at https://github.com/andysylvester/plugin-glossary/blob/main/data/glossaryData.json
Add new entries or edit old entries by clicking in the text window, then start typing/editing. Make sure that you have double-quotes around each item, and to add a comma at the end if you add the item in the middle of the JSON object.
I added a new thing called "newItem"
Click "Update Settings" button to save your changes. The browser will return to the Plugins page.
Create a post and include one of the glossary items in the post using the glossary shortcode. The general form of the shortcode is {{ glossary newItem }}, where newItem is an entry in the glossary. This post shows several shortcode examples:
Publish the post, then check it on your Micro.blog site. The Preview button will not show the inserted glossary entry.
Have fun!
- None at this time, but let me know if you have ideas!
Version 1.1.0: Released March 18, 2023
- Working version of plugin using JSON field definition to allow user to add/change glossary entries
Version 1.0.1: Released March 13, 2023
- Addition of JSON field definition to plugin.json, update to version number
Version 1.0: Released March 8, 2023
- Initial version of plugin







