fix errors on theme building

This commit is contained in:
Dmitry Kolosov 2021-06-17 13:18:18 +03:00
parent b3560b9aaa
commit d55cc982da
4 changed files with 20 additions and 17 deletions

View File

@ -67,12 +67,13 @@ params:
email: mail@example.org # used for microformats email: mail@example.org # used for microformats
avatar: "/images/me.png" # used for microformats avatar: "/images/me.png" # used for microformats
description: "" description: ""
images: # Uncomment if you need this
- images/og-featured.png # relative path to "static" directory # images:
customCSS: # - images/og-featured.png # relative path to "static" directory
- css/my.css # relative path to "assets" directory (don't use main.css filename) # customCSS:
customJS: # - css/my.css # relative path to "assets" directory (don't use main.css filename)
- js/main.js # relative path to "assets" directory # customJS:
# - js/main.js # relative path to "assets" directory
dateFormat: "2006-01-02" dateFormat: "2006-01-02"
paginationSinglePost: true paginationSinglePost: true
style: light-without-switcher style: light-without-switcher

View File

@ -29,8 +29,8 @@ utterancesLabel = "" # optional
name = "gohugoio" name = "gohugoio"
[[params.social]] [[params.social]]
id = "telegram1" id = "docs"
url = "https://ya.ru" url = "https://gohugo.io/documentation/"
[menu] [menu]

View File

@ -30,8 +30,8 @@ utterancesLabel = "" # optional
name = "gohugoio" name = "gohugoio"
[[params.social]] [[params.social]]
id = "telegram1" id = "docs"
url = "https://ya.ru" url = "https://gohugo.io/documentation/"
[languages.en] [languages.en]
languageName = "English" languageName = "English"

View File

@ -23,6 +23,7 @@
{{ template "_internal/opengraph.html" . }} {{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ if isset .Site.Params "webmentions" }}
{{ if isset .Site.Params.webmentions "login" }} {{ if isset .Site.Params.webmentions "login" }}
<link rel="webmention" href="https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" /> <link rel="webmention" href="https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" />
{{ if eq .Site.Params.webmentions.pingback true }} {{ if eq .Site.Params.webmentions.pingback true }}
@ -32,6 +33,7 @@
{{ if isset .Site.Params.webmentions "url" }} {{ if isset .Site.Params.webmentions "url" }}
<link rel="webmention" href="{{.Site.Params.webmentions.url}}" /> <link rel="webmention" href="{{.Site.Params.webmentions.url}}" />
{{ end }} {{ end }}
{{ end }}
<!-- Article tags --> <!-- Article tags -->
<!-- <meta property="article:published_time" content=""> <!-- <meta property="article:published_time" content="">