Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wowchemy/starter-academic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Cushen <gcushen@users.noreply.github.com>2019-02-20 20:55:45 +0300
committerGeorge Cushen <gcushen@users.noreply.github.com>2019-02-20 20:55:45 +0300
commit1d6e6e629ee5664a3ba592e2bd48aef5022536bc (patch)
tree77951c88433cdf70012179e0d8a931ef39ef0801 /scripts
parent8a4c5c482f997a28d47218bef3d2b6e0f6fde585 (diff)
add scripts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init_kickstart.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/init_kickstart.sh b/scripts/init_kickstart.sh
new file mode 100644
index 00000000..a1320215
--- /dev/null
+++ b/scripts/init_kickstart.sh
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+# WARNING: this will reset the project to the Kickstart template!
+
+# Update Academic
+source ../update_academic.sh
+
+#################################################
+
+# Install demo config
+rsync -av ../themes/academic/exampleSite/config/ ../config/
+
+# Install demo user
+rsync -av ../themes/academic/exampleSite/content/author/ ../content/author/
+
+# Install an example instance of each widget type
+rsync -av --exclude gallery/ ../themes/academic/exampleSite/content/home/ ../content/home/
+
+# Install indices
+rsync -av ../themes/academic/exampleSite/content/post/_index.md ../content/post/_index.md
+rsync -av ../themes/academic/exampleSite/content/publication/_index.md ../content/publication/_index.md
+rsync -av ../themes/academic/exampleSite/content/talk/_index.md ../content/talk/_index.md
+
+# Skip static dir - do not import the demo's media library
+
+#################################################
+
+# Post processing
+
+# Deactivate Hero
+sed -i '' -e 's/active = true/active = false/' ../content/home/hero.md
+
+# Manual Steps:
+# - content/home/project.md: Re-comment out project widget filters
+# - content/home/teaching.md: Re-modify title and content & set gradient background instead of image
+# - content/home/hero.md: Clear `hero_media` value & set gradient background instead of image