Hi!! This is the first time I am using Hugo and I am using Learn theme. I have only edited config.toml which I have shown below.
baseURL = “http://localhost:1313/”
languageCode = “en-us”
defaultLanguageCode = “en”
title = “Sci-Fi Route”
theme = “hugo-theme-learn-1.1.0”
defaultContentLanguageInSubdir = “true”
relativeurls = true
[outputs]
home = [ “HTML”, “RSS”, “JSON”]
[params]
description = “A Route to the world of Sci-Fi”
author = “Pervez”
showVisitedLinks = true
[Languages]
[Languages.en]
title = “Sci-Fi Route”
weight = 1
LanguageName = “English”
[Languages.fr]
title = “Route d’Sci-Fi”
weight = 2
LanguageName = “Français”
But on running “hugo server -D”, I am getting the error as below. Any suggestions plz ?
Building sites … WARNING: calling IsSet with unsupported type “invalid” () will always return false.
ERROR 2020/05/17 12:24:25 render of “taxonomyTerm” failed: “C:\Users\sharim raza\PycharmProjects\ServerlessWebApp\serverlesswebapp\themes\hugo-theme-learn-1.1.0\la
youts_default\list.html:6:16”: execute of template failed: template: _default/list.html:6:16: executing “_default/list.html” at <index .Site.Sections .Section>: e
rror calling index: cannot index slice/array with type string
Built in 126 ms
Error: Error building site: failed to render pages: render of “taxonomyTerm” failed: “C:\Users\sharim raza\PycharmProjects\ServerlessWebApp\serverlesswebapp\themes
\hugo-theme-learn-1.1.0\layouts_default\list.html:6:16”: execute of template failed: template: _default/list.html:6:16: executing “_default/list.html” at <index .
Site.Sections .Section>: error calling index: cannot index slice/array with type string