-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from mcruzdev/alias-blog
Add aliases blog post
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,11 @@ ia3andy: | |
emailhash: "444d54a22db43a0a622180b1ca11dedb" | ||
job_title: Principal Software Engineer | ||
twitter: "ia3andy" | ||
bio: "I am happy to wake up every day and make the Java world a better place with Quarkus. I am mostly a backend developer but I am not that bad at doing web apps either in my spare time, in fact, you can be the judge of that since Roq is my baby :-)" | ||
bio: "I am happy to wake up every day and make the Java world a better place with Quarkus. I am mostly a backend developer but I am not that bad at doing web apps either in my spare time, in fact, you can be the judge of that since Roq is my baby :-)" | ||
mcruzdev: | ||
name: "Matheus Cruz" | ||
email: "[email protected]" | ||
emailhash: "30e8dc8556f1557346b2ef93daac4b9c" | ||
job_title: Senior Software Engineer | ||
twitter: "mcruzdev" | ||
bio: "I am a passionate learner, open-source enthusiast, and Java developer with a drive for continuous improvement. When I’m not coding, you can find me on the Brazilian Jiu Jitsu mats, playing the guitar, or exploring new challenges. I believe in the power of community, collaboration, and creativity—both in and outside of tech." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
layout: post | ||
title: The second Roq plugin is for making your life better! | ||
img: https://images.unsplash.com/photo-1691210781188-b8c69945e620?q=80&w=1899&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D | ||
description: We introduced a way to use a alias for redirecting you to your blog post! | ||
author: mcruzdev | ||
tags: plugin, frontmatter, guide, cool-stuff, short-url | ||
aliases: [aliases-very-cool, aliases-4-ever, aliases-again] | ||
--- | ||
|
||
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. | ||
|
||
- [aliases-very-cool](/aliases-very-cool) | ||
- [aliases-4-ever](/aliases-4-ever) | ||
- [aliases-again](/aliases-again) | ||
|
||
> 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: | ||
|
||
```xml | ||
<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: | ||
|
||
```markdown | ||
... | ||
aliases: [aliases-very-cool, aliases-4-ever, aliases-again] | ||
... | ||
``` | ||
|
||
For more info [check out the doc](https://docs.quarkiverse.io/quarkus-roq/dev/quarkus-roq-plugins.html#_roq_plugin_aliases). |