From 094bcc01f3297c85df05bdad9228b5d4efe18d7d Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Tue, 26 Dec 2017 22:49:40 +0800 Subject: common url --- exampleSite/content/p/hello-markdown.md | 24 --------- exampleSite/content/p/lorem-ipsum.md | 6 --- exampleSite/content/p/tanka-theme-demo.md | 74 ---------------------------- exampleSite/content/post/hello-markdown.md | 24 +++++++++ exampleSite/content/post/lorem-ipsum.md | 6 +++ exampleSite/content/post/tanka-theme-demo.md | 74 ++++++++++++++++++++++++++++ 6 files changed, 104 insertions(+), 104 deletions(-) delete mode 100644 exampleSite/content/p/hello-markdown.md delete mode 100644 exampleSite/content/p/lorem-ipsum.md delete mode 100644 exampleSite/content/p/tanka-theme-demo.md create mode 100644 exampleSite/content/post/hello-markdown.md create mode 100644 exampleSite/content/post/lorem-ipsum.md create mode 100644 exampleSite/content/post/tanka-theme-demo.md diff --git a/exampleSite/content/p/hello-markdown.md b/exampleSite/content/p/hello-markdown.md deleted file mode 100644 index c240e85..0000000 --- a/exampleSite/content/p/hello-markdown.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: "A Plain Markdown Post" -date: "2016-12-30T21:49:57-07:00" ---- - -This is a post written in plain Markdown (`*.md`) instead of R Markdown (`*.Rmd`). The major differences are: - -1. You cannot run any R code in a plain Markdown document, whereas in an R Markdown document, you can embed R code chunks (```` ```{r} ````); -2. A plain Markdown post is rendered through [Blackfriday](https://gohugo.io/overview/configuration/), and an R Markdown document is compiled by [**rmarkdown**](http://rmarkdown.rstudio.com) and [Pandoc](http://pandoc.org). - -There are many differences in syntax between Blackfriday's Markdown and Pandoc's Markdown. For example, you can write a task list with Blackfriday but not with Pandoc: - -- [x] Write an R package. -- [ ] Write a book. -- [ ] ... -- [ ] Profit! - -Similarly, Blackfriday does not support LaTeX math and Pandoc does. I have added the MathJax support to this theme ([hugo-lithium-theme](https://github.com/yihui/hugo-lithium-theme)) but there is a caveat for plain Markdown posts: you have to include math expressions in a pair of backticks (inline: `` `$ $` ``; display style: `` `$$ $$` ``), e.g., `$S_n = \sum_{i=1}^n X_i$`.^[This is because we have to protect the math expressions from being interpreted as Markdown. You may not need the backticks if your math expression does not contain any special Markdown syntax such as underscores or asterisks, but it is always a safer choice to use backticks. When you happen to have a pair of literal dollar signs inside the same element, you can escape one dollar sign, e.g., `\$50 and $100` renders "\$50 and $100".] For R Markdown posts, you do not need the backticks, because Pandoc can identify and process math expressions. - -When creating a new post, you have to decide whether the post format is Markdown or R Markdown, and this can be done via the `rmd` argument of the function `blogdown::new_post()`, e.g. - -```r -blogdown::new_post("Post Title", rmd = FALSE) -``` diff --git a/exampleSite/content/p/lorem-ipsum.md b/exampleSite/content/p/lorem-ipsum.md deleted file mode 100644 index ad2a8f3..0000000 --- a/exampleSite/content/p/lorem-ipsum.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Lorem Ipsum" -date: 2015-01-01T13:09:13-06:00 ---- - -**Lorem ipsum** dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore _magna aliqua_. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/exampleSite/content/p/tanka-theme-demo.md b/exampleSite/content/p/tanka-theme-demo.md deleted file mode 100644 index 6aac8e2..0000000 --- a/exampleSite/content/p/tanka-theme-demo.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: "Tanka Theme Demo" -date: "2017-12-26" ---- - -[Tanka](https://github.com/road2stat/hugo-tanka) is a minimalist, text-oriented, and performant Hugo theme. - -## Features - -* Loads in a single request (with web-fonts disabled) -* 100 / 100 on Google Page Speed test (100 / 100 on mobile with web-fonts disabled) -* Scriptless (unless you enable Google Analyitcs) -* Styles inlined in head -* MathJax support - -## Typography - -# h1 Heading - -## h2 Heading - -### h3 Heading - -#### h4 Heading - -##### h5 Heading - -###### h6 Heading - ---- - -**This is bold text** - -__This is bold text__ - -*This is italic text* - -_This is italic text_ - -~~Deleted text~~ - -> Block quotes are -> written like so. -> -> They can span multiple paragraphs, -> if you like. - -Some text, and some `code` and then a nice plain [link with title](https://github.com/road2stat/blog "title text!"). - -and then - -+ Create a list by starting a line with `+`, `-`, or `*` -+ Sub-lists are made by indenting 2 spaces: - - Marker character change forces new list start: - * Ac tristique libero volutpat at -+ Very easy! - -vs. - -1. Lorem ipsum dolor sit amet -2. Consectetur adipiscing elit -3. Integer molestie lorem at massa - -## Code - -Inline `code` - -```r -foo = function (bar = "code") { - return(NULL) -} - -set.seed(42) -``` diff --git a/exampleSite/content/post/hello-markdown.md b/exampleSite/content/post/hello-markdown.md new file mode 100644 index 0000000..c240e85 --- /dev/null +++ b/exampleSite/content/post/hello-markdown.md @@ -0,0 +1,24 @@ +--- +title: "A Plain Markdown Post" +date: "2016-12-30T21:49:57-07:00" +--- + +This is a post written in plain Markdown (`*.md`) instead of R Markdown (`*.Rmd`). The major differences are: + +1. You cannot run any R code in a plain Markdown document, whereas in an R Markdown document, you can embed R code chunks (```` ```{r} ````); +2. A plain Markdown post is rendered through [Blackfriday](https://gohugo.io/overview/configuration/), and an R Markdown document is compiled by [**rmarkdown**](http://rmarkdown.rstudio.com) and [Pandoc](http://pandoc.org). + +There are many differences in syntax between Blackfriday's Markdown and Pandoc's Markdown. For example, you can write a task list with Blackfriday but not with Pandoc: + +- [x] Write an R package. +- [ ] Write a book. +- [ ] ... +- [ ] Profit! + +Similarly, Blackfriday does not support LaTeX math and Pandoc does. I have added the MathJax support to this theme ([hugo-lithium-theme](https://github.com/yihui/hugo-lithium-theme)) but there is a caveat for plain Markdown posts: you have to include math expressions in a pair of backticks (inline: `` `$ $` ``; display style: `` `$$ $$` ``), e.g., `$S_n = \sum_{i=1}^n X_i$`.^[This is because we have to protect the math expressions from being interpreted as Markdown. You may not need the backticks if your math expression does not contain any special Markdown syntax such as underscores or asterisks, but it is always a safer choice to use backticks. When you happen to have a pair of literal dollar signs inside the same element, you can escape one dollar sign, e.g., `\$50 and $100` renders "\$50 and $100".] For R Markdown posts, you do not need the backticks, because Pandoc can identify and process math expressions. + +When creating a new post, you have to decide whether the post format is Markdown or R Markdown, and this can be done via the `rmd` argument of the function `blogdown::new_post()`, e.g. + +```r +blogdown::new_post("Post Title", rmd = FALSE) +``` diff --git a/exampleSite/content/post/lorem-ipsum.md b/exampleSite/content/post/lorem-ipsum.md new file mode 100644 index 0000000..ad2a8f3 --- /dev/null +++ b/exampleSite/content/post/lorem-ipsum.md @@ -0,0 +1,6 @@ +--- +title: "Lorem Ipsum" +date: 2015-01-01T13:09:13-06:00 +--- + +**Lorem ipsum** dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore _magna aliqua_. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/exampleSite/content/post/tanka-theme-demo.md b/exampleSite/content/post/tanka-theme-demo.md new file mode 100644 index 0000000..6aac8e2 --- /dev/null +++ b/exampleSite/content/post/tanka-theme-demo.md @@ -0,0 +1,74 @@ +--- +title: "Tanka Theme Demo" +date: "2017-12-26" +--- + +[Tanka](https://github.com/road2stat/hugo-tanka) is a minimalist, text-oriented, and performant Hugo theme. + +## Features + +* Loads in a single request (with web-fonts disabled) +* 100 / 100 on Google Page Speed test (100 / 100 on mobile with web-fonts disabled) +* Scriptless (unless you enable Google Analyitcs) +* Styles inlined in head +* MathJax support + +## Typography + +# h1 Heading + +## h2 Heading + +### h3 Heading + +#### h4 Heading + +##### h5 Heading + +###### h6 Heading + +--- + +**This is bold text** + +__This is bold text__ + +*This is italic text* + +_This is italic text_ + +~~Deleted text~~ + +> Block quotes are +> written like so. +> +> They can span multiple paragraphs, +> if you like. + +Some text, and some `code` and then a nice plain [link with title](https://github.com/road2stat/blog "title text!"). + +and then + ++ Create a list by starting a line with `+`, `-`, or `*` ++ Sub-lists are made by indenting 2 spaces: + - Marker character change forces new list start: + * Ac tristique libero volutpat at ++ Very easy! + +vs. + +1. Lorem ipsum dolor sit amet +2. Consectetur adipiscing elit +3. Integer molestie lorem at massa + +## Code + +Inline `code` + +```r +foo = function (bar = "code") { + return(NULL) +} + +set.seed(42) +``` -- cgit v1.2.3