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

init_kickstart.sh « scripts - github.com/wowchemy/starter-academic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b4a879b62854202acbacfb189bbe4958ee64482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash

# WARNING: this will reset the project to the Kickstart template!

# Update Academic
cd ..
source update_academic.sh
cd scripts/

#################################################

# Install demo config
rsync -av ../themes/academic/exampleSite/config/ ../config/

# Install Netlify CMS
rsync -av ../themes/academic/exampleSite/static/admin/ ../static/admin/

# Install demo user
rsync -av ../themes/academic/exampleSite/content/authors/ ../content/authors/

# Install page sharer button customizer
rsync -av ../themes/academic/data/page_sharer.toml ../data/

# 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 filters
# - content/home/demo.md: Re-modify content & set gradient background instead of image
# - content/home/hero.md: Clear `hero_media` value & set gradient background instead of image