<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Layout on John's Blog</title><link>https://portfolio.hugo-themes.com/tags/layout/</link><description>Recent content in Layout on John's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 08 Nov 2026 12:00:00 +0600</lastBuildDate><atom:link href="https://portfolio.hugo-themes.com/tags/layout/rss.xml" rel="self" type="application/rss+xml"/><item><title>Code Blocks, Syntax Highlighting, and Folding</title><link>https://portfolio.hugo-themes.com/posts/code-blocks-and-highlighting/</link><pubDate>Sun, 08 Nov 2026 12:00:00 +0600</pubDate><guid>https://portfolio.hugo-themes.com/posts/code-blocks-and-highlighting/</guid><description>&lt;p&gt;Code blocks receive compact headers automatically in Toha—showing the language or custom filename alongside a complete-source &lt;strong&gt;Copy&lt;/strong&gt; button and optional folding controls configured globally in &lt;code&gt;hugo.yaml&lt;/code&gt; or overridden per fence.&lt;/p&gt;
&lt;h2 id="auto-folded-long-configuration-previewlines-8"&gt;Auto-folded long configuration (&lt;code&gt;previewLines: 8&lt;/code&gt;)&lt;/h2&gt;
&lt;p&gt;Because &lt;code&gt;params.features.codeBlock.folding.enable&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt; with &lt;code&gt;previewLines: 8&lt;/code&gt;, long blocks show an approachable preview while keeping the full text available to Copy even before expanding:&lt;/p&gt;
&lt;div class="code-block" data-code-block&gt;&lt;div class="code-block-full" id="code-block-2de68e5680fab25f7e19e6cbe027901d-0"&gt;&lt;div class="highlight" title="hugo.yaml"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;module&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;imports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;github.com/hugo-toha/toha/v4&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;home&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;layout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;portfolio&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;features&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;componentsDesign&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;portfolio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;modern&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;navigation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;bar&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;hero&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;photo&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;search&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;codeBlock&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;copyButton&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;folding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;enable&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;previewLines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;script type="application/json" class="code-block-data"&gt;{"copyButton":true,"expanded":false,"labels":{"code":"Code","copied":"Copied!","copy":"Copy","copyError":"Copy failed. Try again.","showAll":"Show all {count} lines","showLess":"Show fewer lines"},"language":"yaml","preview":"","source":"module:\n imports:\n - path: github.com/hugo-toha/toha/v4\n\nparams:\n home:\n layout: portfolio\n features:\n componentsDesign:\n enable: true\n portfolio:\n enable: true\n modern:\n enable: true\n navigation: bar\n hero:\n style: photo\n search:\n enable: true\n codeBlock:\n copyButton:\n enable: true\n folding:\n enable: true\n previewLines: 8\n","title":"hugo.yaml"}&lt;/script&gt;&lt;/div&gt;&lt;h2 id="initially-expanded-with-line-numbers--custom-limit"&gt;Initially expanded with line numbers &amp;amp; custom limit&lt;/h2&gt;
&lt;p&gt;Use fence attributes like &lt;code&gt;title=&amp;quot;...&amp;quot;&lt;/code&gt;, &lt;code&gt;data-expand=true&lt;/code&gt;, &lt;code&gt;data-max-lines=5&lt;/code&gt;, and &lt;code&gt;linenos=inline&lt;/code&gt; to customize presentation on specific examples:&lt;/p&gt;</description></item><item><title>Modern Components, Callouts, and Responsive Images</title><link>https://portfolio.hugo-themes.com/posts/components-and-callouts/</link><pubDate>Sat, 24 Oct 2026 11:30:00 +0600</pubDate><guid>https://portfolio.hugo-themes.com/posts/components-and-callouts/</guid><description>&lt;p&gt;Enabled modern blog pages unlock Toha&amp;rsquo;s semantic component shortcodes alongside classic theme shortcodes, sharing exact visual tokens across light and dark modes.&lt;/p&gt;
&lt;h2 id="callouts--legacy-alert-compatibility"&gt;Callouts &amp;amp; legacy alert compatibility&lt;/h2&gt;
&lt;p&gt;Modern callouts communicate status clearly without heavy visual noise. Use &lt;code&gt;{{&amp;lt; callout &amp;gt;}}&lt;/code&gt; with &lt;code&gt;info&lt;/code&gt;, &lt;code&gt;success&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt;, or &lt;code&gt;danger&lt;/code&gt; tones, or pair them with inline &lt;code&gt;badge&lt;/code&gt; chips: &lt;span class="not-prose inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium border-primary/20 bg-primary/10 text-link"&gt;Modern UI&lt;/span&gt;
&lt;span class="not-prose inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium border-border bg-muted text-muted-foreground"&gt;Zero Bootstrap&lt;/span&gt;
.&lt;/p&gt;</description></item><item><title>Welcome to the Modern Blog</title><link>https://portfolio.hugo-themes.com/posts/introduction/</link><pubDate>Thu, 01 Oct 2026 09:00:00 +0600</pubDate><guid>https://portfolio.hugo-themes.com/posts/introduction/</guid><description>&lt;p&gt;Welcome to John Doe&amp;rsquo;s engineering journal! When the modern portfolio layout is enabled, the blog archive and reading pages share the same semantic theme tokens, crisp typography, and automatic light/dark palette without mixing legacy stylesheets.&lt;/p&gt;
&lt;h2 id="designed-to-read-alongside-your-work"&gt;Designed to read alongside your work&lt;/h2&gt;
&lt;p&gt;Short introductory notes can turn off the right-hand outline using &lt;code&gt;enableTOC: false&lt;/code&gt;, keeping the reader focused on a clean, single-column flow while still showing author attribution from &lt;code&gt;author.yaml&lt;/code&gt;, estimated reading time, tags, series context, and next-step links below.&lt;/p&gt;</description></item></channel></rss>