-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make mentoring cards more like others
- Loading branch information
1 parent
bd28a47
commit 5c7acb6
Showing
10 changed files
with
82 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
{ | ||
"img": "cotonou.png", | ||
"url": "https://www.google.com", | ||
"url": "", | ||
"statement": "I asked the speaker on that day to share her experience from choosing her topic to presenting! She ecstatically shared that and we immediately got volunteers for the next meetup", | ||
"year": "2019", | ||
"name": "Nadeja Sero", | ||
"chapter": "R-Ladies Cotonou", | ||
"twitter": "RLadiesCtn" | ||
"mentee": "Nadeja Sero", | ||
"mentor": "", | ||
"chapter": "R-Ladies Cotonou" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,41 @@ | ||
{{ define "main" }} | ||
<div class="container" id="mentoring"> | ||
<div class="row row-cols-sm-1 row-cols-md-2 row-cols-lg-3"> | ||
{{ $data := newScratch }} | ||
|
||
{{ .Content }} | ||
<div class="container expand-grid" id="rladies-blogs"> | ||
<ul class="justify-content-center full-width row row-xl-2 row-lg-3 row-md-4 row-sm-6 row-9"> | ||
{{ $mentoring := ( .Scratch.Get "mentoring" ) }} | ||
{{ range $name := $.Scratch.Get "ment" | shuffle }} | ||
{{ $m := index $mentoring $name }} | ||
{{ partial "mentoring/li.html" $m }} | ||
|
||
{{ $data.Set "content" "" }} | ||
{{ with $m.statement }} | ||
{{ $data.Set "content" "<blockquote>" }} | ||
{{ $data.Add "content" . }} | ||
{{ $data.Add "content" "</blockquote>" }} | ||
{{ end }} | ||
{{ with $m.url }} | ||
{{ $data.Add "content" (partial "funcs/read_more.html" . ) }} | ||
{{ end }} | ||
|
||
{{ with $m.mentee }} | ||
{{ $data.Set "foot" (printf "<p>Mentee: %s</p>" . ) }} | ||
{{ end }} | ||
{{ with $m.mentor }} | ||
{{ $data.Add "foot" (printf "<p>Mentor: %s</p>" . ) }} | ||
{{ end }} | ||
|
||
{{ $data.Set "img" "" }} | ||
{{ with resources.GetMatch (printf "mentoring/%s" $m.img ) }} | ||
{{ $img := . }} | ||
{{ $img := $img.Fit "400x800" }} | ||
{{ $data.Set "img" $img.Permalink }} | ||
{{ end }} | ||
|
||
{{ partial "funcs/card-expand.html" (dict "title" $m.chapter "img" ($data.Get "img") "size" "wide" "descr" ($data.Get "content") "category" $m.year "anim" false "foot" ( $data.Get "foot") "footcol" 2 )}} | ||
{{ end }} | ||
</div> | ||
</ul> | ||
</div> | ||
{{ end }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{ $data := newScratch }} | ||
|
||
{{ $data.Set "return" "<div class=\"read-more\">" }} | ||
{{ $data.Add "return" (printf "<a href=\"%s\" class=\"read-more-link\">" . ) }} | ||
{{ $data.Add "return" ( i18n "read_more" ) }} | ||
{{ $data.Add "return" "</a></div>" }} | ||
|
||
{{ return ( $data.Get "return") }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters