{"id":10468,"date":"2024-02-19T15:14:50","date_gmt":"2024-02-19T15:14:50","guid":{"rendered":"https:\/\/davelevy.info\/wiki\/?p=10468"},"modified":"2024-02-22T17:05:06","modified_gmt":"2024-02-22T17:05:06","slug":"hugo-introduction-theme-no-2","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/hugo-introduction-theme-no-2\/","title":{"rendered":"Hugo Introduction theme No 2"},"content":{"rendered":"\n<p>More adventures on the PI, I have lost my Hugo Markup for dlf.ddns.net; fortunately it is not a big site. There are no automatic reverse engineering tools and so I&#8217;ll have to do it the long way round. So this is version 4. I have a page <a href=\"https:\/\/davelevy.info\/wiki\/hugo\/\">called Hugo<\/a> on this site. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Version 4<\/h3>\n\n\n\n<p>I installed on Ubuntu and used apt to install it. This maybe missing extended functionality. <\/p>\n\n\n\n<p>And now, let&#8217;s restate some of the comments made on V3 on the older page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Version 3<\/h3>\n\n\n\n<p>I had another go, it seems I have forgotten a lot. The ananke theme has changed and is now very ugly.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/gohugo.io\/getting-started\/quick-start\/\">https:\/\/gohugo.io\/getting-started\/quick-start\/<\/a>, from download to publication; remains useful<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/victoriadrake\/hugo-theme-introduction\">hugo theme: introduction<\/a>, this is the theme I chose to use, which I found in Hugo\u2019s directory<\/li>\n<\/ol>\n\n\n\n<p>And generically<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A <a href=\"https:\/\/www.jakewiesler.com\/blog\/hugo-directory-structure\">hint <\/a>on directory structures by Jake Wiesler, these are complicated by the introduction author&#8217;s use of an example site within the themes directory, we don&#8217;t want to be doing with that this time.<\/li>\n\n\n\n<li>A note on <a href=\"https:\/\/merrimanlab.github.io\/post\/2020-10-15-making-posts\/\">making posts<\/a> from Meriman Labs<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Notes on Markdown<\/h3>\n\n\n\n<p>Draft needs to be false to be pushed into the local server<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Rengineering<\/h3>\n\n\n\n<p>There is no re-engineering tool, why would there be? Everyone backs up their servers don&#8217;t they?<\/p>\n\n\n\n<p>However, there is a tool, <a href=\"https:\/\/pandoc.org\/index.html\">PanDoc<\/a> which converts various formats. They say, &#8220;If you need to convert files from one markup format into another, pandoc is your swiss-army knife.&#8221; It goes on ubuntu via apt. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hugo arguments<\/h3>\n\n\n\n<p>To create a publication candidate, use <code>hugo <\/code>with no parameters unless the -t parameter is needed to force a theme. It creates a folder <em>public<\/em> in the folder containing the config.toml. The target public folder needs to be empty. I run <em>hugo<\/em> from .\/<em>examplesite<\/em>. There is a bug on the 404 page.<\/p>\n\n\n\n<p>I need to run <em>hugo new <\/em>from<em> .\/examplesite<\/em>&nbsp; specifying the name of the markdown file with a relative path. and reference to the theme folder e.g.<\/p>\n\n\n\n<p><em>hugo new ..\/content\/$lang\/blog\/${name}.md -t ..\/..<\/em><\/p>\n\n\n\n<p>The document&#8217;s suggest issuing the command from the site home directory and that new pages will be written into the content folder i.e. ..\/blog\/index.md becomes .\/content\/blog\/index.md<\/p>\n\n\n\n<p>Draft needs to be false to be pushed into the local server<\/p>\n","protected":false},"excerpt":{"rendered":"<p>More adventures on the PI, I have lost my Hugo Markup for dlf.ddns.net; fortunately it is not a big site. There are no automatic reverse engineering tools and so I&#8217;ll have to do it the long way round. So this is version 4. I have a page called Hugo on this site. Version 4 I&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10469,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[3],"tags":[1180,911,849],"class_list":["post-10468","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-hugo","tag-technology","tag-webdesign"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/111958798896382831","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2024\/02\/introduction-bundokim-unsplash-w1080.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/10468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=10468"}],"version-history":[{"count":3,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/10468\/revisions"}],"predecessor-version":[{"id":10528,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/10468\/revisions\/10528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/10469"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=10468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=10468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=10468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}