diff --git a/content/development/index.rst b/content/development/index.rst index fd0b53e..c6e969c 100644 --- a/content/development/index.rst +++ b/content/development/index.rst @@ -1,9 +1,14 @@ + +:layout: category +:summary: Overview page for the development category. +:spotlight_uri: development/building-mischback-de +:spotlight_img: bar + ########### Development ########### .. toctree:: - :caption: Development :titlesonly: :glob: diff --git a/theme/mischback/_src/style/layouts/__layouts.scss b/theme/mischback/_src/style/layouts/__layouts.scss index 1759409..8545ed6 100644 --- a/theme/mischback/_src/style/layouts/__layouts.scss +++ b/theme/mischback/_src/style/layouts/__layouts.scss @@ -7,3 +7,8 @@ * text-based content. */ @import "article"; + +/* Specify styling for category overviews. This corresponds to the template + * ``theme/mischback/category.html``. + */ +@import "category"; diff --git a/theme/mischback/_src/style/layouts/category.scss b/theme/mischback/_src/style/layouts/category.scss new file mode 100644 index 0000000..f234f4a --- /dev/null +++ b/theme/mischback/_src/style/layouts/category.scss @@ -0,0 +1,31 @@ +/* This is the styling of the category overview pages. + * + * The corresponding template is ``theme/mischback/category.html``. + */ + +.main-category { + display: grid; + grid-template: + ". spotlight ." + ". cat_body ." + / 1fr calc(min($max-article-width, 100%)) 1fr; + + @include for-breakpoint(layout-single-column) { + grid-template: + ". spotlight spotlight spotlight ." + ". cat_body cat_body cat_body ." + / 1fr $max-article-width 3fr 20rem 1fr; + } + + .spotlight { + @include content-box-visual; + + grid-area: spotlight; + } + + .category-body { + @include content-box-visual; + + grid-area: cat_body; + } +} diff --git a/theme/mischback/article.html b/theme/mischback/article.html index f18d1c0..5ee2837 100644 --- a/theme/mischback/article.html +++ b/theme/mischback/article.html @@ -11,11 +11,11 @@ {% endif %} {{ body }} - {% if theme_show_breadcrumbs %} - - {% endif %} + {% if theme_show_breadcrumbs %} + + {% endif %}