Developed and tested on Publii 0.47.x (minimum 0.46.0).
- Clone:
git clone https://github.com/InPoint-Automation/HreflangAutoLinker.git - Install the plugin via Publii: Tools -> Plugins -> Install plugin, and select the packaged ZIP (see the Package section below).
- Enable the plugin in Publii (site scope), set the standard settings (site language, partner site directory, partner base URL), open the mapping UI, pair content, then render the site and inspect the output HTML.
Publii requires the files inside an HreflangAutoLinker/ subfolder within the ZIP.
On Linux you can run a single command to make a clean .zip
ln -s . HreflangAutoLinker && zip -r HreflangAutoLinker.zip HreflangAutoLinker/plugin.json HreflangAutoLinker/main.js HreflangAutoLinker/thumbnail.svg HreflangAutoLinker/options "HreflangAutoLinker/Third Party Licenses" HreflangAutoLinker/README.md HreflangAutoLinker/LICENSE; rm HreflangAutoLinker
Otherwise, you can just directly zip up the whole HreflangAutoLinker directory. You may consider to remove the screenshot, etc first.