<footer>
    <div class="user-links">
        {{- $release_url := "" -}}
        {{- if .Site.Data.args.preliminary }}
            {{- $release_url = "https://github.com/istio/istio/releases/" -}}
        {{- else -}}
            {{- $release_url = printf "https://github.com/istio/istio/releases/tag/%s" .Site.Data.args.full_version -}}
        {{- end -}}

        {{- if not .Site.Data.args.archive_landing -}}
            <a class="channel" title='{{ printf (i18n "download_desc") (strings.TrimSuffix ".0" .Site.Data.args.full_version) }}' href="/docs/setup/getting-started/#download" aria-label="Download Istio">
                <span>download</span>
                {{ partial "icon.html" "download" }}
            </a>
        {{- end -}}

        <a class="channel" title='{{ i18n "discuss_istio_io_desc" }}' href="https://discuss.istio.io" aria-label="Istio discussion board">
            <span>discuss</span>
            {{ partial "icon.html" "discourse" }}
        </a>

        <a class="channel" title='{{ i18n "stackoverflow_desc" }}' href="https://stackoverflow.com/questions/tagged/istio" aria-label="Stack Overflow">
            <span>stack overflow</span>
            {{ partial "icon.html" "stackoverflow" }}
        </a>

        <a class="channel" title='{{ i18n "slack_desc" }}' href="https://istio.slack.com" aria-label="slack">
            <span>slack</span>
            {{ partial "icon.html" "slack" }}
        </a>

        <a class="channel" title='{{ i18n "twitter_desc" }}' href="https://twitter.com/IstioMesh" aria-label="Twitter">
            <span>twitter</span>
            {{ partial "icon.html" "twitter" }}
        </a>

        <div class="tag">
            {{ i18n "for_everyone" }}
        </div>
    </div>

    <div class="info">
        <p class="copyright">
            {{ $advisory := (i18n "advisory") }}
            {{ if ne $advisory "-" }}
                {{ printf "%s" $advisory }}<br>
            {{ end }}

            {{ if .Site.Data.args.archive_landing }}
                istio.io Archives
            {{ else }}
                {{ if .Site.Data.args.archive }}
                    {{ i18n "footer_istio_archive" }}
                {{ else if .Site.Data.args.preliminary }}
                    {{ i18n "footer_istio_preliminary" }}
                {{ else }}
                    {{ i18n "footer_istio" }}
                {{ end }}

                {{ strings.TrimSuffix ".0" .Site.Data.args.full_version }}
            {{ end -}}
            <br>&copy; {{ .Site.Data.args.copyright_year }} Istio Authors, <a href="https://policies.google.com/privacy">{{ i18n "footer_privacy_policy" }}</a><br>

            {{ if .Site.Data.args.archive }}
                {{ printf (i18n "footer_archived_on") (dateFormat (i18n "footer_date_format") .Site.Data.args.archive_date) }}
            {{ else }}
                {{ printf (i18n "footer_last_modified") (.Page.Lastmod.Format (i18n "footer_date_format")) }}
            {{ end }}
        </p>
    </div>

    <div class="dev-links">
        <a class="channel" title='{{ i18n "github_desc" }}' href="https://github.com/istio/community" aria-label="GitHub">
            <span>github</span>
            {{ partial "icon.html" "github" }}
        </a>

        <a class="channel" title='{{ i18n "team_drive_desc" }}' href="https://groups.google.com/forum/#!forum/istio-team-drive-access" aria-label="team drive">
            <span>drive</span>
            {{ partial "icon.html" "drive" }}
        </a>

        <a class="channel" title='{{ i18n "working_group_desc" }}' href="https://github.com/istio/community/blob/master/WORKING-GROUPS.md" aria-label="working groups">
            <span>working groups</span>
            {{ partial "icon.html" "working-groups" }}
        </a>

        <div class="tag">
            {{ i18n "for_developers" }}
        </div>
    </div>
</footer>
