From bd8e03ba6113f544194ae5de7a098a1c6973d681 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 28 Sep 2020 16:12:52 +0200 Subject: [PATCH 1/3] fix(rss): remove featured image width height attr Throws error when featured image is not found inside page bundle. closes https://github.com/CaiJimmy/hugo-theme-stack/issues/20 --- layouts/rss.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/rss.xml b/layouts/rss.xml index 7ca03dd..178f997 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -34,9 +34,9 @@ {{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}} {{- if $image.exists -}} - {{ "<" | html }}img src="{{ $image.permalink | absURL }}" width="{{ $image.resource.Width }}" height="{{ $image.resource.Height }}" alt="Featured image of post {{ .Title }}" {{ "/>" | html}} + {{ "<" | html }}img src="{{ $image.permalink | absURL }}" alt="Featured image of post {{ .Title }}" {{ "/>" | html}} {{- end -}}{{ $content }} {{ end }} - \ No newline at end of file + From f92fb41fd73b15ad840f9258f59e9487e7d847f2 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 2 Oct 2020 00:35:13 +0200 Subject: [PATCH 2/3] doc: update theme.toml --- theme.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme.toml b/theme.toml index a17c4c9..82dbc48 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ name = "Stack" license = "GPL-3.0-only" licenselink = "https://github.com/CaiJimmy/hugo-theme-stack/blob/master/LICENSE" description = "Card-style Hugo theme designed for bloggers" -homepage = "https://blog.jimmycai.com/p/hugo-theme-stack" +homepage = "https://theme-stack.jimmycai.com" tags = [ "blog", "responsive", @@ -24,4 +24,4 @@ min_version = "0.74.0" [author] name = "Jimmy Cai" - homepage = "https://jimmycai.com" \ No newline at end of file + homepage = "https://jimmycai.com" From c2e8d7fc5bd635e5d7134bf41b4d348db71afd87 Mon Sep 17 00:00:00 2001 From: ress <48500247+ress997@users.noreply.github.com> Date: Sun, 4 Oct 2020 05:24:28 +0900 Subject: [PATCH 3/3] fix(config.toml): typo Licenced -> Licensed (#22) --- exampleSite/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cc83511..97df7bb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,7 +25,7 @@ DefaultContentLanguage = "en" # Theme i18n support math = false [params.article.license] enabled = true - default = "Licenced under CC BY-NC-SA 4.0" + default = "Licensed under CC BY-NC-SA 4.0" [params.comments] enabled = true # Only Disqus is available so far @@ -91,4 +91,4 @@ DefaultContentLanguage = "en" # Theme i18n support [markup] [markup.highlight] - noClasses = false \ No newline at end of file + noClasses = false