This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
@C5%@mg | |
@#M## `7@p | |
^# @M | |
1##M @b | |
` ,# | |
#C sm, | |
,##e#W### | |
,,emM5"|` | |
,sm#M57@# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: New Short Link | |
// Modified version of https://github.com/dealingwith's 'new-post.js' | |
let worked = "Short link added" | |
let link = await arg('Link to?') | |
let slug = await arg('Slug?') | |
let file_slug = slug.toLowerCase().replaceAll(' ', '-') | |
let redirect_path = '(( path to redirects folder))' | |
let file_path = redirect_path + file_slug + '.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
module.exports = { | |
layout: (data) => { | |
if (data.page.outputFileExtension == "css") { | |
return null; | |
} | |
return data.layout || "base.njk"; | |
}, | |
directoryCSS: (data) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1028 DF1A 8C12 585A 36C4 2BAC 652B 8C7D 91BC 4895 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre, code { | |
font-size: .95em; | |
} | |
pre code { | |
font-size: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Appearance | |
"workbench.colorTheme": "Moonlight II Italic", | |
"workbench.iconTheme": "bearded-icons", | |
"editor.fontFamily": "MonoLisa", | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"editor.lineHeight": 0, | |
"editor.fontLigatures": true, | |
"terminal.integrated.fontFamily": "MonoLisa", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function star(input) { | |
if (typeof input !== 'number') throw new Error(`Requires number`) | |
let stars = '' | |
let floor = Math.floor(input) | |
for (let i = 0; i < floor; i++) stars += '★' | |
if (input - floor == 0.5) stars += '½' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import md from 'markdown-it' | |
import { glow } from 'nue-glow' | |
const markdown = md({ | |
highlight: (code, lang) => | |
`<pre glow="">${glow(code, { language: lang, numbered: false })}</pre>` | |
}) | |
export default eleventyConfig => eleventyConfig.setLibrary('md', markdown) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"quotes": [ | |
{ | |
"quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"}, | |
{ | |
"quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"}, | |
{ | |
"quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"}, | |
{ |