all repos — archive/hugo-xmin @ ffa1147b46cfdf04c9674eb420183bdd78f07a55

Customised minimal hugo theme

bash and sed may not be available on Windows

Yihui Xie
commit

ffa1147b46cfdf04c9674eb420183bdd78f07a55

parent

11ad2599ed983b8749fb2ce7f0a19f998c2998dd

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M exampleSite/R/build.RexampleSite/R/build.R
@@ -1,5 +1,5 @@
file.copy('content/_index.markdown', '../README.md', overwrite = TRUE) -system("sed -i '' -e '1,6d' -e '34,38d' ../README.md") +if (Sys.which('sed') != '') 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