mirror of
				https://github.com/privacyguides/blog.privacyguides.org.git
				synced 2025-11-04 07:27:52 +00:00 
			
		
		
		
	Remove Plausible analytics
This commit is contained in:
		@@ -1,23 +0,0 @@
 | 
				
			|||||||
var feedback = document.forms.feedback
 | 
					 | 
				
			||||||
/* Show feedback */
 | 
					 | 
				
			||||||
feedback.hidden = false
 | 
					 | 
				
			||||||
feedback.addEventListener("submit", function(ev) {
 | 
					 | 
				
			||||||
  ev.preventDefault()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  /* Retrieve page and feedback value */
 | 
					 | 
				
			||||||
  var page = document.location.pathname
 | 
					 | 
				
			||||||
  var data = ev.submitter.getAttribute("data-md-value")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  /* Send feedback value */
 | 
					 | 
				
			||||||
  console.log(page, data)
 | 
					 | 
				
			||||||
  plausible(data)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  /* Disable form and show note, if given */
 | 
					 | 
				
			||||||
  feedback.firstElementChild.disabled = true
 | 
					 | 
				
			||||||
  var note = feedback.querySelector(
 | 
					 | 
				
			||||||
    ".md-feedback__note [data-md-value='" + data + "']"
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if (note)
 | 
					 | 
				
			||||||
    note.hidden = false
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
@@ -12,9 +12,6 @@ copyright: |
 | 
				
			|||||||
extra:
 | 
					extra:
 | 
				
			||||||
  generator: false
 | 
					  generator: false
 | 
				
			||||||
  homepage: https://www.privacyguides.org/
 | 
					  homepage: https://www.privacyguides.org/
 | 
				
			||||||
  analytics:
 | 
					 | 
				
			||||||
    provider: plausible
 | 
					 | 
				
			||||||
    property: blog.privacyguides.org
 | 
					 | 
				
			||||||
  social:
 | 
					  social:
 | 
				
			||||||
    - icon: simple/mastodon
 | 
					    - icon: simple/mastodon
 | 
				
			||||||
      link: https://mastodon.neat.computer/@privacyguides
 | 
					      link: https://mastodon.neat.computer/@privacyguides
 | 
				
			||||||
@@ -83,7 +80,6 @@ plugins:
 | 
				
			|||||||
  privacy:
 | 
					  privacy:
 | 
				
			||||||
    assets_exclude:
 | 
					    assets_exclude:
 | 
				
			||||||
      - cdn.jsdelivr.net/npm/mathjax@3/*
 | 
					      - cdn.jsdelivr.net/npm/mathjax@3/*
 | 
				
			||||||
      - api.privacyguides.net/*
 | 
					 | 
				
			||||||
    links_noopener: true
 | 
					    links_noopener: true
 | 
				
			||||||
  social:
 | 
					  social:
 | 
				
			||||||
    cards: !ENV [CARDS, true]
 | 
					    cards: !ENV [CARDS, true]
 | 
				
			||||||
@@ -158,7 +154,6 @@ extra_css:
 | 
				
			|||||||
  - assets/stylesheets/extra.css?v=2.10.0
 | 
					  - assets/stylesheets/extra.css?v=2.10.0
 | 
				
			||||||
extra_javascript:
 | 
					extra_javascript:
 | 
				
			||||||
  - assets/javascripts/mathjax.js
 | 
					  - assets/javascripts/mathjax.js
 | 
				
			||||||
  - assets/javascripts/feedback.js
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
nav:
 | 
					nav:
 | 
				
			||||||
  - Home: 'https://www.privacyguides.org/'
 | 
					  - Home: 'https://www.privacyguides.org/'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +0,0 @@
 | 
				
			|||||||
<script defer data-domain="{{ config.extra.analytics.property }}" src="https://api.privacyguides.net/js/script.js"></script>
 | 
					 | 
				
			||||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user