-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·56 lines (49 loc) · 1.66 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·56 lines (49 loc) · 1.66 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
set -e
# =============================================================
# Academic Website Template — Quick Setup
# =============================================================
echo ""
echo "============================================="
echo " Academic Website Template — Quick Setup"
echo "============================================="
echo ""
# Check for old-style config (migration detection)
if grep -q "^affiliation:" _config.yml 2>/dev/null; then
echo "It looks like you have an old-style _config.yml."
echo "See UPGRADING.md for migration instructions."
echo ""
exit 1
fi
# Gather info
read -rp "Your full name: " NAME
read -rp "Your title (e.g., Professor of Physics): " TITLE
read -rp "Your institution: " INSTITUTION
read -rp "Your email: " EMAIL
echo ""
echo "Updating _config.yml..."
# Use sed to replace placeholder values
sed -i.bak "s/^name: .*/name: \"$NAME\"/" _config.yml
sed -i.bak "s/^title: .*/title: \"$TITLE\"/" _config.yml
sed -i.bak "s/^institution: .*/institution: \"$INSTITUTION\"/" _config.yml
sed -i.bak "s/^email: .*/email: $EMAIL/" _config.yml
rm -f _config.yml.bak
echo "Done!"
echo ""
echo "============================================="
echo " Next steps:"
echo "============================================="
echo ""
echo " 1. Add your profile photo to images/"
echo " (update 'photo' in _config.yml to match)"
echo ""
echo " 2. Add your links in _config.yml (Step 2)"
echo ""
echo " 3. Edit your publications in assets/ref.bib"
echo ""
echo " 4. Customize data files in _data/"
echo " (team_members.yml, news.yml, etc.)"
echo ""
echo " 5. Preview your site:"
echo " bundle exec jekyll serve"
echo ""