From 438bc2f2ca4cc2108378e02e0e5571e4a3bc60a2 Mon Sep 17 00:00:00 2001 From: zhixuan666 Date: Sat, 13 Mar 2021 21:21:55 +0900 Subject: [PATCH] Add bg ribbon --- exampleSite/config.yaml | 6 ++++++ layouts/partials/footer/components/script.html | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 67dcfc2..433ba3f 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -98,6 +98,12 @@ params: enabled: true content: enabled: true + + ribbon: + enabled: false + size: 300 + alpha: 0.6 + zindex: -1 ### Custom menu ### See https://docs.stack.jimmycai.com/configuration/custom-menu diff --git a/layouts/partials/footer/components/script.html b/layouts/partials/footer/components/script.html index 83522ff..145ddf3 100644 --- a/layouts/partials/footer/components/script.html +++ b/layouts/partials/footer/components/script.html @@ -3,4 +3,9 @@ {{- $opts := dict "minify" hugo.IsProduction -}} {{- $script := resources.Get "ts/main.ts" | js.Build $opts -}} - \ No newline at end of file + + +{{- if .Site.Params.ribbon.enabled -}} + +{{- end -}} \ No newline at end of file