Skip to content

Commit

Permalink
fix homepage display
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lemeur committed Apr 4, 2024
1 parent dd283b4 commit 85600e8
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 39 deletions.
6 changes: 5 additions & 1 deletion assets/sass/_custom.sass
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@
border-radius: 1.5rem
width: fit-content
padding: 5px 15px
margin: 30px auto
margin: 30px auto

.button_tally
padding: 0.2rem 0.75rem
line-height: 1
3 changes: 0 additions & 3 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
title: "EDRlab members directory"
description: "Welcome to the EDRlab members directory!"
date: "2024-01-24"
author: "EDRLab"
# layout: about
tags: ["index"]
---

Expand Down
34 changes: 0 additions & 34 deletions content/index.md

This file was deleted.

3 changes: 2 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{{- partialCached "scripts/google/tag-manager" (dict "noscript" true) }}
{{- partial "header" . }}
<main>
{{- block "main" . }}{{ end }}
{{ block "main" . }}
{{ end }}
</main>

{{- partialCached "icons" . }}
Expand Down
47 changes: 47 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{- define "main" }}
{{- $s := .Site.Params }}
{{- $p := .Params }}
{{- $scratch := newScratch }}
{{- if isset $p "image" }}
{{- $scratch.Set "image" $p.image }}
{{- else }}
{{ $scratch.Set "image" $s.fallBackOgImage }}
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := absLangURL (path.Join "images" $image) }}
{{ $taxonomyObject := .Site.Taxonomies.active }}
<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>
<div class="post_body">
{{- .Content }}

</div>

{{- $showRelatedInArticle := true }}
{{- if eq $s.showRelatedInArticle false }}
{{- $showRelatedInArticle = false }}
{{- else if eq $p.showRelatedInArticle false }}
{{- $showRelatedInArticle = false }}
{{- end }}
{{- if ne $showRelatedInArticle false }}
{{- partial "related" . }}
{{- end }}

{{- $showComments := true }}
{{- if eq $s.comments false }}
{{- $showComments = false }}
{{- else if eq $p.comments false }}
{{- $showComments = false }}
{{- end }}
{{- if ne $showComments false }}
{{- partial "comments" . }}
{{- end }}
{{- partial "i18nlist" . }}

</article>
{{- if ( ne $p.sidebar false ) }}
{{- partial "sidebar" . }}
{{ end }}
</div>
{{- end }}

0 comments on commit 85600e8

Please sign in to comment.