From d7dff6f020521dc0e46651f6f115394dfbf213cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Sat, 18 Nov 2023 01:05:42 +0100 Subject: [PATCH] Add style guide entry --- _style_guide/components/breadcrumbs.html | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 _style_guide/components/breadcrumbs.html diff --git a/_style_guide/components/breadcrumbs.html b/_style_guide/components/breadcrumbs.html new file mode 100644 index 000000000..64a08133d --- /dev/null +++ b/_style_guide/components/breadcrumbs.html @@ -0,0 +1,37 @@ +--- +title: Breadcrumbs +type: components +module: _includes/site/breadcrumbs.html + +examples: + community: + section: community + title: Foo Bar + url: /foo/bar + community_main: + section: community + title: Foo Bar + url: /community/ + archive: + section: archive + title: Foo Bar + url: /foo/bar + no_section: + title: Foo Bar + url: /foo/bar +--- +Basic +{% assign example = page.examples.community %} +{% include site/breadcrumbs.html page=example %} + +Section Main +{% assign example = page.examples.community_main %} +{% include site/breadcrumbs.html page=example %} + +Non-link Item +{% assign example = page.examples.archive %} +{% include site/breadcrumbs.html page=example %} + +No section +{% assign example = page.examples.no_section %} +{% include site/breadcrumbs.html page=example %}