<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Static on Ponfertato</title><link>https://ponfertato.potatoenergy.ru/en/tags/static/</link><description>Recent content in Static on Ponfertato</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2019-2026 Ponfertato</copyright><atom:link href="https://ponfertato.potatoenergy.ru/en/tags/static/index.xml" rel="self" type="application/rss+xml"/><item><title>Hugo: Static Site Architecture &amp; CI/CD</title><link>https://ponfertato.potatoenergy.ru/en/projects/hugo-workflow/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ponfertato.potatoenergy.ru/en/projects/hugo-workflow/</guid><description>&lt;p&gt;Using Hugo for static site generation delivers maximum performance with minimal overhead. All projects in the &lt;code&gt;*.potatoenergy.ru&lt;/code&gt; stack share a unified methodology for configuration, building, and deployment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Core principles&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;🔹 Declarative configuration via &lt;code&gt;hugo.toml&lt;/code&gt; and &lt;code&gt;config/_default/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;🔹 Multilingual support via &lt;code&gt;translationKey&lt;/code&gt; without logic duplication&lt;/li&gt;
&lt;li&gt;🔹 Parameter inheritance via &lt;code&gt;cascade&lt;/code&gt; in front matter&lt;/li&gt;
&lt;li&gt;🔹 Asset optimization via Hugo Pipes (minification, fallbacks, hashing)&lt;/li&gt;
&lt;li&gt;🔹 Build environment isolation via Docker&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;🗂 Project structure
 &lt;div id="-project-structure" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#-project-structure" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;div class="highlight-wrapper"&gt;&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;project/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── config/_default/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── hugo.toml # Base settings: baseURL, theme, outputs
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── params.toml # Global theme params and custom variables
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── menus.toml # Navigation configuration
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── languages.*.toml # Localization: displayName, copyright, author
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── content/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── {section}/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ ├── _index.{ru,en}.md # Listing page with section description
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ └── {slug}/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ ├── index.{ru,en}.md # Content with translation via translationKey
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ └── assets/ # Page-bundled resources
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── _index.{ru,en}.md # Homepage
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── layouts/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── _default/ # Default templates: single.html, list.html
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── partials/ # Reusable components: head, footer, svg
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── shortcodes/ # Custom shortcodes: audio, toggle, icon
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── shortcodes/ # Theme template overrides (if needed)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── static/ # Files copied as-is: robots.txt, favicons
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── assets/ # Hugo Pipes sources: CSS/JS for processing
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;└── docker-compose.yml # Local development environment&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;🌐 Multilingual without duplication
 &lt;div id="-multilingual-without-duplication" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#-multilingual-without-duplication" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Translation linking is handled via &lt;code&gt;translationKey&lt;/code&gt; in front matter:&lt;/p&gt;</description></item></channel></rss>