Skip to content

Commit

Permalink
fix #223
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Sep 21, 2023
1 parent b277e86 commit 8d74ae6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion themes/hugo-rladies/layouts/partials/footer/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3 class="widget-title">{{ i18n "footer_followme_title" . | markdownify }}</h3>
<p class="follow-me-icons">
{{ range .Site.Params.social }}
{{ if .footer }}
{{ $some:= partial "funcs/some.html" (dict "type" .title "handle" .handle ) }}
{{ $some:= partial "funcs/social_media.html" (dict "type" .title "handle" .handle ) }}
<a href="{{ $some.url }}" target="_blank" {{ if .relme }} rel="me" {{ end }} >
<i class="{{ $some.fa }} fa-2x"></i>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ $dir.Set "title" .data.name }}
{{ $dir.Add "title" "<span><small>"}}
{{ with .data.social_media }}
{{ $some := partial "some.html" (dict "data" . ) }}
{{ $some := partial "social_media.html" (dict "data" . ) }}
{{ $dir.Add "title" $some }}
{{ end }}
{{ $dir.Add "title" "</small></span>"}}
Expand Down Expand Up @@ -59,4 +59,4 @@
{{ $foot := (partial "funcs/directory/foot.html" .data ) }}
{{ $shuffle := merge $interests $languages $location }}

{{ partial "funcs/card-expand.html" (dict "title" $title "subtitle" $subtitle "size" .size "img" ($dir.Get "img") "category" .data.honorific "descr" $descr "foot" $foot "footcol" 2 "id" .name "shuffle" $shuffle ) }}
{{ partial "funcs/card-expand.html" (dict "title" $title "subtitle" $subtitle "size" .size "img" ($dir.Get "img") "category" .data.honorific "descr" $descr "foot" $foot "footcol" 2 "id" .name "shuffle" $shuffle ) }}
6 changes: 3 additions & 3 deletions themes/hugo-rladies/layouts/partials/home/chapters.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2 class="section-title"><span>{{ .Title }}</span></h2>

<td class="text-right">
{{ with .social_media }}
{{ partial "some.html" (dict "data" . "relme" true) }}
{{ partial "social_media.html" (dict "data" . "relme" true) }}
{{ end }}
</td>
</tr>
Expand Down Expand Up @@ -111,7 +111,7 @@ <h2 class="section-title"><span>{{ .Title }}</span></h2>
{
"name": "{{ .name }}",
"members": "{{ .members }}",
"socials": {{ with .social_media }}{{ partial "some.html" . }}{{ end }},
"socials": {{ with .social_media }}{{ partial "social_media.html" . }}{{ end }},
"latitude": {{ .lat }},
"longitude": {{ .lon }},
"color": "#88398acc"
Expand All @@ -121,4 +121,4 @@ <h2 class="section-title"><span>{{ .Title }}</span></h2>
}); // end am4core.ready()
</script>



Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

{{ range $index, $v := first ($data.Get "range") ($data.Get "value" ) }}
{{ $selection := index ($data.Get "key") $index }}
{{ $some:= partial "funcs/some.html" (dict "type" $selection "handle" $v ) }}
{{ $some:= partial "funcs/social_media.html" (dict "type" $selection "handle" $v ) }}
<a title="{{$some.type}}: {{ $some.url}}" href="{{ $some.url }}" target="_blank" {{ if ( $data.Get "rel") }} rel="me" {{ end }} >
<i class="{{ $some.fa }}"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion themes/hugo-rladies/layouts/rladies-blogs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ $data.Add "descr" .name }}
{{ with .social_media }}
{{ range . }}
{{ $data.Add "descr" (partial "some.html" (dict "data" . "range" 3)) }}
{{ $data.Add "descr" (partial "social_media.html" (dict "data" . "range" 3)) }}
{{ end }}
{{ end }}
{{ $data.Add "descr" "</p>" }}
Expand Down

0 comments on commit 8d74ae6

Please sign in to comment.