# Build Websites with Hugo: page 52 Your Turn item 3

**URL:** <https://forum.devtalk.com/t/build-websites-with-hugo-page-52-your-turn-item-3/9978>\
**Category:** PragProg Customers\
**Tags:** question, book-build-websites-with-hugo\
**Created:** [28 May 2021 04:20 UTC](https://forum.devtalk.com/t/build-websites-with-hugo-page-52-your-turn-item-3/9978 "2021-05-28T04:20:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carpintonto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/carpintonto/32/2866_2.png) [@Carpintonto](https://forum.devtalk.com/u/Carpintonto)\
**Post date:** [28 May 2021 04:20 UTC](https://forum.devtalk.com/t/build-websites-with-hugo-page-52-your-turn-item-3/9978/1 "2021-05-28T04:20:04Z")

</div>

1. Incorporate the social media links into your site’s footer. Include the code in a partial.

I’m stuck and I think it’s a scoping issue.  
I pasted the ul block from contact.html into a partial I call social.html

```auto
<ul>
  {{ range .Site.Data.socialmedia.accounts }}
    <li><a href="{{ .url }}">{{ .name }}</a></li>
  {{ end }}
</ul>

```

social.html is getting picked up in the footer.html partial

```auto
<footer>
    <small>Copyright {{now.Format "2006"}} {{ .Site.Params.author }}. {{partial "social.html"}}</small>
</footer>

```

but is just rendering a blank unordered list in the output source

```auto
<footer> <small> Copyright 2021 Brian Hogan. <ul></ul> </small> </footer>

```

---

<div class="post-metadata">

**Author:** ![Carpintonto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/carpintonto/32/2866_2.png) [@Carpintonto](https://forum.devtalk.com/u/Carpintonto)\
**Post date:** [28 May 2021 05:46 UTC](https://forum.devtalk.com/t/build-websites-with-hugo-page-52-your-turn-item-3/9978/2 "2021-05-28T05:46:17Z")

</div>

I think I got it. Here’s footer.html

```auto
{{ $links := .Site.Data.socialmedia.accounts }}
<footer>
    <small>Copyright {{now.Format "2006"}} {{ .Site.Params.author }}. {{partial "social.html" (dict "links" $links)}}</small>
</footer>

```

Here’s social.html

```auto
<ul>
  {{range .links}}
  <li><a href="{{ .url }}">{{ .name }}</a></li>
  {{end}}
</ul>

```

I am curious how it might be done without the dict function.
