Git

Setup

I wanted to learn how to self-host using my own storage and version control setup using git but not github.

So I followed a mix of tutorials on docker, git, runners, and blogdown. Big credit to the stack overflow and open source contributors.1 I ended up using this simple and functional hugo prose theme created by Yihui.

This theme features sidenotes!2

In setting this up, I chose to use R blogdown package to access useful functions. For example, instead of needing to manually copy/paste passages and superscript verse numbers, I retrieve the text and output formatted text for Psalm 126:3

bibletext <- jsonlite::fromJSON(
   "https://bible-api.com/psalm+126"
) %>%
  bind_rows(.) %>%
  pull(verses) %>%
  mutate(
    text = paste0( gsub("\\b(\\d+)\\b", "<sup>\\1</sup>",verse), " ", text)
  ) %>%
  pull(text) %>%
  paste(., collapse = " ") %>%
  cat("<blockquote>\n", ., "\n</blockquote>")
1 When Yahweh brought back those who returned to Zion, we were like those who dream. 2 Then our mouth was filled with laughter, and our tongue with singing. Then they said among the nations, “Yahweh has done great things for them.” 3 Yahweh has done great things for us, and we are glad. 4 Restore our fortunes again, Yahweh, like the streams in the Negev. 5 Those who sow in tears will reap in joy. 6 He who goes out weeping, carrying seed for sowing, will certainly come again with joy, carrying his sheaves.

  1. I admit it! I relied heavily on coaxing responses to fix issues from that one company known for scraping everyones text. ↩︎

  2. yihui/hugo-prose ↩︎

  3. Psalm 126 (KJV) ↩︎