mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-30 03:56:01 -04:00
update meta pages & robots.txt
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*! Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2020-06-22; 3cf3) */
|
||||
// https://github.com/simpleanalytics/scripts/blob/eac9823da1fe92c0bca65a041df1f005ff860f1f/src/default.js
|
||||
/*! Simple Analytics - Privacy friendly analytics (docs.simpleanalytics.com/script; 2020-06-29; bb25) */
|
||||
// https://github.com/simpleanalytics/scripts/blob/21632405db31416d07006226cfb52cd348f73691/src/default.js
|
||||
|
||||
(function (window, baseUrl) {
|
||||
if (!window) return;
|
||||
@@ -8,7 +8,7 @@
|
||||
// Generate the needed variables, this seems like a lot of repetition, but it
|
||||
// makes our script availble for multple destination which prevents us to
|
||||
// need multiple scripts. The minified version stays small.
|
||||
var version = 3;
|
||||
var version = 4;
|
||||
var functionName = "sa_event";
|
||||
var pageviewsText = "pageview";
|
||||
var https = "https:";
|
||||
@@ -28,7 +28,6 @@
|
||||
var stringify = JSON.stringify;
|
||||
var thousand = 1000;
|
||||
var undefinedVar = undefined;
|
||||
var notSending = "Not sending requests ";
|
||||
var language = "language";
|
||||
var Height = "Height";
|
||||
var Width = "Width";
|
||||
@@ -42,14 +41,14 @@
|
||||
version: version,
|
||||
};
|
||||
|
||||
var bot = /(bot|spider|crawl)/i.test(userAgent);
|
||||
if (bot) payload.bot = true;
|
||||
|
||||
var options = {
|
||||
hostname: locationHostname,
|
||||
functionName: functionName,
|
||||
};
|
||||
|
||||
var bot = /(bot|spider|crawl)/i.test(userAgent);
|
||||
if (bot) payload.bot = true;
|
||||
|
||||
payload.hostname = options.hostname;
|
||||
|
||||
// A simple log function so the user knows why a request is not being sent, uncomment for debugging
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "License 📜"
|
||||
title: "📜 License"
|
||||
url: /license
|
||||
layout: etc
|
||||
sitemap:
|
||||
@@ -17,7 +17,8 @@ The [full license](https://creativecommons.org/licenses/by/4.0/legalcode) is re-
|
||||
## Creative Commons Attribution 4.0 International
|
||||
|
||||
<!-- markdownlint-disable MD033 -->
|
||||
<p class="center"><svg width="120" height="42"><path d="M3.1.5l113.4.2c1.6 0 3-.2 3 3.2l-.1 37.3H.3V3.7C.3 2.1.4.5 3 .5z" fill="#aab2ab"/><path d="M117.8 0H2.2C1 0 0 1 0 2.2v39.3c0 .3.2.5.5.5h119c.3 0 .5-.2.5-.5V2.2c0-1.2-1-2.2-2.2-2.2zM2.2 1h115.6c.6 0 1.2.6 1.2 1.2v27.3H36.2a17.8 17.8 0 01-31.1 0H1V2.2C1 1.6 1.5 1 2.1 1z"/><path d="M73.8 32.7l.9.1.6.3.5.5.1.8c0 .3 0 .6-.2.8l-.7.6c.4 0 .7.3 1 .6l.2 1-.1 1-.6.5-.7.4H70.7v-6.6h3.1zm-.2 2.7c.3 0 .5 0 .7-.2l.2-.6v-.3l-.3-.3H74l-.4-.1h-1.4v1.5h1.5zm.1 2.8h.4l.4-.1.2-.3v-.4c0-.4 0-.6-.2-.8l-.8-.2h-1.6v1.8h1.6zM76.5 32.7h1.6l1.6 2.7 1.5-2.7H83l-2.5 4.1v2.6h-1.5v-2.6l-2.4-4zM34.3 19.6a13.6 13.6 0 01-27.3 0 13.6 13.6 0 0127.3 0z" fill="#fff"/><path d="M31.7 8.5c3 3 4.5 6.7 4.5 11.1a15.4 15.4 0 01-15.6 15.6 15 15 0 01-11-4.6 15 15 0 01-4.6-11c0-4.3 1.5-8 4.6-11.1 3-3 6.7-4.5 11-4.5 4.4 0 8 1.5 11.1 4.5zm-20 2a12.5 12.5 0 00-3.9 9.1c0 3.5 1.3 6.5 3.8 9s5.6 3.8 9 3.8c3.5 0 6.6-1.3 9.2-3.8a12 12 0 003.6-9c0-3.6-1.2-6.6-3.7-9a12.3 12.3 0 00-9-3.8c-3.6 0-6.6 1.2-9 3.7zm6.7 7.6c-.4-.9-1-1.3-1.8-1.3-1.4 0-2 1-2 2.8 0 1.8.6 2.8 2 2.8 1 0 1.6-.5 2-1.4l1.9 1a4.4 4.4 0 01-4.1 2.5c-1.4 0-2.5-.5-3.4-1.3-.8-.9-1.3-2-1.3-3.6 0-1.5.5-2.7 1.3-3.5 1-1 2-1.3 3.3-1.3 2 0 3.3.7 4.1 2.2l-2 1zm9 0c-.4-.9-1-1.3-1.8-1.3-1.4 0-2 1-2 2.8 0 1.8.6 2.8 2 2.8 1 0 1.6-.5 2-1.4l2 1a4.4 4.4 0 01-4.2 2.5c-1.4 0-2.5-.5-3.3-1.3-.9-.9-1.3-2-1.3-3.6 0-1.5.4-2.7 1.3-3.5.8-1 2-1.3 3.2-1.3 2 0 3.3.7 4.2 2.2l-2.1 1z"/><g transform="matrix(.99377 0 0 .99367 -177.7 0)"><circle cx="255.6" cy="15.3" r="10.8" fill="#fff"/><path d="M258.7 12.2c0-.4-.4-.8-.8-.8h-4.7c-.5 0-.8.4-.8.8V17h1.3v5.6h3.6V17h1.4v-4.8z"/><circle cx="255.5" cy="9.2" r="1.6"/><path clip-rule="evenodd" d="M255.5 3.4c-3.2 0-6 1.1-8.2 3.4A11.4 11.4 0 00244 15c0 3.2 1.1 6 3.4 8.2 2.3 2.3 5 3.4 8.2 3.4 3.2 0 6-1.1 8.4-3.4a11 11 0 003.3-8.2c0-3.3-1.1-6-3.4-8.3-2.2-2.3-5-3.4-8.3-3.4zm0 2.1c2.7 0 5 1 6.8 2.8a9.2 9.2 0 012.8 6.8c0 2.7-1 4.9-2.7 6.7-2 1.9-4.2 2.8-6.8 2.8-2.7 0-5-1-6.8-2.8A9.2 9.2 0 01246 15c0-2.6 1-4.9 2.8-6.8a9 9 0 016.8-2.8z" fill-rule="evenodd"/></g></svg></p>
|
||||
<p class="center"><a class="no-underline" href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener"><svg width="120" height="42"><path d="M3.1.5l113.4.2c1.6 0 3-.2 3 3.2l-.1 37.3H.3V3.7C.3 2.1.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.2l-2 1zm9 0c-.4-.9-1-1.3-1.8-1.3-1.4 0-2 1-2 2.8 0 1.8.6 2.8 2 2.8 1 0 1.6-.5 2-1.4l2 1a4.4 4.4 0 01-4.2 2.5c-1.4 0-2.5-.5-3.3-1.3-.9-.9-1.3-2-1.3-3.6 0-1.5.4-2.7 1.3-3.5.8-1 2-1.3 3.2-1.3 2 0 3.3.7 4.2 2.2l-2.1 1z"/><g transform="matrix(.99377 0 0 .99367 -177.7 0)"><circle cx="255.6" cy="15.3" r="10.8" fill="#fff"/><path d="M258.7 12.2c0-.4-.4-.8-.8-.8h-4.7c-.5 0-.8.4-.8.8V17h1.3v5.6h3.6V17h1.4v-4.8z"/><circle cx="255.5" cy="9.2" r="1.6"/><path clip-rule="evenodd" d="M255.5 3.4c-3.2 0-6 1.1-8.2 3.4A11.4 11.4 0 00244 15c0 3.2 1.1 6 3.4 8.2 2.3 2.3 5 3.4 8.2 3.4 3.2 0 6-1.1 8.4-3.4a11 11 0 003.3-8.2c0-3.3-1.1-6-3.4-8.3-2.2-2.3-5-3.4-8.3-3.4zm0 2.1c2.7 0 5 1 6.8 2.8a9.2 9.2 0 012.8 6.8c0 2.7-1 4.9-2.7 6.7-2 1.9-4.2 2.8-6.8 2.8-2.7 0-5-1-6.8-2.8A9.2 9.2 0 01246 15c0-2.6 1-4.9 2.8-6.8a9 9 0 016.8-2.8z" fill-rule="evenodd"/></g></svg></a></p>
|
||||
<!-- markdownlint-enable MD033 -->
|
||||
|
||||
_Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an "as-is" basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible._
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ draft: false
|
||||
|
||||
In the midst of this year's long-overdue support of the [**Black Lives Matter**](https://blacklivesmatters.carrd.co/) movement and calls to action in the US and around the world, a [new spotlight](https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00066.html) has been placed on unchecked invocations of racially charged language in the computer science world, no matter how big or small — like the long-standing and, until recently, widely accepted terms ["master" and "slave"](https://tools.ietf.org/id/draft-knodel-terminology-00.html#master-slave) as an oppressive metaphor for ownership/importance.
|
||||
|
||||
When somebody pointed out the negative connotations of Git projects being created with a branch named `master` by default, and the possibility of this making minorities feel even more unwelcome in an industry already [lacking diversity](https://www.informationisbeautiful.net/visualizations/diversity-in-tech/), GitHub CEO [Nat Friedman](https://github.com/nat) quietly [announced a plan](https://twitter.com/natfriedman/status/1271253144442253312) to change this on Twitter:
|
||||
When somebody pointed out the negative connotations of Git projects being created with a branch named `master` by default, and the possibility of this making minorities feel even more unwelcome in an industry already [lacking diversity](https://www.informationisbeautiful.net/visualizations/diversity-in-tech/), GitHub CEO [Nat Friedman](https://github.com/nat) quietly [announced a plan](https://twitter.com/natfriedman/status/1271253144442253312) to change this on Twitter (ignore the replies for your sanity):
|
||||
|
||||
{{< tweet "https://twitter.com/natfriedman/status/1271253144442253312" >}}
|
||||
|
||||
@@ -75,7 +75,7 @@ Unfortunately, GitHub won't redirect links containing `master` to the new branch
|
||||
|
||||
None of this will work on a brand new repository with zero commits. But we can hack around this limitation pretty easily...
|
||||
|
||||
You can create a [Git alias](https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases) in your local environment's `.gitconfig` to make `main` the default branch name for new repositories. Git doesn't let you override native commands like `git init`, so we'll create our own `git new` command instead ([h/t @johnsyweb](https://twitter.com/johnsyweb/status/1269881549056438272)):
|
||||
You can create a [Git alias](https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases) in your local environment's `.gitconfig` to make `main` the default branch name for new repositories. Git doesn't let you override some native commands like `git init`, so we'll create our own `git new` command instead ([h/t @johnsyweb](https://twitter.com/johnsyweb/status/1269881549056438272)):
|
||||
|
||||
```bash {linenos=false}
|
||||
git config --global alias.new '!git init && git symbolic-ref HEAD refs/heads/main'
|
||||
|
||||
@@ -74,6 +74,8 @@ css: |
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
||||
<!-- markdownlint-enable MD033 -->
|
||||
|
||||
---
|
||||
|
||||
{{< image src="images/2002_02.png">}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "Privacy Policy 🕵️"
|
||||
title: "🕵️ Privacy Policy"
|
||||
url: /privacy
|
||||
layout: etc
|
||||
sitemap:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "Analytics 📈"
|
||||
title: "📈 Analytics"
|
||||
description: "Public visitor stats for this website."
|
||||
url: /stats
|
||||
layout: etc
|
||||
@@ -17,11 +17,12 @@ sitemap:
|
||||
priority: 0.3
|
||||
---
|
||||
|
||||
<!-- markdownlint-disable MD033 -->
|
||||
<p class="center"><a class="no-underline" href="https://simpleanalytics.com/jarv.is?utm_source=jarv.is&utm_content=badge" target="_blank" rel="noopener"><img src="https://simpleanalyticsbadge.com/jarv.is?counter=true" width="210" height="50" alt="Powered by Simple Analytics" referrerpolicy="no-referrer" crossorigin="anonymous"></a></p>
|
||||
|
||||
This website uses [**Simple Analytics**](https://simpleanalytics.com/?ref=jarv.is) to track pageviews **without collecting any personally identifiable information,** including IP addresses, cookies, and browser fingerprints.
|
||||
|
||||
In that case, why not share them? 😊 Pageviews for the past month are graphed below and more information (top pages, referrers, etc.) can be found [on a publicly-accessible dashboard.](https://simpleanalytics.com/jarv.is?utm_source=jarv.is&utm_content=badge)
|
||||
|
||||
<!-- markdownlint-disable MD033 -->
|
||||
<p class="center"><a class="no-underline" href="https://simpleanalytics.com/jarv.is?utm_source=jarv.is&utm_content=badge" target="_blank" rel="noopener"><img src="https://simpleanalyticsbadge.com/jarv.is?counter=true" width="210" height="50" alt="Powered by Simple Analytics" referrerpolicy="no-referrer" crossorigin="anonymous"></a></p>
|
||||
|
||||
<iframe id="sa-graph" src="https://simpleanalytics.com/jarv.is?color=FF4F64&embed=true" scrolling="no" title="Simple Analytics graph"></iframe>
|
||||
<!-- markdownlint-enable MD033 -->
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{{/* only parse and append analytics script on production site */}}
|
||||
{{- $includeAnalytics := eq hugo.Environment "production" -}}
|
||||
|
||||
{{- $darkmode := resources.Get "js/dark-mode.js" | resources.ExecuteAsTemplate "js/dark-mode.js" . -}}
|
||||
{{- $twemoji := resources.Get "js/vendor/twemoji.js" | resources.ExecuteAsTemplate "js/vendor/twemoji.js" . -}}
|
||||
|
||||
{{- $bundle := slice $darkmode $twemoji -}}
|
||||
|
||||
{{/* only parse and append analytics script on production site */}}
|
||||
{{- $includeAnalytics := eq hugo.Environment "production" -}}
|
||||
|
||||
{{- if $includeAnalytics }}
|
||||
{{- $analytics := resources.Get "js/analytics.js" | resources.ExecuteAsTemplate "js/analytics.js" . }}
|
||||
{{- $bundle = slice $darkmode $twemoji $analytics }}
|
||||
@@ -13,8 +13,3 @@
|
||||
|
||||
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
|
||||
<script async defer src="{{ $js.Permalink }}"></script>
|
||||
|
||||
{{/* proxy to simple analytics noscript on production */}}
|
||||
{{- if $includeAnalytics }}
|
||||
<noscript><img src="{{ "sa/manual.gif" | absURL }}" alt=""></noscript>
|
||||
{{ end -}}
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
User-Agent: *
|
||||
{{- if eq hugo.Environment "production" }}
|
||||
Allow: /.well-known/amphtml/apikey.pub
|
||||
Disallow: /privacy/
|
||||
Disallow: /license/
|
||||
Disallow: /humans.txt
|
||||
Disallow: /403.html
|
||||
Disallow: /404.html
|
||||
Disallow: /sa/
|
||||
Disallow: /y2k/
|
||||
Disallow: /candies/
|
||||
Disallow: /comp20/
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
||||
{{- else }}
|
||||
Disallow: /
|
||||
|
||||
@@ -124,21 +124,12 @@
|
||||
from = "/sa/append*"
|
||||
to = "https://queue.simpleanalyticscdn.com/append:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/sa/post*"
|
||||
to = "https://api.simpleanalytics.io/post:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
# This noscript pixel needs to pass unknown arguments along for AMP pages:
|
||||
# https://amp.dev/documentation/components/amp-pixel/
|
||||
from = "/sa/noscript.gif*"
|
||||
to = "https://queue.simpleanalyticscdn.com/noscript.gif:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
# Same noscript.gif as above but with no arguments, except `ignore-dnt`.
|
||||
from = "/sa/manual.gif"
|
||||
to = "https://queue.simpleanalyticscdn.com/noscript.gif?ignore-dnt=true"
|
||||
status = 200
|
||||
|
||||
# More miscellaneous mirrors/redirects:
|
||||
[[redirects]]
|
||||
|
||||
Reference in New Issue
Block a user