about summary refs log tree commit diff stats
path: root/exampleSite/R/build.R
diff options
context:
space:
mode:
authorYihui Xie2017-08-09 11:37:42 -0500
committerYihui Xie2017-08-09 11:40:31 -0500
commit0a869e2e767c166da321dbcbb8e64c42b95e07a4 (patch)
tree0ff42a2f97cda6b986de39f9565717de66e3a75c /exampleSite/R/build.R
parent4888812fd8e4589f14f629f40136bae507471089 (diff)
downloadhugo-xmin-0a869e2e767c166da321dbcbb8e64c42b95e07a4.tar.lz
hugo-xmin-0a869e2e767c166da321dbcbb8e64c42b95e07a4.tar.zst
hugo-xmin-0a869e2e767c166da321dbcbb8e64c42b95e07a4.zip
rename .Rmd to .Rmarkdown and add the build script
Diffstat (limited to 'exampleSite/R/build.R')
-rw-r--r--exampleSite/R/build.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/exampleSite/R/build.R b/exampleSite/R/build.R
new file mode 100644
index 0000000..4747bd1
--- /dev/null
+++ b/exampleSite/R/build.R
@@ -0,0 +1,6 @@
+file.copy('content/_index.markdown', '../README.md', overwrite = TRUE)
+system("sed -i '' -e '1,6d' -e '34,38d' ../README.md")
+cat(
+  '[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.name)\n',
+  file = '../README.md', append = TRUE
+)