From 2d38fb79e407f9ed91d9dc0d7d43d592478c6a4e Mon Sep 17 00:00:00 2001 From: Daniel Possenriede Date: Mon, 19 Dec 2022 19:34:34 +0100 Subject: [PATCH 1/3] add `rel` link attribute to pandoc templates --- inst/pandoc_templates/jolla-blue.html | 2 +- inst/pandoc_templates/jolla.html | 2 +- inst/pandoc_templates/onofre.html | 2 +- inst/pandoc_templates/solana.html | 2 +- inst/pandoc_templates/trestles.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inst/pandoc_templates/jolla-blue.html b/inst/pandoc_templates/jolla-blue.html index 5ef6fc5..bf9863f 100644 --- a/inst/pandoc_templates/jolla-blue.html +++ b/inst/pandoc_templates/jolla-blue.html @@ -70,7 +70,7 @@

$title$

$for(links)$ - + diff --git a/inst/pandoc_templates/jolla.html b/inst/pandoc_templates/jolla.html index 0a019a8..03b8c39 100644 --- a/inst/pandoc_templates/jolla.html +++ b/inst/pandoc_templates/jolla.html @@ -67,7 +67,7 @@

$title$

$for(links)$ - + diff --git a/inst/pandoc_templates/onofre.html b/inst/pandoc_templates/onofre.html index a0f38ff..2e582e5 100644 --- a/inst/pandoc_templates/onofre.html +++ b/inst/pandoc_templates/onofre.html @@ -92,7 +92,7 @@

$title$

$for(links)$ - + diff --git a/inst/pandoc_templates/solana.html b/inst/pandoc_templates/solana.html index 1cc575f..f3e46bf 100644 --- a/inst/pandoc_templates/solana.html +++ b/inst/pandoc_templates/solana.html @@ -91,7 +91,7 @@

$title$

$for(links)$ - + diff --git a/inst/pandoc_templates/trestles.html b/inst/pandoc_templates/trestles.html index 1441802..ad6cab5 100644 --- a/inst/pandoc_templates/trestles.html +++ b/inst/pandoc_templates/trestles.html @@ -85,7 +85,7 @@

$title$

$for(links)$ - + From 933ea981d4da747dc1a63e82ae7a227642e79036 Mon Sep 17 00:00:00 2001 From: Daniel Possenriede Date: Mon, 19 Dec 2022 19:35:41 +0100 Subject: [PATCH 2/3] use Mastodon links with `rel` attribute instead of Twitter --- README.md | 25 +++++++++++-------- .../jolla-blue/skeleton/skeleton.Rmd | 5 ++-- .../templates/jolla/skeleton/skeleton.Rmd | 5 ++-- .../templates/onofre/skeleton/skeleton.Rmd | 5 ++-- .../templates/solana/skeleton/skeleton.Rmd | 5 ++-- .../templates/trestles/skeleton/skeleton.Rmd | 5 ++-- 6 files changed, 30 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 7281c52..e333595 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 --- diff --git a/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd index 81a0fed..eb65fdf 100644 --- a/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd @@ -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 diff --git a/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd index 032b787..dd34ba5 100644 --- a/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd @@ -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 diff --git a/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd index fa41e71..a6a04e2 100644 --- a/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd @@ -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: diff --git a/inst/rmarkdown/templates/solana/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/solana/skeleton/skeleton.Rmd index 58a8f7f..6ede314 100644 --- a/inst/rmarkdown/templates/solana/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/solana/skeleton/skeleton.Rmd @@ -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 --- diff --git a/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd index 0e3793c..8605727 100644 --- a/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd @@ -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 From 50c56c7e74a736b74fdc6dc7becc2795633817cc Mon Sep 17 00:00:00 2001 From: Daniel Possenriede Date: Tue, 20 Dec 2022 21:07:05 +0100 Subject: [PATCH 3/3] add `rel` attribute to the other links as well --- inst/pandoc_templates/jolla-blue.html | 2 +- inst/pandoc_templates/jolla.html | 2 +- inst/pandoc_templates/onofre.html | 2 +- inst/pandoc_templates/solana.html | 2 +- inst/pandoc_templates/trestles.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inst/pandoc_templates/jolla-blue.html b/inst/pandoc_templates/jolla-blue.html index bf9863f..6b0d89f 100644 --- a/inst/pandoc_templates/jolla-blue.html +++ b/inst/pandoc_templates/jolla-blue.html @@ -55,7 +55,7 @@

$title$