diff --git a/README.md b/README.md index ae9d496..a84035e 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,23 @@ in New York City. "ГУМ" is their latest project which examines the rise of consumerism in post-Soviet republics. ``` +## Meta tags + +Each of the templates has an optional meta section. If you include it, the values +will be used to create social cards, like for twitter. + +``` +meta: + description: "floatplane data artist" + url: "yoursite.com" + twitter: "yourname" +``` +These tags assume that `@yourname` is your twitter handle. Do not include the "@" because it confuses pandoc. +The code also assumes that your image is going to be at the first level of your site, like: `yoursite.com/herzl.jpg`. + +Check your card with the twitter card validator. + + ## Troubleshooting Most issues that people have using this package are related their installation diff --git a/inst/pandoc_templates/jolla-blue.html b/inst/pandoc_templates/jolla-blue.html index dfe90a1..4558800 100644 --- a/inst/pandoc_templates/jolla-blue.html +++ b/inst/pandoc_templates/jolla-blue.html @@ -12,6 +12,23 @@ $title$ + + $if(meta)$ + + + + + + + + + + + $if(twitter)$ + + + $endif$ + $endif$ $if(favicon)$ diff --git a/inst/pandoc_templates/jolla.html b/inst/pandoc_templates/jolla.html index 52f3852..a8ca481 100644 --- a/inst/pandoc_templates/jolla.html +++ b/inst/pandoc_templates/jolla.html @@ -9,6 +9,23 @@ $title$ + + $if(meta)$ + + + + + + + + + + + $if(twitter)$ + + + $endif$ + $endif$ $if(favicon)$ diff --git a/inst/pandoc_templates/onofre.html b/inst/pandoc_templates/onofre.html index fd5e4d8..0b47884 100644 --- a/inst/pandoc_templates/onofre.html +++ b/inst/pandoc_templates/onofre.html @@ -19,6 +19,23 @@ $title$ + + $if(meta)$ + + + + + + + + + + + $if(twitter)$ + + + $endif$ + $endif$ $if(favicon)$ diff --git a/inst/pandoc_templates/trestles.html b/inst/pandoc_templates/trestles.html index 49da886..cc79f75 100644 --- a/inst/pandoc_templates/trestles.html +++ b/inst/pandoc_templates/trestles.html @@ -12,6 +12,23 @@ $title$ + + $if(meta)$ + + + + + + + + + + + $if(twitter)$ + + + $endif$ + $endif$ $if(favicon)$ diff --git a/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd index 81a0fed..01e061f 100644 --- a/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/jolla-blue/skeleton/skeleton.Rmd @@ -10,6 +10,10 @@ links: url: "https://github.com/" - label: Email url: "mailto:email@email.com" +meta: + description: "floatplane data artist" + url: "yoursite.com" + twitter: "yourname" output: postcards::jolla_blue --- diff --git a/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd index 032b787..9ab9ef9 100644 --- a/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/jolla/skeleton/skeleton.Rmd @@ -10,6 +10,10 @@ links: url: "https://github.com/" - label: Email url: "mailto:email@email.com" +meta: + description: "floatplane data artist" + url: "yoursite.com" + twitter: "yourname" output: postcards::jolla --- diff --git a/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd index fa41e71..31f0e3f 100644 --- a/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/onofre/skeleton/skeleton.Rmd @@ -13,6 +13,10 @@ links: url: "https://twitter.com/" - label: Email url: "mailto:email@email.com" +meta: + description: "floatplane data artist" + url: "yoursite.com" + twitter: "yourname" output: postcards::onofre --- diff --git a/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd index 0e3793c..d1abc36 100644 --- a/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/trestles/skeleton/skeleton.Rmd @@ -10,6 +10,10 @@ links: url: "https://github.com/" - label: Email url: "mailto:email@email.com" +meta: + description: "floatplane data artist" + url: "yoursite.com" + twitter: "yourname" output: postcards::trestles ---