Skip to main content

8  Template - Post (md)

Use of this template is described in Start the post from a template and Walkthrough with code snippets.

Markdown template to be saved as /content/blog/YYYY-MM-DD-slug/index.md

Notice the copy-paste button at the top-right corner of the template.

---
slug: "post-template"
# Post in English: Title in Title Case
# Post in Spanish: Title only first word and proper names in title case
title: Post Title in Title Case
# package_version: 0.1.0 # Uncomment if this post is about a package
author:
  - Author Name1
  - Author Name2
editor:
  - Editor Name1 # Name(s) of the editor(s) of your post (you can leave empty)
# translator: # Uncomment if this post is a translation
#   - Translator Name1
# interviewee: # Uncomment if this post is a interview
#   - Interviewee Name1
date: 2020-03-10  # Expected date of publication
# Minimal tags for a post about a community-contributed package
# that has passed software peer review are listed below.
# Consult the Technical Guidelines for information on choosing additional tags.
tags:
  - Software Peer Review
  - packages
  - R
  - community
# The description below will be used by e.g. Social preview cards
description: "A very short summary of your post (~ 100 characters)"
# The editor will add this. If you would like add it yourself, 
# use the quoted doi output from `commonmetar::commonmeta_doi()`.
# Commonmetar package: https://docs.ropensci.org/commonmetar/
params:
  doi:
# If you have no preferred image for Social preview cards,
# delete the socialImg and socialAlt lines below.
# If using, note "/" between year/month/day
socialImg: blog/2019/06/04/post-template/name-of-image.png
socialAlt: "Alternative description of the image"
# The text below is for populating the "share on XXX" Socials buttons.
# If deleted, the title of the post will be used.
social: "A post about blabla by @[email protected]!"
---

This is the Markdown (.md) template for a blog post or tech note.
To generate your post with R Markdown (.Rmd), use that template instead.

Throughout this template, including the YAML, you should change "post-template" to the slug of your post, and "2019-06-04" to your publication date.

Save this file under /content/blog/YYYY-MM-DD-slug/index.md in the local copy of your roweb3 fork.

## Section heading in sentence case

Citation of the primary literature[^1].

Citation of a website[^2].

Citation of an R package[^3].

### Subsection heading

We recommend the use of [Hugo shortcodes](https://gohugo.io/content-management/shortcodes/) to include images,, videos, gists, etc.

**Add an image** by using a Hugo shortcode.
The image is saved under `/content/blog/YYYY-MM-DD-slug/name-of-image.png`.

{{< figure src = "name-of-image.png" width = "400" alt = "this is the alternative text" >}}

Consult the Technical Guidelines for tips on changing image size, alignment, and for advice on alternative text.

**Add citation or footnote** text by using the format below

[^1]: Sciaini, M., Fritsch, M., Scherer, C., & Simpkins, C. E. (2018). NLMR and landscapetools: An integrated environment for simulating and modifying neutral landscape models in R. Methods in Ecology and Evolution, 9(11), 2240-2248. <https://doi.org/10.1111/2041-210X.13076>
[^2]: Elin Waring, Michael Quinn, Amelia McNamara, Eduardo Arino de la Rubia, Hao Zhu and Shannon Ellis (2019). skimr: Compact and Flexible Summaries of Data. R package version 1.0.7. https://CRAN.R-project.org/package=skimr
[^3]: Hugo static site generator. https://gohugo.io/