</a></h2><p>I assume you are using Luke Smith’s theme - Lugo, if you are not, you’d have to find these files yourself (e.g. search using vscode).</p>
<h3id="setting-a-global-meta-description">Setting a global meta description <aclass="anchor"href="#setting-a-global-meta-description">
</span></span></span><spanstyle="display:flex;color:#c9c9c9"><spanstyle="color:#c9c9c9"><spanstyle="color:#c9c9c9"></span><spanstyle="color:#c9c9c9">description</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#56b6c2">=</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#82cc6a">"The global meta description of your website"</span><spanstyle="color:#c9c9c9">
</span></span></span><spanstyle="display:flex;color:#c9c9c9"><spanstyle="color:#c9c9c9"><spanstyle="color:#c9c9c9"></span><spanstyle="color:#bc74c4">description</span><spanstyle="color:#56b6c2">:</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#c9c9c9">The global meta description of your website</span><spanstyle="color:#c9c9c9">
</span></span></span></code></pre></div><p>It won’t work just yet because you have to update the <code>baseof.html</code> file.</p>
<divclass="highlight"><pretabindex="0"style="color:#c9c9c9color: #282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><codeclass="language-html"data-lang="html"><spanstyle="display:flex;color:#c9c9c9"><spanstyle="color:#c9c9c9"><spanstyle="color:#56b6c2"><</span><spanstyle="color:#bc74c4">meta</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#bc74c4">name</span><spanstyle="color:#bc74c4">=</span><spanstyle="color:#82cc6a">"description"</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#bc74c4">content</span><spanstyle="color:#bc74c4">=</span><spanstyle="color:#82cc6a">"{{ if .Page.Params.description }}{{ .Page.Params.description }}{{ else if .Summary}}{{ .Summary }}{{else}}{{ .Site.Params.description}}{{ end }}"</span><spanstyle="color:#56b6c2">/></span><spanstyle="color:#c9c9c9">
</span></span></span></code></pre></div><p>And now if you start your Hugo server locally with <code>hugo serve --noHTTPCache</code> and you right click on your page -> View Page Source -> Search for the meta description tag. It should match what you left in the config file.</p>
<h3id="replacing-the-global-description-with-a-custom-one">Replacing the global description with a custom one <aclass="anchor"href="#replacing-the-global-description-with-a-custom-one">
</span></span></span><spanstyle="display:flex;color:#c9c9c9"><spanstyle="color:#c9c9c9"><spanstyle="color:#c9c9c9"></span><spanstyle="color:#bc74c4">description</span><spanstyle="color:#56b6c2">:</span><spanstyle="color:#c9c9c9"></span><spanstyle="color:#82cc6a">"Your custom description for this page"</span><spanstyle="color:#c9c9c9">
</span></span></span></code></pre></div><p>Following these steps would guarantee that you have a meta description for everypage with the ability for creating a custom one whenever you need it!</p>
<ahref="https://vodoraslo.xyz/">Homepage</a><div><ahref="/index.xml"><imgsrc="/rss.svg"style="max-height:1.5em"alt="RSS Feed"title="Subscribe via RSS for updates."></a></div>