The second Roq plugin is for redirecting your page to a better place!
2024, Oct 09
roq-plugins (5 Parts Series)
- 1 The first Roq plugin is for tagging (with pagination)
- 2 The second Roq plugin is for redirecting your page to a better place!
- 3 Write your blog posts in AsciiDoc
- 4 Need a QR Code?
- 5 Do you want to publish a blog post series ?
In the last post, we saw how easy it is to use Quarkus for static site generator (@ia3andy's was right!). I am excited to share that we now have a new plugin that allows you to set up redirects for your blog posts! For this post, I've created three aliases.
If you click on at least one alias, you will be redirected here again!
And how did I work my magic to set this up?
Step 1: Add the aliases plugin in your dependencies file:
<dependency>
<groupId>io.quarkiverse.roq</groupId>
<artifactId>quarkus-roq-plugin-aliases</artifactId>
<version>...</version>
</dependency>
Step 2: Add a new entry aliases: [name-of-aliases-here]
in your FM data.
In this blog post I used the following FM:
...
aliases: [aliases-very-cool, aliases-4-ever, aliases-again]
...
For more info check out the doc.