mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 04:35:31 -04:00
fix some dark mode logic glitches & random clean up
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
{{ partialCached "page/footer" . }}
|
||||
{{ partial "scripts/bundle" . }}
|
||||
{{ partial "scripts/_bundle" . }}
|
||||
{{ partial "scripts/shortcodes" . }}
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
{{ partialCached "scripts/simple_analytics" . }}
|
||||
|
@@ -1,2 +0,0 @@
|
||||
<div id="commento"></div>
|
||||
<script async defer src="https://comments.jarv.is/js/commento.js"></script>
|
@@ -1,22 +0,0 @@
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ if ne .Params.comments false }}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="application/javascript">
|
||||
var disqus_config = function () {
|
||||
this.page.title = '{{ $.Title }}';
|
||||
this.page.url = '{{ $.Permalink }}';
|
||||
this.page.identifier = '{{ $.Permalink }}';
|
||||
};
|
||||
(function() {
|
||||
// Don't clutter Disqus account with localhost URLs.
|
||||
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) return;
|
||||
|
||||
var d = document, s = d.createElement('script'); s.async = true;
|
||||
s.src = 'https://' + {{ $.Site.DisqusShortname }} + '.disqus.com/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" rel="nofollow">comments powered by Disqus.</a></noscript>
|
||||
{{ end }}
|
||||
{{ end }}
|
@@ -1,13 +0,0 @@
|
||||
<script>
|
||||
(function(j, a, r, v, i, s){
|
||||
a[v]=a[v]||function(){
|
||||
(a[v].q=a[v].q||[]).push(arguments)
|
||||
};
|
||||
i=j.createElement('script'),
|
||||
s=j.getElementsByTagName('script')[0];
|
||||
i.async=1; i.src=r; i.id='fathom-script';
|
||||
s.parentNode.insertBefore(i,s)
|
||||
})(document, window, 'https://s.jarv.is/tracker.js', 'fathom');
|
||||
fathom('set', 'siteId', 'DYCXU');
|
||||
fathom('trackPageview');
|
||||
</script>
|
@@ -1,7 +1,7 @@
|
||||
{{ if .Site.Params.PiwikServer }}
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
var _paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
// tracker methods like "setCustomDimension" should be called before "trackPageView"
|
||||
_paq.push(['setRequestMethod', 'POST']);
|
||||
_paq.push(['setSecureCookie', true]);
|
||||
_paq.push(['trackPageView']);
|
||||
@@ -15,5 +15,5 @@
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="{{ .Site.Params.PiwikServer }}/send?idsite={{ .Site.Params.PiwikSiteId }}&rec={{ .Site.Params.PiwikSiteId }}" style="border:0;" alt="" /></p></noscript>
|
||||
<noscript><img src="{{ .Site.Params.PiwikServer }}/send?idsite={{ .Site.Params.PiwikSiteId }}&rec={{ .Site.Params.PiwikSiteId }}" alt=""></noscript>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user