Skip to content

Commit 749235c

Browse files
authored
Merge pull request #154 from chnm/feature/architecture
Fixed post and image issues; added Brett bio and headshot
2 parents 15e477b + 4673d8a commit 749235c

File tree

19 files changed

+164
-279
lines changed

19 files changed

+164
-279
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
name: "Megan Brett"
3-
bio: "bio bio bio"
4-
headshot: ""
5-
---
3+
bio: "Megan R. Brett is a digital public historian and a scholar of the early United States. She a Ph.D. in History from George Mason University. From 2014 through 2022 she was a Digital History Associate at RRCHNM."
4+
headshot: "/img/headshots/mb.jpg"
5+
---
6+

bom-website/hugo_stats.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"bg-dbn-green",
6969
"bg-dbn-yellow",
7070
"bg-gray-100",
71-
"bg-gray-200",
7271
"bg-gray-500",
7372
"bg-gray-700",
7473
"bg-opacity-40",
@@ -84,6 +83,7 @@
8483
"border-0",
8584
"border-2",
8685
"border-b",
86+
"border-dbn-blue",
8787
"border-dbn-orange",
8888
"border-dbn-yellow",
8989
"border-gray-200",
@@ -162,15 +162,14 @@
162162
"grid-cols-4",
163163
"h-0.5",
164164
"h-10",
165-
"h-24",
166165
"h-32",
167166
"h-4",
168167
"h-40",
169168
"h-48",
170169
"h-5",
171170
"h-6",
171+
"h-8",
172172
"h-full",
173-
"hidden",
174173
"highlight",
175174
"hover:bg-dbn-blue",
176175
"hover:bg-dbn-yellowdark",
@@ -191,7 +190,6 @@
191190
"items-center",
192191
"items-end",
193192
"items-start",
194-
"items-top",
195193
"justify-between",
196194
"justify-center",
197195
"justify-end",
@@ -207,6 +205,8 @@
207205
"lg:flex-grow",
208206
"lg:h-auto",
209207
"lg:items-center",
208+
"lg:items-start",
209+
"lg:justify-start",
210210
"lg:max-w-4xl",
211211
"lg:max-w-lg",
212212
"lg:max-w-md",
@@ -219,14 +219,12 @@
219219
"lg:text-left",
220220
"lg:w-2/5",
221221
"lg:w-3/5",
222-
"lg:w-6/12",
223222
"lg:w-auto",
224223
"list-none",
225224
"loading_chart",
226225
"loading_stack",
227226
"m-0.5",
228227
"m-3",
229-
"max-h-60",
230228
"max-h-64",
231229
"max-w-2xl",
232230
"max-w-3xl",
@@ -263,6 +261,7 @@
263261
"md:w-7/12",
264262
"min-h-fit",
265263
"min-h-screen",
264+
"min-w-[200px]",
266265
"min-w-full",
267266
"ml-0",
268267
"ml-1",
@@ -272,13 +271,11 @@
272271
"mr-2",
273272
"mr-4",
274273
"mt-0",
275-
"mt-1",
276274
"mt-2",
277275
"mt-3",
278276
"mt-4",
279277
"mt-5",
280278
"mx-0",
281-
"mx-6",
282279
"mx-auto",
283280
"my-20",
284281
"my-4",
@@ -288,11 +285,9 @@
288285
"object-scale-down",
289286
"opacity-0",
290287
"opacity-100",
291-
"overflow-auto",
292288
"overflow-hidden",
293289
"overflow-scroll",
294290
"overflow-y-auto",
295-
"p-2",
296291
"p-3",
297292
"p-4",
298293
"p-5",
@@ -338,13 +333,11 @@
338333
"relative",
339334
"rotate-180",
340335
"rounded",
341-
"rounded-bl-lg",
342336
"rounded-full",
343337
"rounded-l-lg",
344338
"rounded-lg",
345339
"rounded-r-lg",
346340
"rounded-r-md",
347-
"rounded-tr-lg",
348341
"sample-citation",
349342
"section-content",
350343
"shadow",
@@ -430,7 +423,6 @@
430423
"whitespace-nowrap",
431424
"xl:col-span-4",
432425
"xs:h-44",
433-
"z-10",
434426
"z-50"
435427
],
436428
"ids": [
@@ -460,8 +452,6 @@
460452
"death-on-two-legs-a-spatial-representation-of-time-to-event-analysis",
461453
"digitization-of-original-documents",
462454
"end-year",
463-
"end-year-button",
464-
"end-year-dropdown",
465455
"endpoints",
466456
"errors",
467457
"fn:1",
@@ -529,8 +519,6 @@
529519
"solution-see-above",
530520
"solution-you-shouldnt-be-surprised-small-level-of-math-knowledge-required",
531521
"start-year",
532-
"start-year-button",
533-
"start-year-dropdown",
534522
"step-1-putting-your-data-ducks-in-a-row",
535523
"step-2-joining-your-csv-to-your-shp",
536524
"step-3-making-the-map-actually-say-something",

bom-website/new-post.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/bash
2+
# The following script is a helper for generating a new Hugo post with the correct YAML front matter
3+
# and placed into its correct directory. It prompts for the post title, author, tags, and category.
4+
5+
# Function to prompt for input with a default value
6+
prompt() {
7+
local prompt_text=$1
8+
local default_value=$2
9+
read -p "$prompt_text [$default_value]: " input
10+
echo "${input:-$default_value}"
11+
}
12+
13+
# Prompt for post details
14+
title=$(prompt "Enter the post title" "New Post")
15+
slug=$(echo "$title" | tr '[:upper:]' '[:lower:]' | tr -s ' ' '-' | tr -cd '[:alnum:]-')
16+
author=$(prompt "Enter the author(s)" "Author Name")
17+
tags=$(prompt "Enter the tags (comma-separated)" "tag1, tag2")
18+
category=$(prompt "Enter the category (analysis, context, methodologies, announcements)" "analysis")
19+
20+
# Validate category
21+
case "$category" in
22+
analysis|context|methodologies|announcements)
23+
;;
24+
*)
25+
echo "Invalid category. Please choose from analysis, context, methodologies, or announcements."
26+
exit 1
27+
;;
28+
esac
29+
30+
# Create the post directory based on the category
31+
post_dir="content/$category/$slug"
32+
mkdir -p "$post_dir"
33+
34+
# Create the index.md file with the YAML header
35+
cat <<EOF > "$post_dir/index.md"
36+
---
37+
title: "$title"
38+
slug: "$slug"
39+
date: $(date +"%Y-%m-%dT%H:%M:%S%z")
40+
author: "$author"
41+
tags: [$(echo "$tags" | sed 's/,/, /g')]
42+
category: "$category"
43+
---
44+
EOF
45+
46+
echo "New post created at $post_dir/index.md"

bom-website/themes/dbn/assets/custom.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ h6 {
2727

2828
@layer base {
2929
a {
30-
@apply text-dbn-purple;
30+
@apply text-dbn-red;
3131
}
32+
a:hover {
33+
@apply no-underline;
34+
}
35+
}
36+
37+
/* Prevent nav dropdowns from appearing until Alpine is initialized */
38+
[x-cloak] {
39+
display: none;
3240
}
3341

3442
.prose figure {

0 commit comments

Comments
 (0)