seankross / postcards

💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Other
541 stars 87 forks source link

add rel link attribute #63

Open dpprdan opened 1 year ago

dpprdan commented 1 year ago

This PR adds a rel attribute to links. For example, rel="me" is used by Mastodon for link verification.

I changed the Twitter links to Mastodon for illustration (it also shows how to add the Mastodon user name with @, cf. #57).

See it in action on my site (mastodon, source).

I noticed that there are two div blocks for the links in the pandoc templates. For example in the jolla template here:

https://github.com/seankross/postcards/blob/8f92e4ddc048ca02786f997814abe85fc953f5be/inst/pandoc_templates/jolla.html#L50-L64

and here

https://github.com/seankross/postcards/blob/8f92e4ddc048ca02786f997814abe85fc953f5be/inst/pandoc_templates/jolla.html#L66-L77

Is it necessary to have both and if yes, what for?