Site configuration
This is a bit of a mess.
1) This is doesn’t make any sense. Remove it.
publishDir = "/"
2) Remove this. You’ve already set the values under the taxonomies
key.
[Indexes]
tag = "tag"
category = "category"
3) You’ve placed the Author
key under the params
key, and you have made it a string instead of a map. Remove the author
key under params
, and create this in the root of your configuration.
[author]
name = "me"
thumbnail = ""
description = ""
4) You have two facebook
keys under params
. Remove one of them.
5) The theme expects a params.index
section in your site config (see theme docs). Add this, at a minimum, to the root of your site configuration.
[params.index]
6) Move language-specific custom parameters to lanuages.xx.params
.
before
[languages.en]
languageCode = "en-us"
languageName = "English"
title = "my site"
topline = "fuel"
[languages.fr]
languageCode = "fr-fr"
languageName = "Français"
title = "site"
topline = "carburant"
after
[languages.en]
languageCode = "en-us"
languageName = "English"
title = "my site"
[languages.en.params]
topline = "fuel"
[languages.fr]
languageCode = "fr-fr"
languageName = "Français"
title = "site"
[languages.fr.params]
topline = "carburant"
corrected site configuration
defaultContentLanguage = "en"
baseurl = "https://mysiteexample.com/"
copyright = "© 2007-2019 me"
title = "my site"
theme = "mediumish-gohugo-theme"
summaryLength = 25
paginate = 10
[author]
name = "me"
thumbnail = ""
description = ""
[permalinks]
archives = "/:year/:month/:title/"
post = "/:year/:month/:title/"
[taxonomies]
category = "category"
tag = "tag"
[params]
dateForm = "2006-01-02"
facebook = "me"
showRelatedPost = "True"
sidebarText = "gee whiz"
name = "me"
role = "some-guy"
avatar = "img/mylogo.jpg"
email = "me@example.com"
skype = "me_skype"
date_format = "2006-01-02"
sharing = true
[params.index]
[[languages.en.menu.main]]
name = "About"
url = "/about"
weight = 1
[[languages.en.menu.main]]
name = "legal/privacy info"
url = "/legal-info"
weight = 2
[[languages.en.menu.main]]
name = "RSS"
url = "/feed.xml"
weight = 3
[languages.en]
languageCode = "en-us"
languageName = "English"
title = "my site"
[languages.en.params]
topline = "fuel"
[languages.fr]
languageCode = "fr-fr"
languageName = "Français"
title = "site"
[languages.fr.params]
topline = "carburant"
[outputFormats.RSS]
baseName = "feed"
Templates
This is a bit of a mess too.
themes/mediumish-gohugo-theme/layouts/_default/single.html
Change this:
{{if isset .Site.Params.author "name"}}
{{if isset .Site.Params.author "thumbnail"}}
{{if isset .Site.Params.author "description"}}
to this:
{{ if isset .Site.Author "name" }}
{{ if isset .Site.Author "thumbnail" }}
{{ if isset .Site.Author "description" }}
Change this:
{{if isset .Site.Params "author"}}
{{if isset .Site.Params "author_thumb"}}
<span class="meta-footer-thumb">
<img class="author-thumb" src="{{ .Site.Params.author_thumb | urlize | relURL }}" alt="{{ .Site.Params.author }}">
</span>
<span class="author-meta">
<span class="post-name">{{ .Site.Params.author }}</a></span><br/>
{{end}}
{{end}}
to this:
{{ if isset .Site.Author "thumbnail" }}
<span class="meta-footer-thumb">
<img class="author-thumb" src="{{ .Site.Author.thumbnail | urlize | relURL }}" alt="{{ .Site.Author.name }}">
</span>
<span class="author-meta">
<span class="post-name">{{ .Site.Author.name }}</span>
</span>
<br>
{{ end }}
Home page
You don’t have a content listing on your home page because the home page template doesn’t have any code to list the content. You’ll need to add something like:
{{ with where site.RegularPages "Type" "post" }}
{{ range . }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
Create a content page for your home page, setting draft to false:
hugo new content _index.md
General
It looks like you may have been modifying the theme templates. Don’t do that. Override them instead.