1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 12:36:20 -04:00

disable typographer (fancy quotes, etc.)

This commit is contained in:
Jake Jarvis 2021-04-28 18:40:21 -04:00
parent 33d78679ba
commit 5a53aab5d3
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
7 changed files with 38 additions and 50 deletions

View File

@ -158,7 +158,7 @@ disableAliases = true
[markup.goldmark.extensions] [markup.goldmark.extensions]
linkify = false linkify = false
strikethrough = true strikethrough = true
typographer = true typographer = false
[markup.goldmark.parser] [markup.goldmark.parser]
autoHeadingID = false autoHeadingID = false
[markup.goldmark.renderer] [markup.goldmark.renderer]

BIN
content/daily.pdf Normal file

Binary file not shown.

View File

@ -51,28 +51,8 @@
All content is licensed under CC-BY-4.0, an All content is licensed under CC-BY-4.0, an
open & permissive Creative Commons license: open & permissive Creative Commons license:
https://jarv.is/license/ https://jarv.is/license/
Twemoji: Licensed under Creative Commons Third-party dependencies and their licenses:
Attribution 4.0 International by Twitter, Inc.
and other contributors:
https://twemoji.twitter.com/ https://github.com/jakejarvis/jarv.is/blob/main/README.md#licenses
Inter: Copyright (c) 2016-2020 The Inter
Project Authors. Licensed under the SIL Open
Font License, Version 1.1:
https://rsms.me/inter/
Roboto Mono: Copyright (c) 2015 The Roboto Mono
Project Authors. Licensed under the the Apache
License, Version 2.0.
https://fonts.google.com/specimen/Roboto+Mono
Comic Neue: Copyright (c) 2014 The Comic Neue
Project Authors. Licensed under the SIL Open
Font License, Version 1.1:
http://comicneue.com/

View File

