From d6d16fc23c16f815e751c2c45a51329148e9defb Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 9 Jan 2021 21:48:09 +0200 Subject: Generate font page with Hugo --- .fantasticonrc.js | 2 +- build/font/html.hbs | 53 - docs/content/font.md | 5 + docs/layouts/_default/font.html | 27 + docs/layouts/_default/home.html | 2 +- docs/layouts/partials/icons.html | 4 + docs/layouts/partials/scripts.html | 2 +- font/index.html | 6719 ------------------------------------ 8 files changed, 39 insertions(+), 6775 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 6a561f176..e786ae087 100644 --- a/.fantasticonrc.js +++ b/.fantasticonrc.js @@ -6,7 +6,7 @@ module.exports = { inputDir: './icons', // (required) outputDir: './font', // (required) fontTypes: ['woff2', 'woff'], - assetTypes: ['css', 'scss', 'json', 'html'], + assetTypes: ['css', 'scss', 'json'], name: 'bootstrap-icons', codepoints, prefix: 'bi', diff --git a/build/font/html.hbs b/build/font/html.hbs deleted file mode 100644 index 0639a3a43..000000000 --- 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 000000000..5b53447df --- /dev/null +++ b/docs/content/font.md @@ -0,0 +1,5 @@ +--- +title: Font +description: TBF +layout: font +--- diff --git a/docs/layouts/_default/font.html b/docs/layouts/_default/font.html new file mode 100644 index 000000000..fa44bfcb5 --- /dev/null +++ b/docs/layouts/_default/font.html @@ -0,0 +1,27 @@ + + + + {{ partial "head" . }} + + + + + {{ partialCached "skippy" . }} + {{ partialCached "navbar" . }} + +
+ + {{ partialCached "icons" . "fonts" }} + + {{ .Content }} +
+ + {{- partialCached "footer" . }} + {{- partialCached "scripts" . "fonts" }} + + diff --git a/docs/layouts/_default/home.html b/docs/layouts/_default/home.html index 27a4f6f7b..ffb4d38fc 100644 --- a/docs/layouts/_default/home.html +++ b/docs/layouts/_default/home.html @@ -9,7 +9,7 @@ {{ partialCached "home/hero" . }}
- {{ partialCached "icons" . }} + {{ partialCached "icons" . "home" }} {{ .Content }}
diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index 3e9ef278d..bdd8fd48f 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -13,9 +13,13 @@
  • + {{ if $.IsHome -}} + {{- else -}} + + {{- end }}
    {{ $filename }}
    diff --git a/docs/layouts/partials/scripts.html b/docs/layouts/partials/scripts.html index ef11a9eb3..74de77bf1 100644 --- a/docs/layouts/partials/scripts.html +++ b/docs/layouts/partials/scripts.html @@ -1,4 +1,4 @@ -{{- if .IsHome }} +{{- if or .IsHome (eq .Page.Layout "font") }}