fix social icons

parent ca5d0bbc
......@@ -125,17 +125,29 @@ copyright2URL = "#you-are-already-here"
############################# social icons ##########################
[[params.social]]
icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons
icon = "/images/social/facebook.png"
link = "https://facebook.com/parrotsec"
[[params.social]]
icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons
icon = "/images/social/twitter.png"
link = "https://twitter.com/parrotsec"
[[params.social]]
icon = "ti-instagram" # themify icon pack : https://themify.me/themify-icons
icon = "/images/social/instagram.png"
link = "https://www.instagram.com/parrotproject/"
[[params.social]]
icon = "/images/social/telegram.png"
link = "https://t.me/parrotproject"
[[params.social]]
icon = "/images/social/wikipedia.png"
link = "https://en.wikipedia.org/wiki/Parrot_OS"
[[params.social]]
icon = "/images/social/distrowatch.png"
link = "https://distrowatch.com/parrot"
################################ English Language ########################
[Languages.en]
......
......@@ -8,7 +8,7 @@
<div class="social-icon">
<ul class="list-inline">
{{ range .Site.Params.social }}
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
<li class="list-inline-item center-text"><a target="_blank" href="{{ .link | safeURL }}"><img src="{{ .icon }}" width="70px" height="70px" class="img-fluid" alt="" /></a></li>
{{ end }}
</ul>
</div>
......@@ -41,23 +41,4 @@
{{ "<!-- Main Script -->" | safeHTML }}
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>
{{ "<!-- google analitycs -->" | safeHTML }}
{{ with .Site.Params.google_analitycs_id }}
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
</script>
{{ end }}
<script src="{{ $script.Permalink }}"></script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment