+++ title = "But that would be too easy" author = ["George M Jones"] publishDate = 2022-01-23T00:00:00-05:00 lastmod = 2023-12-06T05:46:37-05:00 tags = ["writing"] categories = ["blog"] draft = false +++ This is a navel-gazing simple desultory philippic about adventures in yak-shaving. It is dedicated [JTR](https://mastodon.technology/@jrss)'s [ox-hugo](https://ox-hugo.scripter.co/) theme [I've borrowed for the second time](http://curious.galthub.com/blog/hugo-org-github/). Thanks! > "But you could just _use_ wordpress" he tells himself. > "Ahh, but then think of all the yak shaving you would miss." he responds to himself. > "Opportunity cost, he thinks...". > "Yessss, preciousssss. The opportunity cost. Gollum. Gollum. Gollum." These are notes-to-self on converting my blog to using [JTR' new hugo template](https://gitlab.com/taonaw/taonaw). These are mostly of interest to (my future) self and [JTR](https://mastodon.technology/@jrss). This is round 2 of how I use ox-hugo to pubish my blog. Round 1 is documented here ## 1 The work flow {#the-work-flow} The general work flow is - .org file -> ox-hugo export -> .md in `content/` - .md in `content/`, `images/` and `static/` -> hugo -> .html in `docs/` - .html files in `docs/` -> rsync -> web server public html directory ## 2 DONE [3/3] Action Items {#done-action-items} ### 2.1 DONE [7/7]Testing and figuring out what to chang {#done-testing-and-figuring-out-what-to-chang} #### 2.1.1 DONE Clone the JTR current template {#done-clone-the-jtr-current-template} ```text git clone https://gitlab.com/taonaw/taonaw ``` #### 2.1.2 DONE Set up new capture template {#done-set-up-new-capture-template} ```text (setq org-capture-templates (quote ( ... ("h" "hugo blog" entry (file "~/blog/drafts.org") "*** TODO %^{title} :PROPERTIES: :EXPORT_FILE_NAME: %(format-time-string \"%Y-%m-%d\") :EXPORT_HUGO_PUBLISHDATE: %(format-time-string \"%Y-%m-%d\"): :END: The short story .. #+caption: [[https://FOO.COM/BAR/BAZ.JPG][\"Name of work\" by WHO is licensed under cc by 2.0]] #+attr_html: :width 200px [[file:images/BAZ.JPG]] #+hugo: more The long story... " ) ``` #### 2.1.3 DONE Update config.toml {#done-update-config-dot-toml} ```text diff --git a/config.toml b/config.toml index f9089c30..abc6cd5c 100644 --- a/config.toml +++ b/config.toml @@ -1,17 +1,17 @@ enableRobotsTXT = true canonifyURLs = true -baseurl = "https://helpdeskheadesk.net/" +baseurl = "http://curious.galthub.com/" publishDir = "docs" languageCode = "en-us" -title = "The Art of Not Asking Why" +title = "Curious Musings" # themesDir = "themes" # theme = "hyde" -disqusShortname = "taonaw" +#disqusShortname = "curious" footnoteReturnLinkContents = "[^ back]" [author] - name = "JTR" - homepage = "helpdeskheadesk.net" + name = "George Jones" + homepage = "curious.galthub.com" # If Porting existing theme [original] @@ -20,7 +20,7 @@ footnoteReturnLinkContents = "[^ back]" repo = "https://www.github.com/mdo/hyde" [params] - description = "A Blog by JTR: Tech, Life, and the Stuff in Between." + description = "A Blog by George Jones: Musings on life, computers, security, etc.." # themeColor = "theme-base-0a" [paginator] ``` #### 2.1.4 DONE Update the sidebar {#done-update-the-sidebar} ```text diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6700d4d7..06ab109f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -17,6 +17,9 @@ {{ range .Site.Menus.main -}}
  • {{ .Name }}
  • {{- end }} + +

    All Posts ►

    + ``` #### 2.1.5 DONE Delete most of JTR' content {#done-delete-most-of-jtr-content} - Just delete the stuff you don't want in content/ - Beware of browser caches with old tags (refresh) #### 2.1.6 DONE [6/6] Remove/replace JTR' custom artwork with Thinker {#done-remove-replace-jtr-custom-artwork-with-thinker} - DONE stop JTRs image from loadiing Comment out in `/static/css/hyde.css`, both `/* background-image: url("/taonaw_logo.png"); */` twice ```text George Jones :emacs: :orgmode: @eludom @jrss Having trouble figuring out where to remove your custom graphic from the sidebar. Thought maybe favicon.png but I can't figure out where to remove it? JTR :emacs:☕ @jrss@mastodon.technology @eludom taonaw_logo.png and title-logo.png in static I believe. George Jones :emacs: :orgmode: @eludom @jrss OK. Killed it (comment) in .css. SOMEONE (browser, hugo server, ...) was caching the image and refused to let go even after I renamed the files. ``` - DONE add "thinker" at bottom of "about" in sidebar - Add immage `static/thinker.png` - Update the sidebar ```text