2024-03-17 16:57:34 +01:00
<!DOCTYPE html>
< html lang = "en" class = "main-background-image" >
< head >
2024-08-29 21:46:33 +02:00
< title > Hugo: Drafts Showing in Production | vodoraslo' s blog< / title >
2024-03-17 16:57:34 +01:00
< link rel = "canonical" href = "https://vodoraslo.xyz/" >
2024-08-29 21:46:33 +02:00
< link rel = 'alternate' type = 'application/rss+xml' title = "vodoraslo's blog RSS" href = '/index.xml' >
< link rel = 'stylesheet' type = 'text/css' href = '/style.css?v=1.0.0.12' >
2024-03-17 16:57:34 +01:00
< link rel = "icon" href = "/favicon.ico" >
< meta name = "description" content = "i had an issue with a draft page appearing on my site even after setting draft: true in the preamble
to fix it - build the website with
hugo --cleanDestinationDir
from https://discourse.gohugo.io/t/drafts-showing-in-deployed-hugo-site/19457"/>
2024-08-31 15:38:01 +02:00
< meta name = "keywords" content = "blog" >
2024-03-17 16:57:34 +01:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "robots" content = "index, follow" >
< meta charset = "utf-8" >
< / head >
< div class = "main-background-image" >
< body >
< main >
< header > < h1 style = "margin-top: 0%; padding-top: 0.5em;" id = "tag_Hugo: Drafts Showing in Production" > Hugo: Drafts Showing in Production< / h1 > < / header >
< hr style = "color:var(--strong);background-color: var(--strong); border-color: var(--strong);" > < article style = "padding: 0% 2.5% 0% 2.5%;" >
< div class = "breadcrumbs" >
< nav > < a href = "/" > vodoraslo< / a > / < a href = "/articles/" > Articles< / a > / Hugo: Drafts Showing in Production< / nav >
< / div >
2024-08-31 15:40:01 +02:00
< small > < em > < p style = "color: var(--muted_text);" > 作成日: < time datetime = "2024-03-17T17:53:39+03:00" style = "color: var(--muted_text);" > 2024年3月17日 (日)< / time > , 最終更新日: < time datetime = "2024-08-31T16:38:01+03:00" style = "color: var(--muted_text);" > 2024年8月31日 (土)< / time > < / p > < / em > < / small >
2024-03-17 16:57:34 +01:00
< div class = "post-content" > < p > i had an issue with a draft page appearing on my site even after setting < code > draft: true< / code > in the preamble< / p >
< p > to fix it - build the website with< / p >
< div class = "highlight" >
< pre tabindex = "0" > < code class = "language-" data-lang = "" > hugo --cleanDestinationDir< / code > < / pre >
< / div >
< p > from < a href = "https://discourse.gohugo.io/t/drafts-showing-in-deployed-hugo-site/19457" > https://discourse.gohugo.io/t/drafts-showing-in-deployed-hugo-site/19457< / a > < / p >
< div style = "text-align: right;" >
2024-08-30 22:27:10 +02:00
2024-03-17 16:57:34 +01:00
< / div > < / div >
< br >
< hr style = "color:var(--strong); margin: 0; background-color: var(--strong); border-color: var(--strong);" >
< div id = "nextprev" >
< a href = "/articles/blog/2024-goals/" > < div id = "prevart" > < i > Previous:< / i > < br > 2024 Goals and Aspirations< / div > < / a >
2024-08-31 15:38:01 +02:00
< a href = "/articles/blog/neater-footnotes-in-hugo-using-the-details-html-tag/" > < div id = "nextart" > < i > Next:< / i > < br > Neater Footnotes in Hugo Using the < details> HTML Tag< / div > < / a >
2024-03-17 16:57:34 +01:00
< / div >
2024-08-31 15:38:01 +02:00
< div > < div style = "clear:both" class = taglist >
Tags: [< a id = "tag_blog" href = "https://vodoraslo.xyz/tags/blog" > Blog< / a > ]
< / div > < br >
2024-03-17 16:57:34 +01:00
< / div >
< / article >
< / main >
< footer style = "padding-top: 0.5em;" >
2024-08-30 22:27:10 +02:00
2024-08-29 21:46:33 +02:00
< div style = "padding-bottom: 0.2em; display: inline-block;" > < a href = "https://vodoraslo.xyz/articles" title = "List of all my articles and writings." > 📜 Articles< / a > < strong > • < / strong > < a href = "https://vodoraslo.xyz/library" title = "My personal library." > 📚 Library< / a > < strong > • < / strong > < a href = "https://wiki.vodoraslo.xyz" title = "My personal Wiki page." > 🌐 Wiki< / a > < strong > • < / strong > < a href = "https://vodoraslo.xyz/index.xml" title = "Subscribe via RSS for updates." > 📰 RSS< / a > < hr > < / div >
2024-03-17 16:57:34 +01:00
2024-08-30 22:27:10 +02:00
2024-08-29 21:46:33 +02:00
< div style = "padding-bottom: 0.7em;" class = "index-links" > < a href = "https://vodoraslo.xyz/" title = "Return to the homepage." > 🏠 Homepage< / a > < / div >
2024-03-17 16:57:34 +01:00
< / footer >
< / body >
< / div >
< / html >