Refactor theme (#1)

This commit is contained in:
Dave Gallant
2020-03-16 21:25:08 -04:00
committed by GitHub
parent 2c3ba62ee1
commit c0700ec4cf
255 changed files with 714 additions and 11426 deletions

View File

@@ -0,0 +1,12 @@
if (Sys.getenv('USER') != 'yihui' || Sys.which('git') == '' ||
!grepl(
'git@github.com:yihui/hugo-xmin.git',
system2('git', c('remote', '-v'), stdout = TRUE)
)) q('no')
file.copy('content/_index.markdown', '../README.md', overwrite = TRUE)
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
)