rels
This commit is contained in:
parent
5750307f59
commit
6ab7fc8c27
10
links.yaml
10
links.yaml
@ -59,6 +59,9 @@ links:
|
|||||||
|
|
||||||
- title: Gaming
|
- title: Gaming
|
||||||
links:
|
links:
|
||||||
|
- text: Board Game Geek
|
||||||
|
icon: fa-solid fa-dice
|
||||||
|
href: https://boardgamegeek.com/user/tyrelsouza
|
||||||
- text: Steam
|
- text: Steam
|
||||||
icon: fa fa-steam-square
|
icon: fa fa-steam-square
|
||||||
href: https://steamcommunity.com/id/tyrels
|
href: https://steamcommunity.com/id/tyrels
|
||||||
@ -75,9 +78,10 @@ links:
|
|||||||
- text: Bluesky
|
- text: Bluesky
|
||||||
icon: fa-solid fa-cloud
|
icon: fa-solid fa-cloud
|
||||||
href: https://bsky.app/profile/tyrel.dev
|
href: https://bsky.app/profile/tyrel.dev
|
||||||
- text: Fediverse
|
- text: Mastodon
|
||||||
icon: fa fa-pleroma
|
rels: me
|
||||||
href: https://social.tyrel.dev/tyrel
|
icon: fa fa-mastodon
|
||||||
|
href: https://mastodon.social/@tyrel
|
||||||
- text: Facebook
|
- text: Facebook
|
||||||
icon: fa-brands fa-facebook
|
icon: fa-brands fa-facebook
|
||||||
href: https://www.facebook.com/tyrel.souza
|
href: https://www.facebook.com/tyrel.souza
|
||||||
|
@ -34,4 +34,5 @@ pub struct Link {
|
|||||||
icon: String,
|
icon: String,
|
||||||
href: Option<String>,
|
href: Option<String>,
|
||||||
copy: Option<String>,
|
copy: Option<String>,
|
||||||
|
rels: Option<String>,
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,6 @@ fn write_file(html: String) {
|
|||||||
copy_recursively("./static", "./output").expect("Could not copy static directory");
|
copy_recursively("./static", "./output").expect("Could not copy static directory");
|
||||||
}
|
}
|
||||||
fs::write("./output/index.html", html).expect("Could not write to index.html");
|
fs::write("./output/index.html", html).expect("Could not write to index.html");
|
||||||
println!("Yaml parsed, Template rendered, and all living in ./output/")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<div class="links">
|
<div class="links">
|
||||||
{% for link in section.links %}
|
{% for link in section.links %}
|
||||||
{% if link.href and link.copy %}
|
{% if link.href and link.copy %}
|
||||||
<a class="link" href="{{link.href}}" target="_blank">
|
<a class="link" {% if link.rels %}rel="{{link.rels}}"{% endif %} href="{{link.href}}" target="_blank">
|
||||||
<i class="{{link.icon}}"></i> {{link.text}}
|
<i class="{{link.icon}}"></i> {{link.text}}
|
||||||
<div class="tooltip">
|
<div class="tooltip">
|
||||||
<span class="" href="#" onclick="copytext('{{link.copy}}','{{loop.index}}')" onmouseout="outFunc('{{loop.index}}')">
|
<span class="" href="#" onclick="copytext('{{link.copy}}','{{loop.index}}')" onmouseout="outFunc('{{loop.index}}')">
|
||||||
@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{% elif link.href %}
|
{% elif link.href %}
|
||||||
<a class="link" href="{{link.href}}" target="_blank">
|
<a class="link" {% if link.rels %}rel="{{link.rels}}"{% endif %} href="{{link.href}}" target="_blank">
|
||||||
<i class="{{link.icon}}"></i> {{link.text}}
|
<i class="{{link.icon}}"></i> {{link.text}}
|
||||||
</a>
|
</a>
|
||||||
{% elif link.copy %}
|
{% elif link.copy %}
|
||||||
|
Loading…
Reference in New Issue
Block a user