Skip to content

Commit 1c2968f

Browse files
committed
feat: add template hero thumb image
1 parent 362e197 commit 1c2968f

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

content/blog/2015-07-23-template-post.Rmd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ tags:
99
draft: true # remove this line in new blog posts
1010
authors: # list of author keys, see /data/authors.yaml
1111
- frida
12-
heroImage: /blog/images/blog-lg-img_hello-world.jpg # size: 1120x440 jpg and webp format
13-
heroImageThumb: /blog/images/blog-thumb-img_hello-world.jpg # size: 300x200 jpg and webp format
12+
# uncomment to enable a big hero image
13+
# heroImage: /blog/images/blog-lg-img_hello-world.jpg # size: 1120x440 jpg and webp format
14+
heroImageThumb: /blog/images/blog-thumb.jpg # size: 300x200 jpg and webp format
1415
summary: |
1516
Blog summary, the first 150 characters are used for the blog list
1617
acknowledgements: |
@@ -81,11 +82,11 @@ $$
8182

8283
## Metadata
8384

84-
Each post has a title, author, date, and tags.
85+
Each post has a title, author, date, and tags.
8586
Choose bold, active titles, like "Delphi releases new survey data",
8687
rather than boring titles like "New survey aggregates".
8788

88-
The author metadata should credit the post author or authors; But in the post acknowledgements,
89+
The author metadata should credit the post author or authors; But in the post acknowledgements,
8990
you should also generously
9091
name anyone who helped with parts of your post, e.g., the team members who
9192
obtained data or set up a server or developed a package you use.
@@ -111,11 +112,11 @@ suggest we consider the following tags as base tags:
111112
### Linking to other pages and blog posts:
112113

113114
using the file name and the Hugo shortcodes, e.g.: `r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey", "Facebook Post")`.
114-
Jumping to a specific section/anchor is supported too:
115+
Jumping to a specific section/anchor is supported too:
115116
`r blogdown::shortcode_html("reflink", "2020-08-26-fb-survey#some-interesting-examples", "previous exploratory investigations")`
116117

117118
### Linking to the API doc:
118119

119-
there is another shortcode for creating an api link, e.g.
120+
there is another shortcode for creating an api link, e.g.
120121
`r blogdown::shortcode_html("apireflink", "/", "public API")` or
121-
`r blogdown::shortcode_html("apireflink", "api/covidcast-signals/doctor-visits.html", "Doctor's Visits signal")`
122+
`r blogdown::shortcode_html("apireflink", "api/covidcast-signals/doctor-visits.html", "Doctor's Visits signal")`

content/blog/2015-07-23-template-post.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
draft: true # remove this line in new blog posts
1010
authors: # list of author keys, see /data/authors.yaml
1111
- frida
12-
heroImage: /blog/images/blog-lg-img_hello-world.jpg
13-
heroImageThumb: /blog/images/blog-thumb-img_hello-world.jpg
12+
# uncomment to enable a big hero image
13+
# heroImage: /blog/images/blog-lg-img_hello-world.jpg # size: 1120x440 jpg and webp format
14+
heroImageThumb: /blog/images/blog-thumb.jpg # size: 300x200 jpg and webp format
1415
summary: |
1516
Blog summary, the first 150 characters are used for the blog list
1617
acknowledgements: |
@@ -47,21 +48,21 @@
4748
see <a href="http://rmarkdown.rstudio.com" class="uri">http://rmarkdown.rstudio.com</a>.</p>
4849
<p>You can embed an R code chunk like this:</p>
4950
<pre class="r"><code>summary(cars)
50-
## speed dist
51-
## Min. : 4.0 Min. : 2.00
52-
## 1st Qu.:12.0 1st Qu.: 26.00
53-
## Median :15.0 Median : 36.00
54-
## Mean :15.4 Mean : 42.98
55-
## 3rd Qu.:19.0 3rd Qu.: 56.00
51+
## speed dist
52+
## Min. : 4.0 Min. : 2.00
53+
## 1st Qu.:12.0 1st Qu.: 26.00
54+
## Median :15.0 Median : 36.00
55+
## Mean :15.4 Mean : 42.98
56+
## 3rd Qu.:19.0 3rd Qu.: 56.00
5657
## Max. :25.0 Max. :120.00
5758
fit &lt;- lm(dist ~ speed, data = cars)
5859
fit
59-
##
60+
##
6061
## Call:
6162
## lm(formula = dist ~ speed, data = cars)
62-
##
63+
##
6364
## Coefficients:
64-
## (Intercept) speed
65+
## (Intercept) speed
6566
## -17.579 3.932</code></pre>
6667
<div id="including-plots" class="section level2">
6768
<h2>Including Plots</h2>

static/blog/images/blog-thumb.jpg

5.97 KB
Loading

static/blog/images/blog-thumb.webp

2.73 KB
Loading
128 KB
Binary file not shown.

0 commit comments

Comments
 (0)