Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rel link attribute #63

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ image: "tobi.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand All @@ -102,8 +103,9 @@ image: "xiang.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand All @@ -129,8 +131,9 @@ image: "frank.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand Down Expand Up @@ -181,8 +184,9 @@ links:
url: "https://youtube.com/"
- label: Vimeo
url: "https://vimeo.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: Email
url: "mailto:email@email.com"
output:
Expand Down Expand Up @@ -211,8 +215,9 @@ links:
url: "https://medium.com/"
- label: SoundCloud
url: "https://soundcloud.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
output:
postcards::solana
---
Expand Down
4 changes: 2 additions & 2 deletions inst/pandoc_templates/jolla-blue.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1>$title$</h1>
<ul class="list-inline">
$for(links)$
<li class="list-inline-item">
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="btn btn-outline-light mb-2">
$links.label$
</button>
Expand All @@ -70,7 +70,7 @@ <h1>$title$</h1>
<div class="col-8 m-1 text-center d-block d-sm-none">
<div class="list-group">
$for(links)$
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="list-group-item list-group-item-action my-1 rounded" style="background-color: #3A66B7;color: #FEFEFA;border-color: #FEFEFA;">
$links.label$
</button>
Expand Down
4 changes: 2 additions & 2 deletions inst/pandoc_templates/jolla.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1>$title$</h1>
<ul class="list-inline">
$for(links)$
<li class="list-inline-item">
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="btn btn-outline-dark mb-2">
$links.label$
</button>
Expand All @@ -67,7 +67,7 @@ <h1>$title$</h1>
<div class="col-8 m-1 text-center d-block d-sm-none">
<div class="list-group">
$for(links)$
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="list-group-item list-group-item-action my-1 rounded">
$links.label$
</button>
Expand Down
4 changes: 2 additions & 2 deletions inst/pandoc_templates/onofre.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>$title$</h1>
<ul class="list-inline">
$for(links)$
<li class="list-inline-item">
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="btn btn-outline-light mb-2">
$links.label$
</button>
Expand Down Expand Up @@ -92,7 +92,7 @@ <h1>$title$</h1>
<div class="col-8 p-1 text-center">
<div class="list-group">
$for(links)$
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="list-group-item list-group-item-action my-1 rounded" style="background-color: Transparent; color:white; border-color: white;">
$links.label$
</button>
Expand Down
4 changes: 2 additions & 2 deletions inst/pandoc_templates/solana.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>$title$</h1>
<ul class="list-inline">
$for(links)$
<li class="list-inline-item">
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="btn btn-outline-dark mb-2">
$links.label$
</button>
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1>$title$</h1>
<div class="col-8 p-1 text-center">
<div class="list-group">
$for(links)$
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="list-group-item list-group-item-action my-1 rounded" style="background-color: #f5e9dd; color: black;border-color: black;">
$links.label$
</button>
Expand Down
4 changes: 2 additions & 2 deletions inst/pandoc_templates/trestles.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>$title$</h1>
<ul class="list-inline">
$for(links)$
<li class="list-inline-item">
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="btn btn-outline-dark mb-2">
$links.label$
</button>
Expand Down Expand Up @@ -85,7 +85,7 @@ <h1>$title$</h1>
<div class="col-8 p-1 text-center">
<div class="list-group">
$for(links)$
<a href=$links.url$>
<a href=$links.url$ $if(links.rel)$ rel=$links.rel$ $endif$>
<button type="button" class="list-group-item list-group-item-action my-1 rounded">
$links.label$
</button>
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ image: "xiang.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ image: "tobi.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ links:
url: "https://youtube.com/"
- label: Vimeo
url: "https://vimeo.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: Email
url: "mailto:email@email.com"
output:
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/solana/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ links:
url: "https://medium.com/"
- label: SoundCloud
url: "https://soundcloud.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
output:
postcards::solana
---
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ image: "frank.jpg"
links:
- label: LinkedIn
url: "https://linkedin.com/"
- label: Twitter
url: "https://twitter.com/"
- label: Mastodon
rel: me
url: "https://example.social/\\@username"
- label: GitHub
url: "https://github.com/"
- label: Email
Expand Down