<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Engineering on John's Blog</title><link>https://portfolio.hugo-themes.com/categories/engineering/</link><description>Recent content in Engineering on John's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 15 Nov 2026 15:00:00 +0600</lastBuildDate><atom:link href="https://portfolio.hugo-themes.com/categories/engineering/rss.xml" rel="self" type="application/rss+xml"/><item><title>Series Navigation, Scoped Search, and Archive Pagination</title><link>https://portfolio.hugo-themes.com/posts/series-search-and-pagination/</link><pubDate>Sun, 15 Nov 2026 15:00:00 +0600</pubDate><guid>https://portfolio.hugo-themes.com/posts/series-search-and-pagination/</guid><description>&lt;p&gt;Reading a portfolio blog should feel effortless whether a visitor arrives from the homepage &lt;strong&gt;Featured Posts&lt;/strong&gt;, clicks a topic chip, searches by keyword, or reads straight through a multi-part tutorial series.&lt;/p&gt;
&lt;h2 id="multi-part-series--reading-sequences"&gt;Multi-part series &amp;amp; reading sequences&lt;/h2&gt;
&lt;p&gt;Adding &lt;code&gt;series&lt;/code&gt; and &lt;code&gt;series_weight&lt;/code&gt; to post front matter powers three coordinated features across the modern blog layout:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Archive Series cards:&lt;/strong&gt; On the first page of &lt;code&gt;/posts/&lt;/code&gt;, readers see curated series cards with post counts and direct &lt;strong&gt;Start series&lt;/strong&gt; entry points.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;In-article series box:&lt;/strong&gt; Each post inside a multi-part series displays the numbered sequence above its outline so readers can jump cleanly between installments.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Previous / Next page navigation:&lt;/strong&gt; At the end of each installment, footer navigation links seamlessly to the previous and next parts of the series.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="topic-filtering--paginated-archives"&gt;Topic filtering &amp;amp; paginated archives&lt;/h2&gt;
&lt;p&gt;The archive combines a highlight strip of recent posts with a scannable table of all posts showing publish dates, reading times, and tag chips. Setting &lt;code&gt;params.features.pagination.maxPostsPerPage&lt;/code&gt; (set to &lt;code&gt;4&lt;/code&gt; in this example site) keeps archive pages crisp while preserving ordinary, crawlable page links (&lt;code&gt;/posts/page/2/&lt;/code&gt;).&lt;/p&gt;</description></item><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></channel></rss>