fix orcid id issue in extra author option.
fix font issue in betterport.
add emphasis class option to betterport.
diff --git a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
index 52980da..d3f02cf 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
@@ -334,7 +334,7 @@
$for(author)$
$if(author.main)$
$else$
-$author.name$<sup>$author.affil$$if(author.orcid)$, <a class="orcid" src="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup>
+$author.name$<sup>$author.affil$$if(author.orcid)$, <a class="orcid" href="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup>
$endif$
$sep$ $endfor$
</h5>
diff --git a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
index 89887c1..b24e66e 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
@@ -36,7 +36,7 @@
Google fonts api stuff
-->
<link href='https://fonts.googleapis.com/css?family=$if(main_fontfamily)$$main_fontfamily$$else$Special Elite$endif$' rel='stylesheet'>
-<link href='https://fonts.googleapis.com/css?family=$if(main_fontfamily)$$main_fontfamily$$else$Rasa$endif$' rel='stylesheet'>
+<link href='https://fonts.googleapis.com/css?family=$if(font_family)$$font_family$$else$Rasa$endif$' rel='stylesheet'>
<!--
Here are the required style attributes for css to make this poster work :)
@@ -120,7 +120,7 @@
padding-right: 5mm;
}
.caption {
-font-size: $if(caption_textzie)$$caption_textsize$$else$20pt$endif$;
+font-size: $if(caption_textsize)$$caption_textsize$$else$20pt$endif$;
font-style: italic;
padding-top: 0;
}
@@ -155,7 +155,7 @@
-moz-column-rule-color: black;
column-rule-color: black;
background-color: $if(body_bgcol)$$body_bgcol$$else$#ffffff$endif$;
-font-family: $if(main_fontfamily)$$main_fontfamily$$else$Rasa$endif$;
+font-family: $if(font_family)$$font_family$$else$Rasa$endif$;
margin-top: calc($if(poster_height)$$poster_height$$else$48in$endif$ * $if(main_topsize)$ $main_topsize$ $else$ 0.25 $endif$);
padding-top: 1em;
padding-bottom: 1em;
@@ -175,6 +175,7 @@
line-height: 98%;
border-bottom: 0;
font-weight: normal;
+background: 0;
}
#author {
color: $if(primary_colour)$$primary_colour$$else$#0b4545$endif$;
@@ -284,7 +285,8 @@
}
.main p {
font-size: $if(main_textsize)$$main_textsize$$else$150px$endif$;
-text-align: left;
+font-family: $if(main_fontfamily)$$main_fontfamily$$else$Special Elite$endif$;
+text-align: $if(main_textalign)$$main_textalign$$else$center$endif$;
margin: 0;
position: absolute;
top: 50%;
@@ -334,6 +336,36 @@
.orcid img {
width: 3%;
}
+.emphasis {
+ background-color: #008080;
+ color: #ffffff;
+ border: solid #0b2045 3mm;
+ margin: 1em;
+ padding-left: 0;
+ padding-right: 0;
+}
+.emphasis h1 {
+ font-weight: bold;
+ background: none;
+ background-color: #0b2045;
+ padding-bottom: 5mm;
+ padding-top: 1mm;
+ margin-top: -1mm;
+ margin-right: -1mm;
+ margin-left: -1mm;
+}
+.emphasis blockquote {
+ border: 0;
+}
+.emphasis ol {
+ padding: 0;
+ padding-left: 8%;
+ font-size: 100%;
+ font-weight: bold;
+}
+.emphasis p {
+ color: #ffffff;
+}
</style>
</head>
<body>
@@ -365,7 +397,7 @@
$for(author)$
$if(author.main)$
$else$
-$author.name$<sup>$author.affil$$if(author.orcid)$, <a class="orcid" src="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup>
+$author.name$<sup>$author.affil$$if(author.orcid)$, <a class="orcid" href="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup>
$endif$
$sep$ $endfor$
</h5>