diff --git a/.fantasticonrc.js b/.fantasticonrc.js index 969ee83561..7b56cac052 100644 --- a/.fantasticonrc.js +++ b/.fantasticonrc.js @@ -4,7 +4,7 @@ module.exports = { inputDir: './icons', // (required) outputDir: './font', // (required) fontTypes: ['woff2', 'woff'], - assetTypes: ['css', 'json', 'html'], + assetTypes: ['css', 'json'], name: 'bootstrap-icons', codepoints: codepoints, prefix: '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..5b53447df7 --- /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 0000000000..fa44bfcb56 --- /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 27a4f6f7bd..ffb4d38fc7 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 3e9ef278de..bdd8fd48ff 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -13,9 +13,13 @@

Icons

  • + {{ if $.IsHome -}} + {{- else -}} + + {{- end }}
    {{ $filename }}
    diff --git a/docs/layouts/partials/scripts.html b/docs/layouts/partials/scripts.html index 7adb470a90..e6ae2b2e60 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") }}