<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hugo on</title><link>http://salopst.yearl.us/tags/hugo/</link><description>Recent content in Hugo on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Sun, 17 Apr 2022 16:13:51 +0100</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/hugo/index.xml" rel="self" type="application/rss+xml"/><item><title>Image file locations in Hugo</title><link>http://salopst.yearl.us/image-flie-locations-in-hugo-static-site-generator/</link><pubDate>Mon, 27 Sep 2021 14:50:23 +0100</pubDate><guid>http://salopst.yearl.us/image-flie-locations-in-hugo-static-site-generator/</guid><description>&lt;p&gt;The images referenced from from the posts here currently live in three locations, based at Hugo&amp;rsquo;s root, ie. relative to &lt;code&gt;config.toml&lt;/code&gt;:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;├── archetypes&#10;├── config.toml&#10;├── static&#10;| └── wp-uploads&#10;| ├── whatever-historic-filename.png&#10;| ├── 2000-01-01-kinda-like-the-alt-text.png&#10;├── content&#10;| └── img&#10;| ├── uploads&#10;| | ├── 2000-01-01-kinda-like-the-alt-text.png&#10;| └── post&#10;| ├── 2000-01-01-the-filename-is-the-slug-kinda.md&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;```/static/wp-uploads&lt;code&gt; &lt;/code&gt;/content/img/uploads/1&lt;/p&gt;&#10;&lt;h2 id="i-put-images-inside-a-folder-called-images-under-contentpost-this-is-the-file-structure-for-the-hugo-project"&gt;I put images inside a folder called images under content/post/. This is the file structure for the Hugo project:&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;├── archetypes&#10;├── config.toml&#10;├── content&#10;| └── post&#10;| ├── your-post.md&#10;| ├── images&#10;| | ├── your-image.png&#10;&lt;/code&gt;&lt;/pre&gt;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="everything-you-put-on-static-folder-will-be-served-at-the-root-of-your-webiste-ex"&gt;Everything you put on static folder will be served at the root of your webiste, ex:&lt;/h2&gt;&#10;&lt;p&gt;/static&#10;/cover.jpg&#10;/img/&#10;/cover2.jpg&#10;/foo&#10;/cover3.png&lt;/p&gt;</description></item><item><title>Fixing git oopsies</title><link>http://salopst.yearl.us/fixing-git-oopsies/</link><pubDate>Wed, 08 Sep 2021 10:43:08 +0100</pubDate><guid>http://salopst.yearl.us/fixing-git-oopsies/</guid><description>&lt;p&gt;I made an oopsies in &lt;code&gt;netlify.toml&lt;/code&gt; that caused the build to fail, so review the commit history with &lt;code&gt;git log&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯❯ git log | rg netlify&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;1481e97 Wed Sep &lt;span style="color:#ae81ff"&gt;8&lt;/span&gt; 10:05:12 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T Added caching plugin; specified Hugo 0.80.0 to allow &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; easier tracking of errors and changes on netlify vs localhost; added content type headers&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cb5842e Fri Aug &lt;span style="color:#ae81ff"&gt;27&lt;/span&gt; 16:56:36 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T reset netlify base to root&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;188065b Fri Aug &lt;span style="color:#ae81ff"&gt;27&lt;/span&gt; 16:20:53 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T First netlify.toml&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And reset local head with&lt;/p&gt;</description></item><item><title>Transcribing Enrico Vasaio for fun and no profit</title><link>http://salopst.yearl.us/transcribing-enrico-vasaio-for-fun-and-no-profit/</link><pubDate>Sat, 31 Jul 2021 20:13:58 +0100</pubDate><guid>http://salopst.yearl.us/transcribing-enrico-vasaio-for-fun-and-no-profit/</guid><description>A quick look at Italian; actually some transcription.</description></item><item><title>Gāyatrī Mantra (Sāvitri Mantra)</title><link>http://salopst.yearl.us/gayatri-mantra/</link><pubDate>Wed, 30 Jun 2021 13:06:15 +0100</pubDate><guid>http://salopst.yearl.us/gayatri-mantra/</guid><description>The Gāyatrī Mantra, also known as the Sāvitri Mantra, is a highly revered mantra from the Rig Veda (Mandala 3.62.10),[1] dedicated to the Vedic deity Savitr</description></item><item><title>Scratch notes on Hugo (and this implementation)</title><link>http://salopst.yearl.us/scratch-notes-on-hugo/</link><pubDate>Mon, 18 May 2020 14:33:57 +0100</pubDate><guid>http://salopst.yearl.us/scratch-notes-on-hugo/</guid><description>&lt;img src="http://salopst.yearl.us/img/uploads/leaping-baby-brown-trout.jpg" alt="Brown trout are the best trout" class="center" style="border-radius: 50px;" /&gt;&#10;&#10;&#10;&lt;h3 id="-this-image-above-is-not-in-the-general-template-for-a-post-file-it-is-added-with"&gt;^^^ This image above is not in the general template for a post file. It is added with:&lt;/h3&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;{{&amp;lt; image src=&amp;#34;/img/uploads/leaping-baby-brown-trout.jpg&amp;#34; &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; alt=&amp;#34;Hello Friendo&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; position=&amp;#34;center&amp;#34; &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; style=&amp;#34;border-radius: 50px;&amp;#34; &amp;gt;}}&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;Escaping&lt;/strong&gt; the shortcode such that it would not be executed was non-obvious. It is done with &lt;code&gt;/*&lt;/code&gt; and &lt;code&gt;*/&lt;/code&gt; &lt;em&gt;immediately inside&lt;/em&gt; the shortcode&amp;rsquo;s &lt;code&gt;{{&lt;/code&gt; and &lt;code&gt;}}&lt;/code&gt;&amp;hellip; hpwever you slice it, that can haardly be considered concise.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Hugo&amp;rsquo;s default markdown flavour was blackfriday: &lt;a href="https://github.com/russross/blackfriday"&gt;https://github.com/russross/blackfriday&lt;/a&gt; until Hugo version v0.60.0 adopted goldmark: &lt;a href="https://libs.garden/go/yuin/goldmark"&gt;https://libs.garden/go/yuin/goldmark&lt;/a&gt;. So, to deal with raw inline HTML in your Markdown files we need to enable the unsafe mode in &lt;code&gt;config.toml&lt;/code&gt;.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>About this site</title><link>http://salopst.yearl.us/about/</link><pubDate>Sat, 09 Apr 2011 00:00:00 +0000</pubDate><guid>http://salopst.yearl.us/about/</guid><description>&lt;p&gt;The current incarnation of whatever dross this is is implemented by &lt;a href="https://gohugo.io"&gt;Hugo&lt;/a&gt;, allegedly the &lt;strong&gt;world’s fastest framework for building websites&lt;/strong&gt;. It is written in Go.&lt;/p&gt;&#10;&lt;p&gt;There are many websites like it, but this one is mine. At one point it was hosted on Tumbler (I think), then Blogger, and more recently Wordpress, but a snafu with the hosting provider&amp;ndash; to whom I had foolishly entrusted my Nextclouds&amp;ndash; led me to think about an alternative. Why, I don&amp;rsquo;t rightly know since there&amp;rsquo;s nothing much here anyway. And what is here is mostly odd and old notes of various things that may not all render consistently given their history.&lt;/p&gt;</description></item><item><title>Installing Hugo with SASS support on Linux</title><link>http://salopst.yearl.us/install-hugo-extended-from-source-on-ubuntu/</link><pubDate>Thu, 07 Oct 2021 21:31:37 +0100</pubDate><guid>http://salopst.yearl.us/install-hugo-extended-from-source-on-ubuntu/</guid><description>&lt;p&gt;Out of the box, Hugo does not come with support for compiling SASS/SCSS to CSS. This has led to a number of errors highlighted by Chrome&amp;rsquo;s Inspector after my having had modified the SCSS files that came with the thems I am using. So we need to compile these extensions in.&lt;/p&gt;&#10;&lt;p&gt;The following command did the trick on Pop!_OS (Ubuntu 21.04), and gives me the latest version of Hugo (0.89) to boot.&lt;/p&gt;</description></item></channel></rss>