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" }} - - {{ if eq .Site.Params.webmentions.pingback true }} - +{{ if isset .Site.Params "webmentions" }} + {{ if isset .Site.Params.webmentions "login" }} + + {{ if eq .Site.Params.webmentions.pingback true }} + + {{ end }} + {{ end }} + {{ if isset .Site.Params.webmentions "url" }} + {{ end }} -{{ end }} -{{ if isset .Site.Params.webmentions "url" }} - {{ end }}