mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Update list components
This commit is contained in:
parent
e2a3455162
commit
cc1eb4f9ad
@ -1,10 +1,8 @@
|
|||||||
<ul class="list links site__links--content" style="margin: 0">
|
<nav class="links site__links--content" style="margin: 0">
|
||||||
{{ range $.Site.Menus.links }}
|
{{ range $.Site.Menus.links }}
|
||||||
<li>
|
<a href="{{ .URL }}" rel="me">{{ .Name }}</a>
|
||||||
<a href="{{ .URL }}" rel="me">{{ .Name }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</nav>
|
||||||
<style>
|
<style>
|
||||||
.links {
|
.links {
|
||||||
--size: 1.5em;
|
--size: 1.5em;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- List all of the social media links -->
|
<!-- List all of the social media links -->
|
||||||
{{ with (index $.Site.Data "more-contentful").contacts }}
|
{{ with (index $.Site.Data "more-contentful").contacts }}
|
||||||
<ul class="list site__socials--content">
|
<nav class="site__socials--content">
|
||||||
{{ $useImage := index . "useImage" | default false }}
|
{{ $useImage := index . "useImage" | default false }}
|
||||||
|
|
||||||
{{ $links := sort .links "name" "asc" }}
|
{{ $links := sort .links "name" "asc" }}
|
||||||
@ -8,12 +8,10 @@
|
|||||||
|
|
||||||
{{- /* Render the link only to externally linked pages/files and those with >=0 weight. */ -}}
|
{{- /* Render the link only to externally linked pages/files and those with >=0 weight. */ -}}
|
||||||
{{ if (and (not .excludeInMenu) (eq (absLangURL .url) .url)) }}
|
{{ if (and (not .excludeInMenu) (eq (absLangURL .url) .url)) }}
|
||||||
<li>
|
|
||||||
<a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | absLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
|
<a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | absLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
|
||||||
{{- .name }}
|
{{- .name }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</ul>
|
</nav>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user