From a2e8bc72273f245d2e4a93ef4947f5e52a0613a1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 9 Jan 2021 21:48:09 +0200 Subject: [PATCH] Generate font page with Hugo --- .fantasticonrc.js | 2 +- build/font/html.hbs | 53 - docs/content/font.md | 5 + docs/layouts/_default/404.html | 4 +- docs/layouts/_default/font.html | 27 + docs/layouts/_default/home.html | 6 +- docs/layouts/_default/list.html | 2 +- docs/layouts/_default/single.html | 2 +- docs/layouts/icons/single.html | 4 +- docs/layouts/partials/icons.html | 19 +- docs/layouts/partials/scripts.html | 2 +- font/index.html | 5107 ---------------------------- 12 files changed, 54 insertions(+), 5179 deletions(-) delete mode 100644 build/font/html.hbs create mode 100644 docs/content/font.md create mode 100644 docs/layouts/_default/font.html delete mode 100644 font/index.html diff --git a/.fantasticonrc.js b/.fantasticonrc.js index de0603af91..e3c0a07e67 100644 --- a/.fantasticonrc.js +++ b/.fantasticonrc.js @@ -2,7 +2,7 @@ module.exports = { inputDir: './icons', // (required) outputDir: './font', // (required) fontTypes: ['woff2', 'woff'], - assetTypes: ['css', 'json', 'html'], + assetTypes: ['css', 'json'], name: 'bootstrap-icons', prefix: 'bi', selector: '.bi', diff --git a/build/font/html.hbs b/build/font/html.hbs deleted file mode 100644 index 0639a3a43a..0000000000 --- a/build/font/html.hbs +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {{ name }} - - - - - - - - -

{{ name }}

- -
- {{# each assets }} -
- <{{ ../tag }} class="{{ ../prefix }} {{ ../prefix }}-{{ @key }}"> -
{{ @key }}
-
- {{/ each }} -
- - - diff --git a/docs/content/font.md b/docs/content/font.md new file mode 100644 index 0000000000..53f572357a --- /dev/null +++ b/docs/content/font.md @@ -0,0 +1,5 @@ +--- +title: Bootstrap Icons Font +description: TBF +layout: font +--- diff --git a/docs/layouts/_default/404.html b/docs/layouts/_default/404.html index ec62ee3f6e..d24fe755c6 100644 --- a/docs/layouts/_default/404.html +++ b/docs/layouts/_default/404.html @@ -5,12 +5,12 @@ {{ partialCached "skippy" . }} - {{ partialCached "navbar" . }} + {{ partialCached "navbar" . "404" }}
{{ .Content }}
- {{- partialCached "scripts" . .IsHome }} + {{- partialCached "scripts" . "404" }} diff --git a/docs/layouts/_default/font.html b/docs/layouts/_default/font.html new file mode 100644 index 0000000000..5b5752d415 --- /dev/null +++ b/docs/layouts/_default/font.html @@ -0,0 +1,27 @@ + + + + {{ partial "header" . }} + + + + + {{ partialCached "skippy" . }} + {{ partialCached "navbar" . "fonts" }} + +
+ + {{ partialCached "icons" . "fonts" }} + + {{ .Content }} +
+ + {{- partialCached "footer" . }} + {{- partialCached "scripts" . "fonts" }} + + diff --git a/docs/layouts/_default/home.html b/docs/layouts/_default/home.html index 8c7dbd8f2a..34c2c10151 100644 --- a/docs/layouts/_default/home.html +++ b/docs/layouts/_default/home.html @@ -5,16 +5,16 @@ {{ partialCached "skippy" . }} - {{ partialCached "navbar" . }} + {{ partialCached "navbar" . "home" }} {{ partialCached "hero" . }}
- {{ partial "icons" . }} + {{ partialCached "icons" . "home" }} {{ .Content }}
{{- partialCached "footer" . }} - {{- partialCached "scripts" . .IsHome }} + {{- partialCached "scripts" . "home" }} diff --git a/docs/layouts/_default/list.html b/docs/layouts/_default/list.html index 4590a92263..c116636447 100644 --- a/docs/layouts/_default/list.html +++ b/docs/layouts/_default/list.html @@ -5,7 +5,7 @@ {{ partialCached "skippy" . }} - {{ partialCached "navbar" . }} + {{ partialCached "navbar" . "list" }} {{ partialCached "hero" . }}
diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index 8229ee9312..0a8b770ef9 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -5,7 +5,7 @@ {{ partialCached "skippy" . }} - {{ partialCached "navbar" . }} + {{ partialCached "navbar" . "single" }} {{ partialCached "hero" . }}
diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 6297cda57f..8500dfdc74 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -5,7 +5,7 @@ {{ partialCached "skippy" . }} - {{ partial "navbar" . }} + {{ partial "navbar" . "single" }}
{{- partialCached "footer" . }} - {{- partialCached "scripts" . .IsHome }} + {{- partialCached "scripts" . "single" }} diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index 4d7a55da9d..d11200d4b7 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -7,21 +7,24 @@

Icons

diff --git a/docs/layouts/partials/scripts.html b/docs/layouts/partials/scripts.html index 201be1daa3..9ba7aa5392 100644 --- a/docs/layouts/partials/scripts.html +++ b/docs/layouts/partials/scripts.html @@ -1,5 +1,5 @@ -{{- if .IsHome }} +{{- if or .IsHome (eq .Page.Layout "font") }}