Skip to content

Commit

Permalink
Fix layout for smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 committed May 22, 2023
1 parent e2ebc1f commit 099cf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/dashboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ $currentPage := path.Split (path.Clean .RelPermalink) }}
{{ $homepage_dashboards := slice "post_covid" "vaccines" "wastewater" }}

<div class="row row-cols-2 row-cols-lg-3 g-2 {{ if not $displayed_in_homepage }}g-lg-3{{ end }}">
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 g-2 {{ if not $displayed_in_homepage }}g-lg-3{{ end }}">
{{ range .Site.Menus.dashboard_menu }}
{{ if or
(eq $currentPage.File "dashboards")
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/highlights.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ $highlights = first 3 $highlights }}
{{ end }}

<div class="row row-cols-2 row-cols-lg-3 g-2 {{ if not $displayedInHome }}g-lg-3{{ end }}">
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 g-2 {{ if not $displayedInHome }}g-lg-3{{ end }}">
{{ range $highlights }}
<!-- If its a topics highlight page, display only relavant DH-->
{{ if or (ne $currentPage.Dir "/highlights/topics/") (in (apply .Params.highlights_topics "urlize" ".") $currentPage.File) }}
Expand Down

0 comments on commit 099cf64

Please sign in to comment.