aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2020-10-05 10:27:54 -0500
committerYihui Xie <xie@yihui.name>2020-10-05 10:27:54 -0500
commitaeaa9637cb85c553d5def4356de612d6206ffe38 (patch)
treef2dfbbb32b68c346e5e0c0501e8bbc5e71620914
parent38d4939eecde348ccbee275810dd55ea9802df91 (diff)
downloadzk-theme-aeaa9637cb85c553d5def4356de612d6206ffe38.tar.gz
zk-theme-aeaa9637cb85c553d5def4356de612d6206ffe38.zip
run `find` only within the example site, and not in the site that users created with this theme, because this code chunk only makes sense to this theme repository
this is the actual fix for #19, and I guess I was unfair to Windows in d0209f76044d51582923daad96827777dbd0f002
-rw-r--r--exampleSite/content/_index.Rmarkdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/content/_index.Rmarkdown b/exampleSite/content/_index.Rmarkdown
index 9819e5d..276abac 100644
--- a/exampleSite/content/_index.Rmarkdown
+++ b/exampleSite/content/_index.Rmarkdown
@@ -10,8 +10,9 @@ title: Home
**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.name) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
-```{bash, comment='', echo=2, eval=Sys.which('bash') != '' && .Platform$OS.type != 'windows'}
+```{bash, comment='', echo=3, eval=Sys.which('bash') != ''}
cd ../..;
+if [ ! -f 'theme.toml' ]; then exit 0; fi # only run find below within the theme example site
find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xargs wc -l
```