Browse Source

Fix analytics

master
Daniel Flanagan 5 months ago
parent
commit
b735229725
Signed by: lytedev GPG Key ID: 5B2020A0F9921EF4
5 changed files with 41 additions and 11 deletions
  1. +0
    -5
      content/about.md
  2. +5
    -1
      content/contact.md
  3. +31
    -4
      layouts/index.html
  4. +1
    -0
      themes/lyte/layouts/_default/baseof.html
  5. +4
    -1
      themes/lyte/static/global.js

+ 0
- 5
content/about.md View File

@ -58,8 +58,3 @@ My laptop when I'm "working".
My desktop when I'm "working".
-->
+ [Privacy][pp]
[pp]: /privacy

+ 5
- 1
content/contact.md View File

@ -8,7 +8,8 @@ title: Contact
description: "Need to get in touch?"
---
Email me at daniel@lyte.dev or use the form below.
Email me at [daniel@lyte.dev][e], [message me on Discord][d], or use the form
below.
<form action="https://formspree.io/daniel@lyte.dev" method="POST">
<fieldset>
@ -29,3 +30,6 @@ Email me at daniel@lyte.dev or use the form below.
<input type="hidden" name="_next" value="/thanks" />
<input type="hidden" name="_subject" value="Contact Form Submission - lytedev" />
</form>
[e]: mailto:daniel@lyte.dev
[d]: https://discord.gg/jUCXCYp

+ 31
- 4
layouts/index.html View File

@ -6,13 +6,18 @@
</p>
<p>
I live in Kansas City where I help run a small Christian church, raise a
family, and write software for Postmates.
I live in Kansas City where I help run <a target="_blank"
href="https://kcrising.church">a small Christian church</a>, raise two
kids with my <a target="_blank"
href="https://www.instagram.com/valerielauren93">awesome wife</a>, and
write software for <a target="_blank"
href="https://postmates.com">Postmates</a>.
</p>
<p>
Occasionally, I write technical blog posts. You can also check out my work
on <a target="_blank" href="https://github.com/lytedev">GitHub</a>.
Occasionally, I post technical blog posts here.
</p>
<h2>Latest Posts</h2>
@ -24,4 +29,26 @@
<p>Looks like there's nothing here!... yet!</p>
{{ end }}
</ul>
<h2>More Me</h2>
<ul>
<li>
<a href="https://discord.gg/jUCXCYp">Discord</a>
</li>
<li>
<a href="mailto:daniel@lyte.dev">Email</a>
</li>
<li>
<a href="https://github.com/lytedev">GitHub</a>
</li>
</ul>
<h2>Meta</h2>
<ul>
<li>
<a href="/privacy">Privacy Policy</a>
</li>
</ul>
{{ end }}

+ 1
- 0
themes/lyte/layouts/_default/baseof.html View File

@ -35,5 +35,6 @@
</footer>
{{ end }}
<script defer src="/global.js"></script>
<script defer src="//a.lyte.dev/matomo.js"></script>
</body>
</html>

+ 4
- 1
themes/lyte/static/global.js View File

@ -1,5 +1,7 @@
window._paq=[['trackPageView'],['enableLinkTracking'],['setTrackerUrl','//a.lyte.dev/matomo.php'],['setSiteId','1']]
/*
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
@ -9,3 +11,4 @@ _paq.push(['enableLinkTracking']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
*/

Loading…
Cancel
Save