-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.sh
executable file
·101 lines (90 loc) · 2.66 KB
/
template.sh
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
EDITION="Template"
DATE="Month day, year"
URL="hashi.co/hashitalks-template"
ID=$(echo $EDITION | tr '[:upper:]' '[:lower:]')
TAGLINE="Hear from and learn with fellow practitioners."
REGULAR_FONT="fonts/hashicorpsans/regular.ttf"
BOLD_FONT="fonts/hashicorpsans/bold.ttf"
LIGHT_FONT="fonts/hashicorpsans/light.ttf"
COLOR="pink"
INPUT_DIR="input/$EDITION"
OUTPUT_DIR="../hashitalks-assets/2024/$EDITION"
NEXT="Next"
LOGO_OFFSET="0"
TAGLINE_OFFSET="275"
mkdir -p $OUTPUT_DIR
mkdir -p $OUTPUT_DIR/speakers
mkdir -p $OUTPUT_DIR/streaming
mkdir -p $OUTPUT_DIR/social
# social
picasso generate \
-t hashitalks/social/twitter_card.hcl \
--var edition=$EDITION \
--var tagline="$TAGLINE" \
--var color=$COLOR \
--var tagline_offset=$TAGLINE_OFFSET \
--var date="$DATE" \
--var url=$URL \
-o $OUTPUT_DIR/social/twitter_card.png
picasso generate \
-t hashitalks/social/email_banner.hcl \
--var edition=$EDITION \
--var color=$COLOR \
--var logo_offset=$LOGO_OFFSET \
-o $OUTPUT_DIR/social/email_banner.png
# speakers
# picasso generate \
# -t hashitalks/speakers/speaker.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers.csv \
# --csv-var speaker
# speakers 2_speakers
# picasso generate \
# -t hashitalks/speakers/speaker_two_speakers.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_two_speakers.csv \
# --csv-var speaker
# speakers 2_speakers 3_line
# picasso generate \
# -t hashitalks/speakers/speaker_two_speakers_4_line.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_two_speakers_4_line.csv \
# --csv-var speaker
# speakers 1_line
# picasso generate \
# -t hashitalks/speakers/speaker_1_line.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_1_line.csv \
# --csv-var speaker
# speakers 2_line
#picasso generate \
# -t hashitalks/speakers/speaker_2_line.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_2_line.csv \
# --csv-var speaker
# speakers 3_line
# picasso generate \
# -t hashitalks/speakers/speaker_3_line.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_3_line.csv \
# --csv-var speaker
# speakers 4_line
# picasso generate \
# -t hashitalks/speakers/speaker_4_line.hcl \
# -o $OUTPUT_DIR/speakers/ \
# --var color=$COLOR \
# --var edition=$EDITION \
# --csv $INPUT_DIR/csv/speakers_4_line.csv \
# --csv-var speaker