From d6b0f102410f25df5c97c640824a4184491559a8 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Mon, 26 Oct 2020 17:38:16 +0100 Subject: [PATCH 1/3] fix(exampleSite): remove Instagram shortcode ref https://github.com/gohugoio/hugo/issues/7866 closes https://github.com/CaiJimmy/hugo-theme-stack/issues/41 --- exampleSite/content/post/rich-content/index.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/exampleSite/content/post/rich-content/index.md b/exampleSite/content/post/rich-content/index.md index 5ff41d7..407c539 100644 --- a/exampleSite/content/post/rich-content/index.md +++ b/exampleSite/content/post/rich-content/index.md @@ -13,14 +13,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme --- -## Instagram Simple Shortcode - -{{< instagram_simple BGvuInzyFAe hidecaption >}} - -
- ---- - ## YouTube Privacy Enhanced Shortcode {{< youtube ZJthWmvUzzc >}} From b5645f018017aad99b2266659c53bb7950277c79 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 31 Oct 2020 23:24:58 +0100 Subject: [PATCH 2/3] refactor: use relative link for hyperlinks --- layouts/_default/archives.html | 2 +- layouts/partials/article-list/compact.html | 2 +- layouts/partials/article-list/default.html | 2 +- layouts/partials/article-list/tile.html | 2 +- layouts/partials/article/components/details.html | 6 +++--- layouts/partials/article/components/tags.html | 2 +- layouts/partials/sidebar/left.html | 2 +- layouts/partials/widget/tag-cloud.html | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 0304832..d2326ee 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -19,7 +19,7 @@ {{ range $filtered.GroupByDate "2006" }} {{ $id := lower (replace .Key " " "-") }}
-

{{ .Key }}

+

{{ .Key }}

{{ range .Pages }} {{ partial "article-list/compact" . }} diff --git a/layouts/partials/article-list/compact.html b/layouts/partials/article-list/compact.html index ddef710..cedef2a 100644 --- a/layouts/partials/article-list/compact.html +++ b/layouts/partials/article-list/compact.html @@ -1,5 +1,5 @@
- +

{{- .Title -}} diff --git a/layouts/partials/article-list/default.html b/layouts/partials/article-list/default.html index 106d8d6..aeb5bb1 100644 --- a/layouts/partials/article-list/default.html +++ b/layouts/partials/article-list/default.html @@ -2,7 +2,7 @@
{{ if $image.exists }}
- + {{ if $image.resource }} {{- $thumbnail := $image.resource.Fill "800x250" -}} {{- $thumbnailRetina := $image.resource.Fill "1600x500" -}} diff --git a/layouts/partials/article-list/tile.html b/layouts/partials/article-list/tile.html index 0edf2e5..f76f596 100644 --- a/layouts/partials/article-list/tile.html +++ b/layouts/partials/article-list/tile.html @@ -1,6 +1,6 @@ {{ $image := partialCached "helper/image" (dict "Context" .context "Type" .Type) .context.RelPermalink .Type }}
- + {{ if $image.exists }}
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 32d7f37..7650704 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -7,7 +7,7 @@ {{ if and $image.exists $image.resource }} {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}} {{- $20x := $imageRaw.Fill "20x20 smart" -}} - {{ else }} - {{ .LinkTitle }} + {{ .LinkTitle }} {{ end }} {{ end }} {{ end }}

- + {{- .Title -}}

diff --git a/layouts/partials/article/components/tags.html b/layouts/partials/article/components/tags.html index 3eab790..aae38b4 100644 --- a/layouts/partials/article/components/tags.html +++ b/layouts/partials/article/components/tags.html @@ -1,7 +1,7 @@ {{ if .Params.Tags }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index f1ab355..7ae24a4 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -31,7 +31,7 @@ {{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
  • - + {{ if .Pre }} {{ partial "helper/icon" .Pre }} {{ end }} diff --git a/layouts/partials/widget/tag-cloud.html b/layouts/partials/widget/tag-cloud.html index 8f201a5..39e7c9a 100644 --- a/layouts/partials/widget/tag-cloud.html +++ b/layouts/partials/widget/tag-cloud.html @@ -6,7 +6,7 @@
    {{ range first .Site.Params.widgets.tagCloud.limit .Site.Taxonomies.tags.ByCount }} - + {{ .Page.Title }} {{ end }} From be416830ad3eb51aa46e509d9461719d86a2e012 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 31 Oct 2020 23:36:16 +0100 Subject: [PATCH 3/3] feat: add support for custom SCSS closes https://github.com/CaiJimmy/hugo-theme-stack/issues/43 --- assets/scss/custom.scss | 1 + assets/scss/style.scss | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 assets/scss/custom.scss diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss new file mode 100644 index 0000000..61fa80f --- /dev/null +++ b/assets/scss/custom.scss @@ -0,0 +1 @@ +/* Place your custom SCSS in HUGO_SITE_FOLDER/assets/scss/custom.scss */ \ No newline at end of file diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 178c0ef..f16fdfd 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -24,6 +24,8 @@ @import "partials/layout/taxonomy.scss"; @import "partials/layout/404.scss"; +@import "custom.scss"; + a { text-decoration: none; color: var(--accent-color);