<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ .Site.Title }}</title>
</head>
<body>
    {{ partial "header" . }}
    {{ .Content }}
    <ul>
        <!-- Iterate through the contact links. -->
        {{ range $index, $element := .Site.Data.social }}
            <li><a href="{{ $element }}">{{ $index }}</a></li>
        {{ end}}
    </ul>
    {{ partial "footer" . }}
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ .Site.Title }}</title>
</head>
<body>
    {{ partial "header" . }}
    {{ .Content }}
    {{ if .IsHome }}
        <ul>
            <!-- Iterate through the contact links. -->
            {{ range $index, $element := .Site.Data.social }}
                <li><a href="{{ $element }}">{{ $index }}</a></li>
            {{ end}}
        </ul>
    {{ end }}
    {{ partial "footer" . }}
</body>
</html>

Change when contact links show
Change when contact links show

The list of contact links should only show up on the home page.