@ -28,7 +28,7 @@ It _is_ possible to use [pure CSS3 media queries to do this](https://css-tricks.
I've written a simple implementation below, which... I've written a simple implementation below, which...
- Defaults to a user's system preference, until they press your toggle to set it themselves - Defaults to a user's system preference, until they press your toggle to set it themselves
- Listens for clicks on any element of your choosing --- just set the class to `dark-mode-toggle`. For example: - Listens for clicks on any element of your choosing just set the class to `dark-mode-toggle`. For example:
```html {linenos=false} ```html {linenos=false}
<button class="dark-mode-toggle">💡 Switch Themes</button> <button class="dark-mode-toggle">💡 Switch Themes</button>
@ -37,7 +37,7 @@ I've written a simple implementation below, which...
- Remembers the visitor's preference between visits using the [local storage](https://www.w3schools.com/html/html5_webstorage.asp) of the their browser (not cookies, please don't use cookies!) - Remembers the visitor's preference between visits using the [local storage](https://www.w3schools.com/html/html5_webstorage.asp) of the their browser (not cookies, please don't use cookies!)
- Switches your `<body>`'s class between `light` and `dark`... - Switches your `<body>`'s class between `light` and `dark`...
...meaning that any CSS selectors beginning with `body.dark` or `body.light` will only apply when the respective mode is active. A good place to start is by separating any color rules --- your background, text, links, etc. --- into a different section of your CSS. Using [SASS or SCSS](https://sass-lang.com/) makes this a whole lot [easier with nesting](https://sass-lang.com/guide#topic-3) but is not required; this was written with a [KISS](https://getyarn.io/yarn-clip/embed/eed08f4f-d1c9-4cc0-b041-f280a5dbf0a5?autoplay=false) mentality. ...meaning that any CSS selectors beginning with `body.dark` or `body.light` will only apply when the respective mode is active. A good place to start is by separating any color rules — your background, text, links, etc. — into a different section of your CSS. Using [SASS or SCSS](https://sass-lang.com/) makes this a whole lot [easier with nesting](https://sass-lang.com/guide#topic-3) but is not required; this was written with a [KISS](https://getyarn.io/yarn-clip/embed/eed08f4f-d1c9-4cc0-b041-f280a5dbf0a5?autoplay=false) mentality.
{{< iframe src="/notes/dark-mode/example.html" width="650" height="275" title="Dark Mode Example" sandbox="allow-same-origin allow-scripts allow-popups" >}} {{< iframe src="/notes/dark-mode/example.html" width="650" height="275" title="Dark Mode Example" sandbox="allow-same-origin allow-scripts allow-popups" >}}

View File

@ -7,3 +7,4 @@
{{- end }} {{- end }}
<link rel="author" href="{{ "humans.txt" | absURL }}"> <link rel="author" href="{{ "humans.txt" | absURL }}">
<link rel="license" href="{{ "license/" | absURL }}">

View File

@ -27,7 +27,8 @@
"lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss", "lint:scss": "stylelint 'assets/sass/**/*.scss' --syntax scss",
"lint:js": "eslint '**/*.js'", "lint:js": "eslint '**/*.js'",
"lint:md": "markdownlint 'content/**/*.md'", "lint:md": "markdownlint 'content/**/*.md'",
"lint:prettier": "prettier --check ." "lint:prettier": "prettier --check .",
"percy": "npx percy snapshot"
}, },
"dependencies": { "dependencies": {
"@fontsource/comic-neue": "4.2.2", "@fontsource/comic-neue": "4.2.2",
@ -40,6 +41,7 @@
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"eslint": "~7.25.0", "eslint": "~7.25.0",
"eslint-config-prettier": "~8.3.0", "eslint-config-prettier": "~8.3.0",
"eslint-plugin-compat": "~3.9.0", "eslint-plugin-compat": "~3.9.0",

View File

@ -309,9 +309,9 @@
integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg== integrity sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==
"@types/node@*": "@types/node@*":
version "14.14.41" version "15.0.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.41.tgz#d0b939d94c1d7bd53d04824af45f1139b8c45615" resolved "https://registry.yarnpkg.com/@types/node/-/node-15.0.1.tgz#ef34dea0881028d11398be5bf4e856743e3dc35a"
integrity sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g== integrity sha512-TMkXt0Ck1y0KKsGr9gJtWGjttxlZnnvDtphxUOSd0bfaR6Q1jle+sPvrzNR1urqYTWMinoKvjKfXUGsumaO1PA==
"@types/normalize-package-data@^2.4.0": "@types/normalize-package-data@^2.4.0":
version "2.4.0" version "2.4.0"
@ -362,9 +362,9 @@ ajv@^6.10.0, ajv@^6.12.4:
uri-js "^4.2.2" uri-js "^4.2.2"
ajv@^8.0.1: ajv@^8.0.1:
version "8.1.0" version "8.2.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.1.0.tgz#45d5d3d36c7cdd808930cc3e603cf6200dbeb736" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.2.0.tgz#c89d3380a784ce81b2085f48811c4c101df4c602"
integrity sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ== integrity sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==
dependencies: dependencies:
fast-deep-equal "^3.1.1" fast-deep-equal "^3.1.1"
json-schema-traverse "^1.0.0" json-schema-traverse "^1.0.0"
@ -719,9 +719,9 @@ camelcase@^5.0.0, camelcase@^5.3.1:
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001166, caniuse-lite@^1.0.30001179, caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001214: caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001166, caniuse-lite@^1.0.30001179, caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001214:
version "1.0.30001216" version "1.0.30001219"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001216.tgz#47418a082a4f952d14d8964ae739e25efb2060a9" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001219.tgz#5bfa5d0519f41f993618bd318f606a4c4c16156b"
integrity sha512-1uU+ww/n5WCJRwUcc9UH/W6925Se5aNnem/G5QaSDga2HzvjYMs8vRbekGUN/PnTZ7ezTHcxxTEb9fgiMYwH6Q== integrity sha512-c0yixVG4v9KBc/tQ2rlbB3A/bgBFRvl8h8M4IeUbqCca4gsiCfvtaheUssbnux/Mb66Vjz7x8yYjDgYcNQOhyQ==
caw@^2.0.0, caw@^2.0.1: caw@^2.0.0, caw@^2.0.1:
version "2.0.1" version "2.0.1"
@ -761,7 +761,7 @@ chalk@^3.0.0:
ansi-styles "^4.1.0" ansi-styles "^4.1.0"
supports-color "^7.1.0" supports-color "^7.1.0"
chalk@^4.0.0, chalk@^4.1.0: chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1:
version "4.1.1" version "4.1.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad"
integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg== integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==
@ -960,9 +960,9 @@ convert-source-map@^1.7.0:
safe-buffer "~5.1.1" safe-buffer "~5.1.1"
core-js@^3.6.5: core-js@^3.6.5:
version "3.11.0" version "3.11.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.11.0.tgz#05dac6aa70c0a4ad842261f8957b961d36eb8926" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.11.1.tgz#f920392bf8ed63a0ec8e4e729857bfa3d121c525"
integrity sha512-bd79DPpx+1Ilh9+30aT5O1sgpQd4Ttg8oqkqi51ZzhedMM1omD2e6IOF48Z/DzDCZ2svp49tN/3vneTK6ZBkXw== integrity sha512-k93Isqg7e4txZWMGNYwevZL9MiogLk8pd1PtwrmFmi8IBq4GXqUaVW/a33Llt6amSI36uSjd0GWwc9pTT9ALlQ==
core-util-is@~1.0.0: core-util-is@~1.0.0:
version "1.0.2" version "1.0.2"
@ -1334,6 +1334,11 @@ domutils@^2.4.3:
domelementtype "^2.2.0" domelementtype "^2.2.0"
domhandler "^4.2.0" domhandler "^4.2.0"
dotenv@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
download-cli@^1.x: download-cli@^1.x:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/download-cli/-/download-cli-1.1.1.tgz#0aada6dc1abf9fd2f3d20281dfbdadea9f64ec3e" resolved "https://registry.yarnpkg.com/download-cli/-/download-cli-1.1.1.tgz#0aada6dc1abf9fd2f3d20281dfbdadea9f64ec3e"
@ -1390,9 +1395,9 @@ duplexer3@^0.1.4:
integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=
electron-to-chromium@^1.3.719: electron-to-chromium@^1.3.719:
version "1.3.720" version "1.3.723"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.720.tgz#f5d66df8754d993006b7b2ded15ff7738c58bd94" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.723.tgz#52769a75635342a4db29af5f1e40bd3dad02c877"
integrity sha512-B6zLTxxaOFP4WZm6DrvgRk8kLFYWNhQ5TrHMC0l5WtkMXhU5UbnvWoTfeEwqOruUSlNMhVLfYak7REX6oC5Yfw== integrity sha512-L+WXyXI7c7+G1V8ANzRsPI5giiimLAUDC6Zs1ojHHPhYXb3k/iTABFmWjivEtsWrRQymjnO66/rO2ZTABGdmWg==
emoji-regex@^8.0.0: emoji-regex@^8.0.0:
version "8.0.0" version "8.0.0"
@ -2939,11 +2944,11 @@ lint-staged@^10.5.4:
stringify-object "^3.3.0" stringify-object "^3.3.0"
listr2@^3.2.2: listr2@^3.2.2:
version "3.8.0" version "3.8.1"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.8.0.tgz#40dcbcae83cca1005570ff0cc76cc35b51576d09" resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.8.1.tgz#0237a8211962249db97828e5d704633f7c26c965"
integrity sha512-TWxRzND4v6UI+Fs3FrNohYcz48jyZUyzvSLgrGTe9TXKLf84T0EfjmP5e27p6e031q3VGl6vBbHdueGFUxgczQ== integrity sha512-75vMLokDIEoZIXp3FE3P7U4yi7BRroZb7Az9+XBq+wGGnvq70QPT+BX41aSrROUMLuVan9l3aAjdeXWgaFyFEw==
dependencies: dependencies:
chalk "^4.1.0" chalk "^4.1.1"
cli-truncate "^2.1.0" cli-truncate "^2.1.0"
figures "^3.2.0" figures "^3.2.0"
indent-string "^4.0.0" indent-string "^4.0.0"
@ -5060,9 +5065,9 @@ svgo@^2.1.0, svgo@^2.3.0:
stable "^0.1.8" stable "^0.1.8"
table@^6.0.4, table@^6.5.1: table@^6.0.4, table@^6.5.1:
version "6.5.1" version "6.6.0"
resolved "https://registry.yarnpkg.com/table/-/table-6.5.1.tgz#930885a7430f15f8766b35cd1e36de40793db523" resolved "https://registry.yarnpkg.com/table/-/table-6.6.0.tgz#905654b79df98d9e9a973de1dd58682532c40e8e"
integrity sha512-xGDXWTBJxahkzPQCsn1S9ESHEenU7TbMD5Iv4FeopXv/XwJyWatFjfbor+6ipI10/MNPXBYUamYukOrbPZ9L/w== integrity sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg==
dependencies: dependencies:
ajv "^8.0.1" ajv "^8.0.1"
lodash.clonedeep "^4.5.0" lodash.clonedeep "^4.5.0"