update for performance

This commit is contained in:
gurusabarish
2020-10-12 09:26:15 +05:30
parent a7a01c2788
commit 9255ec161a
14 changed files with 83 additions and 103 deletions
+9 -29
View File
@@ -83,42 +83,22 @@
<!-- Tags -->
<div class="mb-4 p-5">
<div class="card">
<h5 class="card-header">Tags</h5>
<h5 class="card-header m-0">Tags</h5>
<div class=" card-body">
{{ if .Params.tags }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}"
class="btn btn-warning rounded-pill mb-2">{{ . }}</a>
{{end}}
{{end}}
{{ range $tags := .Params.tags }}
{{ with $.Site.GetPage (printf "/tags/%s" $tags) }}
<a href="{{ .RelPermalink }}" class="btn btn-info btn-rounded mb-2">{{ $tags }}</a>
{{ end }}
{{ end }}
{{ end }}
</div>
</a>
</div>
</div>
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function () { // DON'T EDIT BELOW THIS LINE
var d = document,
s = d.createElement('script');
s.src = '{{ .Site.Params.disqus }}/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
{{ template "_internal/disqus.html" . }}
</div>
</div>