1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 16:08:26 -04:00
jarv.is/config.toml

191 lines
5.2 KiB
TOML

baseURL = "https://jarv.is/"
languageCode = "en-us"
title = "Jake Jarvis"
# increase timeout for image processing (3 minutes)
timeout = 180000
canonifyURLs = true
pygmentsUseClasses = true
pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = false
enableInlineShortcodes = true
enableRobotsTXT = true
# as of v0.73.0: taxonomy => term, taxonomyTerm => taxonomy
# https://github.com/gohugoio/hugo/releases/tag/v0.73.0
disableKinds = ["taxonomy", "term"]
# don't worry, inserted manually :)
disableHugoGeneratorInject = true
# prefer Netlify's _redirects file, see outputs below
disableAliases = true
[params]
description = "Hi there! I'm a frontend web developer based in Boston, Massachusetts specializing in the JAMstack, modern JavaScript frameworks, and progressive web apps."
image = "img/logo.png" # relative to assetDir root
mainSection = "notes" # content that appears in feeds
[params.theme]
maxWidth = 940 # px
defaultTheme = "light" # light or dark?
[params.license]
name = "CC-BY-4.0"
nameLong = "Creative Commons Attribution 4.0 International"
copyrightFirstYear = 2001
[params.social]
githubRepo = "jakejarvis/jarv.is" # user/repo
webmentionIO = "jarv.is" # webmention.io username
facebookAppID = 3357248167622283
[author]
name = "Jake Jarvis"
image = "img/me.jpg" # relative to assetDir root
email = "jake@jarv.is"
[author.social]
github = "jakejarvis"
keybase = "jakejarvis"
twitter = "jakejarvis"
twitterID = 229769022
medium = "jakejarvis"
linkedin = "jakejarvis"
facebook = "jakejarvis"
facebookID = 1329090853
instagram = "jakejarvis"
mastodon = "mastodon.social/@jakejarvis"
[module]
[[module.imports]]
path = "github.com/twitter/twemoji"
[[module.imports.mounts]]
source = "assets/svg"
target = "static/vendor/emoji/svg"
[frontmatter]
lastmod = ["date", "publishDate", ":default"]
[menu]
[[menu.main]]
name = "Home"
pre = "🏡"
url = "/"
weight = -100
[[menu.main]]
name = "Notes"
pre = "🗒"
url = "/notes/"
weight = -90
[[menu.main]]
name = "Projects"
pre = "👨‍💻"
url = "https://github.com/jakejarvis"
weight = -80
[[menu.main]]
name = "Contact"
pre = "📬"
# encode my email address like it's 2005 ( ͡° ͜ʖ ͡°)
url = "mailto:jake@jarv.is"
weight = -70
[outputs]
home = ["HTML", "RSS", "ATOM", "MANIFEST", "REDIRECTS", "HEADERS"]
section = ["HTML"]
page = ["HTML", "AMP"]
[outputFormats]
[outputFormats.RSS]
mediaType = "application/rss"
baseName = "feed" # /feed.xml
isPlainText = false
isHTML = false
[outputFormats.ATOM]
mediaType = "application/atom+xml"
baseName = "feed" # /feed.atom
isPlainText = false
isHTML = false
[outputFormats.AMP]
mediaType = "text/html"
baseName = "amp" # amp.html
path = "." # put in same directory as original post
permalinkable = true
isHTML = true
[outputFormats.ALGOLIA]
mediaType = "application/json"
baseName = "algolia" # /algolia.json
isPlainText = true
notAlternative = true
[outputFormats.MANIFEST]
mediaType = "application/manifest+json" # https://github.com/w3c/manifest/issues/689
baseName = "site" # /site.webmanifest
isPlainText = true
notAlternative = true
[outputFormats.REDIRECTS]
mediaType = "text/netlify"
baseName = "_redirects"
isPlainText = true
notAlternative = true
[outputFormats.HEADERS]
mediaType = "text/netlify"
baseName = "_headers"
isPlainText = true
notAlternative = true
[mediaTypes]
[mediaTypes."application/atom+xml"]
suffixes = ["atom"]
[mediaTypes."application/manifest+json"]
suffixes = ["webmanifest"]
[mediaTypes."text/netlify"]
delimiter = "" # no dot/extension for _headers & _redirects files
[sitemap]
filename = "sitemap.xml"
priority = 0.7
[imaging]
# options for resampling filters:
# https://github.com/disintegration/imaging#image-resizing
resampleFilter = "Lanczos"
# let imagemin do all the heavy lifting post-build.
# can be overridden (overrode?) inline for individual JPEGs:
# https://gohugo.io/content-management/image-processing/#jpeg-quality
quality = 100
[markup]
defaultMarkdownHandler = "goldmark"
[markup.goldmark]
[markup.goldmark.extensions]
linkify = false
strikethrough = true
typographer = true
[markup.goldmark.parser]
autoHeadingID = false
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
codeFences = true
guessSyntax = false
lineNos = true
lineNumbersInTable = true
noClasses = true
tabWidth = 4
# commit things like oEmbed JSON (tweets, etc.) next to resources in this repo
[caches]
[caches.getjson]
dir = ":resourceDir/_gen"
maxAge = -1
[server]
[[server.headers]]
for = "/**"
[server.headers.values]
Access-Control-Allow-Origin = "*"
# TODO: Proxy /api requests to netlify-lambda's local server (port 9337) for each function
[[server.redirects]]
from = "/api/**"
to = "http://localhost:9337/"
status = 200