<?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 Alwaldend</title>
		<link>https://www-staging.alwaldend.com/tags/hugo/</link>
		<description>Recent content in Hugo on Alwaldend</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="https://www-staging.alwaldend.com/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Alwaldend.com</title>
				<link>https://www-staging.alwaldend.com/docs/projects/alwaldend.com/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://www-staging.alwaldend.com/docs/projects/alwaldend.com/</guid>
				<description>&lt;p&gt;Alwaldend.com is the repository&amp;rsquo;s main website and documentation site. It&#xA;uses Hugo with Docsy to publish project documentation on GitHub Pages.&lt;/p&gt;&#xA;&lt;h2 id=&#34;links&#34;&gt;Links&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#links&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;Source code: &lt;a href=&#34;https://github.com/alwaldend/src/tree/master/projects/alwaldend.com&#34;&gt;https://github.com/alwaldend/src/tree/master/projects/alwaldend.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Github Pages repo: &lt;a href=&#34;https://github.com/alwaldend/alwaldend.github.io&#34;&gt;https://github.com/alwaldend/alwaldend.github.io&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Hugo rules: &lt;a href=&#34;https://www-staging.alwaldend.com/docs/tools/rules_hugo/&#34;&gt;../../tools/rules_hugo&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;features&#34;&gt;Features&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#features&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://gohugo.io&#34;&gt;Hugo&lt;/a&gt; site&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/google/docsy&#34;&gt;Docsy&lt;/a&gt;, &lt;a href=&#34;https://getbootstrap.com&#34;&gt;Bootstrap&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;local-preview-and-validation&#34;&gt;Local preview and validation&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#local-preview-and-validation&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Run from the repository root:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bazel_agent bazel build //projects/alwaldend.com:site&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bazel_agent bazel test //projects/alwaldend.com:site_test&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bazel_agent bazel run //projects/alwaldend.com:site_serve&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The preview serves the local build at http://127.0.0.1:1313.&lt;/p&gt;&#xA;&lt;h2 id=&#34;blog&#34;&gt;Blog&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#blog&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;The site publishes dated articles from &lt;code&gt;content/blog&lt;/code&gt;. Each post is its own&#xA;Bazel package with an &lt;code&gt;index.md&lt;/code&gt; and a &lt;code&gt;BUILD.bazel&lt;/code&gt; declaring its&#xA;&lt;code&gt;docs_filegroup&lt;/code&gt;; the section package aggregates them. The section publishes&#xA;HTML, an RSS feed, and a print edition, and appears in the main navigation.&#xA;The section index and its posts carry a &lt;code&gt;github_subdir&lt;/code&gt; cascade so the&#xA;per-page GitHub links point at the content sources.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Hugo</title>
				<link>https://www-staging.alwaldend.com/docs/misc/hugo/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://www-staging.alwaldend.com/docs/misc/hugo/</guid>
				<description>&lt;p&gt;Hugo is a static site builder&lt;/p&gt;&#xA;&lt;h2 id=&#34;environment-variables&#34;&gt;Environment variables&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#environment-variables&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;Hugo has an allowlist of environment variables, and &lt;code&gt;js_binary&lt;/code&gt; rules&#xA;do not work because they need a &lt;code&gt;BAZEL_BINDIR&lt;/code&gt; variable&lt;/p&gt;&#xA;&lt;p&gt;Fix:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;security&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;exec&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;osEnv&lt;/span&gt; = [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE|BAZEL.+)$&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Configuration reference: &lt;a href=&#34;https://gohugo.io/configuration/security/&#34;&gt;https://gohugo.io/configuration/security/&lt;/a&gt;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Hugo</title>
				<link>https://www-staging.alwaldend.com/docs/tools/hugo/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://www-staging.alwaldend.com/docs/tools/hugo/</guid>
				<description>&lt;p&gt;Hugo binary toolchain for the repository. Build rules live in&#xA;&lt;a href=&#34;https://www-staging.alwaldend.com/docs/tools/rules_hugo/&#34;&gt;&lt;code&gt;rules_hugo&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Rules Hugo</title>
				<link>https://www-staging.alwaldend.com/docs/tools/rules_hugo/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://www-staging.alwaldend.com/docs/tools/rules_hugo/</guid>
				<description>&lt;p&gt;&lt;code&gt;rules_hugo&lt;/code&gt; builds Hugo sites with a registered Hugo toolchain. It keeps the&#xA;site archive in the target configuration and the Hugo binary in the execution&#xA;configuration so site sources are not rebuilt for the execution platform.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;al_hugo_site&lt;/code&gt; wraps a site source archive and its PostCSS tooling.&#xA;&lt;code&gt;al_hugo_run_binary&lt;/code&gt; builds the site with the registered Hugo toolchain and&#xA;&lt;code&gt;al_hugo_binary&lt;/code&gt; exposes a runnable Hugo command for a site. The optional&#xA;&lt;code&gt;al_hugo_worker&lt;/code&gt; rule runs the build through a persistent worker.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
