Skip to content

Commit

Permalink
up responsive css in menu + add count of countries in homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lemeur committed Apr 5, 2024
1 parent 85600e8 commit 6924af7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
15 changes: 14 additions & 1 deletion assets/sass/_custom.sass
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,17 @@

.button_tally
padding: 0.2rem 0.75rem
line-height: 1
line-height: 1

@media screen and (max-width: 769px)
.jsopen .nav_body
transform: translateX(55vw)!important
justify-content: flex-start


@media screen and (max-width: 769px)
.nav_body_left
transform: translateX(100vw)!important
.follow
position: absolute
bottom: 100px
11 changes: 10 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@
{{- $image := $scratch.Get "image" }}
{{- $bg := absLangURL (path.Join "images" $image) }}
{{ $taxonomyObject := .Site.Taxonomies.active }}
{{ $uniqueCountries := slice }}
{{ range .Site.RegularPages }}
{{ $pageCountries := .Params.geographies }}
{{ range $pageCountries }}
{{ if not (in $uniqueCountries .) }}
{{ $uniqueCountries = $uniqueCountries | append . }}
{{ end }}
{{ end }}
{{ end }}
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
<article class="post_content">
<h2 class="membersCounter">Current Members: <strong>{{ $taxonomyObject.Count "true" }}</strong></h2>
<h2 class="membersCounter"><strong>{{ $taxonomyObject.Count "true" }}</strong> members in <strong>{{ len $uniqueCountries }}</strong> countries</h2>
<div class="post_body">
{{- .Content }}

Expand Down

0 comments on commit 6924af7

Please sign in to comment.