Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2021-06-17 13:18:18 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2021-06-17 13:18:18 +0300
commitd55cc982dabc356d4cc909408c499664ec0b87bc (patch)
tree3c4051141ff825a6f28afd5161a3bca4d06e4dc5
parentb3560b9aaae4b78ef9f34b5bd9eb14dba20f2262 (diff)
fix errors on theme building
-rw-r--r--README.md13
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSiteMultilingual/config.toml4
-rw-r--r--layouts/partials/head.html16
4 files changed, 20 insertions, 17 deletions
diff --git a/README.md b/README.md
index 94c0021..b5aa30d 100644
--- a/README.md
+++ b/README.md
@@ -67,12 +67,13 @@ params:
email: mail@example.org # used for microformats
avatar: "/images/me.png" # used for microformats
description: ""
- images:
- - images/og-featured.png # relative path to "static" directory
- customCSS:
- - css/my.css # relative path to "assets" directory (don't use main.css filename)
- customJS:
- - js/main.js # relative path to "assets" directory
+ # Uncomment if you need this
+ # images:
+ # - images/og-featured.png # relative path to "static" directory
+ # customCSS:
+ # - css/my.css # relative path to "assets" directory (don't use main.css filename)
+ # customJS:
+ # - js/main.js # relative path to "assets" directory
dateFormat: "2006-01-02"
paginationSinglePost: true
style: light-without-switcher
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 3f5ba9f..e98c0bb 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -29,8 +29,8 @@ utterancesLabel = "" # optional
name = "gohugoio"
[[params.social]]
- id = "telegram1"
- url = "https://ya.ru"
+ id = "docs"
+ url = "https://gohugo.io/documentation/"
[menu]
diff --git a/exampleSiteMultilingual/config.toml b/exampleSiteMultilingual/config.toml
index 6ef8b6a..756cfca 100644
--- a/exampleSiteMultilingual/config.toml
+++ b/exampleSiteMultilingual/config.toml
@@ -30,8 +30,8 @@ utterancesLabel = "" # optional
name = "gohugoio"
[[params.social]]
- id = "telegram1"
- url = "https://ya.ru"
+ id = "docs"
+ url = "https://gohugo.io/documentation/"
[languages.en]
languageName = "English"
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index adf4c3a..5aaa6cd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -23,14 +23,16 @@
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
-{{ if isset .Site.Params.webmentions "login" }}
- <link rel="webmention" href="https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" />
- {{ if eq .Site.Params.webmentions.pingback true }}
- <link rel="pingback" href="https://webmention.io/{{.Site.Params.webmentions.login}}/xmlrpc" />
+{{ if isset .Site.Params "webmentions" }}
+ {{ if isset .Site.Params.webmentions "login" }}
+ <link rel="webmention" href="https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" />
+ {{ if eq .Site.Params.webmentions.pingback true }}
+ <link rel="pingback" href="https://webmention.io/{{.Site.Params.webmentions.login}}/xmlrpc" />
+ {{ end }}
+ {{ end }}
+ {{ if isset .Site.Params.webmentions "url" }}
+ <link rel="webmention" href="{{.Site.Params.webmentions.url}}" />
{{ end }}
-{{ end }}
-{{ if isset .Site.Params.webmentions "url" }}
- <link rel="webmention" href="{{.Site.Params.webmentions.url}}" />
{{ end }}
<!-- Article tags -->