feat: bye analytics

This commit is contained in:
Cory Dransfeldt 2024-08-10 18:54:06 -07:00
parent 94d58d0f0c
commit 2bf2fba325
No known key found for this signature in database
20 changed files with 14 additions and 185 deletions

View file

@ -5,7 +5,7 @@ permalink: /blogroll.html
description: These are awesome blogs that I enjoy and you may enjoy too.
---
<h2 class="page-header">{{ title }}</h2>
<p>You can <a onclick="if (typeof plausible === 'function') { plausible('OPML download', { props: { action: 'download' } }) }" href="/blogroll.opml">Download OPML</a>
<p>You can <a href="/blogroll.opml">Download OPML</a>
download an OPML file</a> containing all of these feeds and import them into your RSS reader.</p>
<table>
<tr>

View file

@ -7,7 +7,7 @@ pagination:
permalink: "{{ post.slug }}/index.html"
schema: blog
---
<article class="h-entry">
<article class="h-entry standalone">
<div class="time-wrapper flex-centered">
{% tablericon "calendar-month" "Date" %}
<time class="dt-published" datetime="{{ date }}">
@ -41,5 +41,4 @@ schema: blog
{{ post.content | markdown }}
{% render "partials/blocks/index.liquid", blocks:post.blocks %}
</div>
</article>
{% render "partials/blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
</article>

View file

@ -32,17 +32,4 @@ description: How to contact me.
<button type="submit">Send message</button>
</div>
</form>
</div>
<script>
document.querySelector('[data-form="contact"]').addEventListener('submit', function(event) {
if (typeof plausible === 'function') {
plausible('Contact form submitted', {
props: {
name: this.name.value,
email: this.email.value,
message: this.message.value
}
})
}
})
</script>
</div>

View file

@ -32,7 +32,6 @@ permalink: /search.html
const query = $input.value
const results = (query.length > 1) ? getSearchResults(query) : []
if (query === '') renderSearchResults([])
if (results && typeof plausible === 'function') plausible('Search', { props: { query: query } });
renderSearchResults(results)
})
@ -58,5 +57,4 @@ permalink: /search.html
<input class="search__form--input" placeholder="Search" type="search" name="q" autocomplete="off" autofocus>
<input class="search__form--fallback" type="hidden" placeholder="Search" name="sites" value="coryd.dev">
</form>
<ul class="search__results hidden"></ul>
{% render "partials/blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
<ul class="search__results hidden"></ul>