make it slightly less likely for forks to fuck with my analytics
This commit is contained in:
		
							parent
							
								
									e7844d625a
								
							
						
					
					
						commit
						2d88a8f7dc
					
				
					 3 changed files with 12 additions and 3 deletions
				
			
		|  | @ -6,4 +6,8 @@ it's a bit of a mess but it's my mess i made from scratch using [eleventy](https | ||||||
| `npm run build` to build   | `npm run build` to build   | ||||||
| `npm run update` for on da server to pull and install and build :3 | `npm run update` for on da server to pull and install and build :3 | ||||||
| 
 | 
 | ||||||
| not really accepting contributions but you can try anyways | not really accepting contributions but you can try anyways | ||||||
|  | 
 | ||||||
|  | ## ⚠️ important | ||||||
|  | 
 | ||||||
|  | if you use this code as a base for your own site, *PLEASE* disable analytics in `src/_data/site.json` or your site will mess up the analytics for my site which is annoying for both of us.  | ||||||
|  | @ -1,5 +1,10 @@ | ||||||
| { | { | ||||||
|     "url": "https://maia.crimew.gay", |     "url": "https://maia.crimew.gay", | ||||||
|  |     "analytics": { | ||||||
|  |       "enabled": true, | ||||||
|  |       "host": "umami.crimew.gay", | ||||||
|  |       "website_id": "fa7a72e7-acbc-488d-beb2-213886be0262" | ||||||
|  |     }, | ||||||
|     "title": "maia :3", |     "title": "maia :3", | ||||||
|     "description": "meow", |     "description": "meow", | ||||||
|     "tags": [ |     "tags": [ | ||||||
|  |  | ||||||
|  | @ -28,8 +28,8 @@ | ||||||
|     <link rel="shortcut icon" href="/favicon.ico"> |     <link rel="shortcut icon" href="/favicon.ico"> | ||||||
| 
 | 
 | ||||||
|     <link rel="alternate" type="application/rss+xml" href="/feed.xml" /> |     <link rel="alternate" type="application/rss+xml" href="/feed.xml" /> | ||||||
|     {% if env.environment.isProd %} |     {% if env.environment.isProd and site.analytics.enabled %} | ||||||
|       <script async src="https://umami.crimew.gay/script.js" data-website-id="fa7a72e7-acbc-488d-beb2-213886be0262"></script> |       <script async src="https://{{ site.analytics.host }}/script.js" data-website-id="{{ site.analytics.website_id }}"></script> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|   </head> |   </head> | ||||||
|   <body> |   <body> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue