Commit cd1c522
authored
Clean up miniview and search templates (#659)
* Add miniview and search template for Article and Event pages.
* Use miniview for Article Index and Event Index pages, for consistency.
* Make miniviews renderings more consistent throughout the site.
* Uniform height of cards when rendering miniviews in a row, e.g.
related pages or latest pages.
* Fix heading levels in miniviews and search templates to fix
accessibility warnings.
* Miniviews now have two new variables to control heading size and card
styling, which can be passed in: `{% include .. with h="h3" and
miniview_css_class="my-class-here" %}`
Fixes #578, #647, and #6601 parent 70af626 commit cd1c522
16 files changed
Lines changed: 105 additions & 57 deletions
File tree
- coderedcms
- models
- static/coderedcms
- css
- scss
- templates/coderedcms
- blocks
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
| |||
890 | 892 | | |
891 | 893 | | |
892 | 894 | | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
893 | 899 | | |
894 | 900 | | |
895 | 901 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments