From 925cc02961f44c2c9c114785c880bb9811d5157d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 27 Nov 2024 11:28:32 -0500 Subject: [PATCH] more re-orging --- .vscode/settings.json | 9 + _config.yml | 6 + config.toml | 37 ---- sass/elements/code.scss | 41 ---- sass/elements/details.scss | 30 --- sass/elements/header.scss | 94 -------- sass/elements/headings.scss | 28 --- sass/elements/image.scss | 9 - sass/elements/list.scss | 26 --- sass/elements/music-info-card.scss | 33 --- sass/elements/quote.scss | 49 ----- sass/elements/table.scss | 47 ---- sass/elements/text.scss | 37 ---- sass/styles.scss | 153 ------------- {static => src}/_headers | 0 src/_layouts/default.html | 4 +- src/_layouts/photo.html | 1 + ...-11-24-the-project-i-will-never-finish.md} | 0 {static => src}/_redirects | 0 {static => src}/_routes.json | 0 src/blog.html | 23 +- {static => src}/functions/_middleware.js | 0 .../download/minecraft-modpack/[[version]].js | 0 {static => src}/functions/keys/ssh.js | 0 {static => src}/geofeed.csv | 0 static/functions/.well-known/nodeinfo.js | 17 -- static/functions/.well-known/webfinger.js | 20 -- static/functions/api/activitypub/nodeinfo.js | 45 ---- static/functions/api/activitypub/outbox.js | 46 ---- .../functions/api/activitypub/users/evan.js | 44 ---- templates/404.html | 9 - templates/base.html | 202 ------------------ templates/blog-timeline.html | 28 --- templates/index.html | 77 ------- templates/map.html | 51 ----- templates/page.html | 50 ----- templates/photo-timeline.html | 24 --- templates/section.html | 8 - templates/shortcodes/cdots.html | 1 - templates/shortcodes/github.html | 5 - templates/shortcodes/music_card.html | 7 - templates/shortcodes/note.html | 8 - templates/video-timeline.html | 29 --- 43 files changed, 31 insertions(+), 1267 deletions(-) delete mode 100644 config.toml delete mode 100644 sass/elements/code.scss delete mode 100644 sass/elements/details.scss delete mode 100644 sass/elements/header.scss delete mode 100644 sass/elements/headings.scss delete mode 100644 sass/elements/image.scss delete mode 100644 sass/elements/list.scss delete mode 100644 sass/elements/music-info-card.scss delete mode 100644 sass/elements/quote.scss delete mode 100644 sass/elements/table.scss delete mode 100644 sass/elements/text.scss delete mode 100644 sass/styles.scss rename {static => src}/_headers (100%) rename src/_posts/{2024-11-24-the-project-i-wil-never-finish.md => 2024-11-24-the-project-i-will-never-finish.md} (100%) rename {static => src}/_redirects (100%) rename {static => src}/_routes.json (100%) rename {static => src}/functions/_middleware.js (100%) rename {static => src}/functions/download/minecraft-modpack/[[version]].js (100%) rename {static => src}/functions/keys/ssh.js (100%) rename {static => src}/geofeed.csv (100%) delete mode 100644 static/functions/.well-known/nodeinfo.js delete mode 100644 static/functions/.well-known/webfinger.js delete mode 100644 static/functions/api/activitypub/nodeinfo.js delete mode 100644 static/functions/api/activitypub/outbox.js delete mode 100644 static/functions/api/activitypub/users/evan.js delete mode 100644 templates/404.html delete mode 100644 templates/base.html delete mode 100644 templates/blog-timeline.html delete mode 100644 templates/index.html delete mode 100644 templates/map.html delete mode 100644 templates/page.html delete mode 100644 templates/photo-timeline.html delete mode 100644 templates/section.html delete mode 100644 templates/shortcodes/cdots.html delete mode 100644 templates/shortcodes/github.html delete mode 100644 templates/shortcodes/music_card.html delete mode 100644 templates/shortcodes/note.html delete mode 100644 templates/video-timeline.html diff --git a/.vscode/settings.json b/.vscode/settings.json index d6257f5..52d20e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,4 +25,13 @@ }, "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", "html.format.unformattedContentDelimiter": "", + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/.jekyll-cache": true, + } } \ No newline at end of file diff --git a/_config.yml b/_config.yml index 479a92b..4f1bd00 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,7 @@ # Site title: Evan Pratten description: Evan Pratten is a software developer, amateur radio operator, and more. This is his website. +profile_photo: &profile_photo /assets/profile-photos/2022/460x460.webp encoding: utf-8 source: src @@ -13,6 +14,11 @@ livereload: true baseurl: / url: https://ewpratten.com +# RSS +feed: + icon: *profile_photo + path: rss.xml + # Markdown markdown: kramdown kramdown: diff --git a/config.toml b/config.toml deleted file mode 100644 index a594dc6..0000000 --- a/config.toml +++ /dev/null @@ -1,37 +0,0 @@ -base_url = "https://ewpratten.com" -title = "Evan Pratten" -description = "Evan Pratten is a software developer, amateur radio operator, and more. This is his website." -default_language = "en" -compile_sass = true -build_search_index = true -generate_feeds = true -feed_filenames = ["rss.xml"] -minify_html = false # This breaks mermaid diagrams :( -ignored_content = ["content/@/blog/*.md", "sites/"] -ignored_static = ["static/images/drawings/*/*.xcf", "sites/"] - -[markdown] -highlight_code = true -render_emoji = true -external_links_target_blank = true - -[link_checker] -skip_prefixes = [] -skip_anchor_prefixes = [] -internal_level = "error" -external_level = "error" - -[extra] -# Website -domain_name = "ewpratten.com" -# Me -name = "Evan Pratten" -profession = "Software Developer" -profile_photo = "/images/pfp/2022/460x460.webp" -# Accounts -email = "evan@ewpratten.com" -github = "ewpratten" -linkedin = "ewpratten" -# Announcements -# home_announcement = "Test content" -# global_announcement = "Global announcement content test" diff --git a/sass/elements/code.scss b/sass/elements/code.scss deleted file mode 100644 index c92a1b7..0000000 --- a/sass/elements/code.scss +++ /dev/null @@ -1,41 +0,0 @@ -pre { - font-family: monospace, monospace; - font-size: 0.9em; - border-radius: 5px; - padding: 0.5em 0.75em; - overflow-x: scroll; - - span { - font-family: inherit !important; - } -} - -del { - code { - text-decoration: inherit; - } -} - -:not(pre) > code { - font-family: monospace, monospace; - background-color: rgba(175, 184, 193, 0.2); - border-radius: 5px; - padding: 0 5px; - font-size: 85%; - white-space: nowrap; -} - -kbd { - display: inline-block; - padding: 3px 5px; - font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, - Liberation Mono, monospace; - line-height: 10px; - color: #24292f; - vertical-align: middle; - background-color: #f6f8fa; - border: solid 1px rgba(175, 184, 193, 0.2); - border-bottom-color: rgba(175, 184, 193, 0.2); - border-radius: 6px; - box-shadow: inset 0 -1px 0 rgba(175, 184, 193, 0.2); -} diff --git a/sass/elements/details.scss b/sass/elements/details.scss deleted file mode 100644 index a3a98ca..0000000 --- a/sass/elements/details.scss +++ /dev/null @@ -1,30 +0,0 @@ -details { - background-color: #f4f4f4; - border: 1px solid #d7dde3; - border-radius: 5px; - padding: 0.5em; - - summary { - h1, - h2, - h3, - h4, - h5, - h6 { - margin: none; - padding: none; - border: none; - display: inline; - } - - &:hover { - cursor: pointer; - } - } - - & > :nth-child(2) { - margin-top: 0.5em; - padding-top: 0.5em; - border-top: 1px solid #d7dde3; - } -} diff --git a/sass/elements/header.scss b/sass/elements/header.scss deleted file mode 100644 index 5461361..0000000 --- a/sass/elements/header.scss +++ /dev/null @@ -1,94 +0,0 @@ -header.intro-card { - display: flex; - flex-wrap: wrap; - flex-direction: row; - justify-content: space-around; - align-items: center; - - width: max-content; - max-width: 95vw; - - margin: 2em auto; - - font-family: "IBM Plex Serif", serif; - - // Image Controls - &[data-size="large"] { - img { - width: 120px; - height: 120px; - } - } - - // Text column - .header-text { - margin-left: 1em; - height: max-content; - - span { - margin: 0; - line-height: 1em; - } - - .header-name { - font-size: 2rem; - font-weight: 700; - margin-bottom: 0.5rem; - } - } - - // Links - &[data-size="large"] { - .header-links { - margin: 0; - padding-left: 0; - - li { - list-style-type: none; - height: 1.25em; - margin: 0; - padding: 0; - a { - display: flex; - flex-direction: row; - align-items: center; - - img { - display: inline-block; - margin-right: 1px; - height: 1em; - width: 1em; - filter: invert(9%) sepia(97%) saturate(6581%) hue-rotate(247deg) - brightness(94%) contrast(144%); - } - } - } - } - } - - // Alter the design if in small mode - &[data-size="small"] { - hr { - display: none; - } - - .header-links { - display: none; - } - - img { - width: 50px; - height: 50px; - } - } -} - -header.page-header { - margin-bottom: 1em; - - .subtitle { - font-family: "IBM Plex Serif", serif; - font-size: 1.25em; - color: gray; - } -} diff --git a/sass/elements/headings.scss b/sass/elements/headings.scss deleted file mode 100644 index b992632..0000000 --- a/sass/elements/headings.scss +++ /dev/null @@ -1,28 +0,0 @@ - -h1, -h2, -h3, -h4, -h5, -h6 { - margin-top: 24px; - margin-bottom: 16px; - padding-bottom: 0.3em; - font-weight: 600; - line-height: 1.25; - - border-bottom: 1px solid #d7dde3; - - font-family: "IBM Plex Serif", serif; - font-kerning: normal; - font-variant-ligatures: normal; - - code { - padding: 0 0.2em; - font-size: inherit; - } -} - -h1 { - font-size: 2em; -} diff --git a/sass/elements/image.scss b/sass/elements/image.scss deleted file mode 100644 index 6892912..0000000 --- a/sass/elements/image.scss +++ /dev/null @@ -1,9 +0,0 @@ -img { - max-width: 100%; - border-radius: 5px; - display: block; - margin: auto; - - // NOTE: Enabling this breaks white images - // box-shadow: 0 3px 3px #717171; -} diff --git a/sass/elements/list.scss b/sass/elements/list.scss deleted file mode 100644 index 862e945..0000000 --- a/sass/elements/list.scss +++ /dev/null @@ -1,26 +0,0 @@ -ol, -ul { - margin-top: 0; - margin-bottom: 16px; - padding-left: 2em; - ol, - ul { - margin-top: 0; - margin-bottom: 0; - // list-style-type: lower-roman; - // ol, - // ul { - // list-style-type: lower-alpha; - // } - } -} - -li { - font-size: 1.25rem; - & > p { - margin-top: 16px; - } - & + li { - margin-top: 0.25em; - } -} diff --git a/sass/elements/music-info-card.scss b/sass/elements/music-info-card.scss deleted file mode 100644 index bb7be17..0000000 --- a/sass/elements/music-info-card.scss +++ /dev/null @@ -1,33 +0,0 @@ -.music-info-card { - display: flex; - width: 100%; - border-radius: 5px; - background-color: #f6f8fa; - - @media screen and (max-width: 452px) { - flex-wrap: wrap; - border-radius: 0; - } - - img { - max-width: 200px; - border-top-left-radius: inherit; - border-bottom-left-radius: inherit; - border-top-right-radius: unset; - border-bottom-right-radius: unset; - } - - & > div { - width: 100%; - display: flex; - flex-direction: column; - margin: 0 1em; - - h1.music-title { - // font-size: 2.5em; - // border-bottom: 1px solid gray; - margin-top: 0.25em !important; - margin-bottom: 0 !important; - } - } -} diff --git a/sass/elements/quote.scss b/sass/elements/quote.scss deleted file mode 100644 index 8306229..0000000 --- a/sass/elements/quote.scss +++ /dev/null @@ -1,49 +0,0 @@ -blockquote, -.text-note { - margin: 0; - padding: 0 1em; - margin-bottom: 1em; - border-left-width: 0.25em; - border-left-style: solid; - - & > :first-child { - margin-top: 0; - } - & > :last-child { - margin-bottom: 0; - } -} - -blockquote { - color: #57606a; - border-left-color: #d0d7de; -} - -.text-note { - color: black; - - .note-title { - margin-bottom: 0.5em; - } - - &[data-type="info"] { - border-left-color: #0969da; - .note-title { - color: #0969da; - } - } - - &[data-type="note"] { - border-left-color: #9a6700; - .note-title { - color: #9a6700; - } - } - - &[data-type="warning"] { - border-left-color: #cf222e; - .note-title { - color: #cf222e; - } - } -} diff --git a/sass/elements/table.scss b/sass/elements/table.scss deleted file mode 100644 index 75f0bbb..0000000 --- a/sass/elements/table.scss +++ /dev/null @@ -1,47 +0,0 @@ -table { - border-spacing: 0; - border-collapse: collapse; - display: block; - width: max-content; - max-width: 100%; - overflow: auto; - - // NOTE: Things don't look great if you do this - margin: auto; - - td, - th { - padding: 0; - padding: 6px 13px; - border: 1px solid #d0d7de; - - &:has(> audio) { - padding: 0; - margin: 0; - } - - audio { - display: block; - width: 100%; - min-width: 120px; - } - } - - - th { - font-weight: 600; - } - - tr { - background-color: #fff; - border-top: 1px solid #d7dde3; - - &:nth-child(2n) { - background-color: #f6f8fa; - } - } - - img { - background-color: transparent; - } -} diff --git a/sass/elements/text.scss b/sass/elements/text.scss deleted file mode 100644 index 40b415c..0000000 --- a/sass/elements/text.scss +++ /dev/null @@ -1,37 +0,0 @@ - - -p { - margin-top: 0; - margin-bottom: 16px; - padding: 0 0.25em; - font-size: 1.25rem; - - text-align: justify; - hyphens: auto; - font-kerning: normal; - font-variant-ligatures: normal; - // font-variant-ligatures: common-ligatures contextual discretionary-ligatures historical-ligatures; -} - -.no-justify { - p { - text-align: left !important; - hyphens: none; - } -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} diff --git a/sass/styles.scss b/sass/styles.scss deleted file mode 100644 index 3ef33d6..0000000 --- a/sass/styles.scss +++ /dev/null @@ -1,153 +0,0 @@ -// Note: Some things are broken out into smaller files - -@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap'); -// @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap'); - -$content-max-width: 800px; - -@import "elements/header.scss"; - -body { - margin: 1em; - // font-family: serif; - font-family: "Overlock", sans-serif; - font-optical-sizing: auto; - background-color: #f7f4f4; -} - -a { - text-decoration: none; - color: blue !important; - &:visited { - color: blue; - } - &:hover { - color: blueviolet; - } -} - -nav { - max-width: $content-max-width; - margin: 0 auto; - text-align: center; - - font-family: "IBM Plex Serif", serif; - font-weight: 500; - - ul { - max-width: 100%; - display: flex; - flex-wrap: wrap; - flex-direction: row; - align-items: center; - justify-content: center; - width: max-content; - - margin: 0 auto; - padding: 0; - - li { - list-style-type: none; - - &:not(:first-child)::before { - content: " ยท "; - margin-left: 0.25em; - } - } - } - - hr:not(:first-child) { - margin-bottom: 0; - } -} - -main { - max-width: $content-max-width; - margin: auto; - - font-size: 16px; - line-height: 1.5; - word-wrap: break-word; - color: #24292f; - - .title { - margin-bottom: 0; - padding-bottom: 0; - } - - - @import "elements/code.scss"; - @import "elements/headings.scss"; - @import "elements/list.scss"; - @import "elements/quote.scss"; - @import "elements/table.scss"; - @import "elements/text.scss"; - @import "elements/image.scss"; - @import "elements/details.scss"; - @import "elements/music-info-card.scss"; -} - -footer { - max-width: $content-max-width; - text-align: center; - margin: auto; -} - -#sponsor-notice { - background-color: rgb(253, 204, 173); - width: max-content; - margin: auto; - padding: 5px; -} - -.gray { - color: gray; -} - -.hover-help { - &:hover { - cursor: help; - } - border-bottom: 1px double rgb(171, 167, 167); -} - -.mobile-hidden { - @media only screen and (max-width: 650px) { - display: none; - } -} - -.small { - font-size: 0.5em; -} - -.hover-shadow { - &:hover { - box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; - } -} - -.announcement { - max-width: $content-max-width - 40px; - margin: auto; - text-align: center; - font-weight: bold; - background-color: rgb(239, 239, 239); - margin-top: 0; - padding: 0.25em; - border: 2px dashed grey; - border-top: none; - color: dimgray; -} - -.blog-post-list { - span { - font-variant-numeric: tabular-nums; - color: gray; - - &[data-draft="true"] { - color: red !important; - } - } -} diff --git a/static/_headers b/src/_headers similarity index 100% rename from static/_headers rename to src/_headers diff --git a/src/_layouts/default.html b/src/_layouts/default.html index f58d366..621195b 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -10,13 +10,15 @@ {% if page.override_title %}{{page.override_title}}{% else %}{{page.title}} | {{site.title}}{% endif %} + +
- A photo of Evan Pratten + A photo of Evan Pratten
Evan Pratten
diff --git a/src/_layouts/photo.html b/src/_layouts/photo.html index 4e1e035..251e162 100644 --- a/src/_layouts/photo.html +++ b/src/_layouts/photo.html @@ -8,6 +8,7 @@ "{{page.title}}" by {{site.title}} + diff --git a/src/_posts/2024-11-24-the-project-i-wil-never-finish.md b/src/_posts/2024-11-24-the-project-i-will-never-finish.md similarity index 100% rename from src/_posts/2024-11-24-the-project-i-wil-never-finish.md rename to src/_posts/2024-11-24-the-project-i-will-never-finish.md diff --git a/static/_redirects b/src/_redirects similarity index 100% rename from static/_redirects rename to src/_redirects diff --git a/static/_routes.json b/src/_routes.json similarity index 100% rename from static/_routes.json rename to src/_routes.json diff --git a/src/blog.html b/src/blog.html index 467c367..69e8285 100644 --- a/src/blog.html +++ b/src/blog.html @@ -3,17 +3,18 @@ layout: default title: Blog --- +

The following is a list of articles I've written. This is also available in RSS format.

+ {% assign grouped_posts = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} {% for group in grouped_posts %} -

{{ group.name }}

-
    - {% for post in group.items %} -
  • - - {{ post.date | date: "%Y-%m-%d" }}: - {{ post.title }} -
  • - {% endfor %} -
-{% endfor %} +

{{ group.name }}

+
    + {% for post in group.items %} +
  • + {{ post.date | date: "%Y-%m-%d" }}: + {{ post.title }} +
  • + {% endfor %} +
+{% endfor %} \ No newline at end of file diff --git a/static/functions/_middleware.js b/src/functions/_middleware.js similarity index 100% rename from static/functions/_middleware.js rename to src/functions/_middleware.js diff --git a/static/functions/download/minecraft-modpack/[[version]].js b/src/functions/download/minecraft-modpack/[[version]].js similarity index 100% rename from static/functions/download/minecraft-modpack/[[version]].js rename to src/functions/download/minecraft-modpack/[[version]].js diff --git a/static/functions/keys/ssh.js b/src/functions/keys/ssh.js similarity index 100% rename from static/functions/keys/ssh.js rename to src/functions/keys/ssh.js diff --git a/static/geofeed.csv b/src/geofeed.csv similarity index 100% rename from static/geofeed.csv rename to src/geofeed.csv diff --git a/static/functions/.well-known/nodeinfo.js b/static/functions/.well-known/nodeinfo.js deleted file mode 100644 index bb7d173..0000000 --- a/static/functions/.well-known/nodeinfo.js +++ /dev/null @@ -1,17 +0,0 @@ -export function onRequest(context) { - return new Response( - JSON.stringify({ - "links": [ - { - "href": "https://ewpratten.com/api/activitypub/nodeinfo", - "rel": "http://nodeinfo.diaspora.software/ns/schema/2.0" - } - ] - }), - { - headers: { - "Content-Type": "application/jrd+json", - }, - } - ) -} \ No newline at end of file diff --git a/static/functions/.well-known/webfinger.js b/static/functions/.well-known/webfinger.js deleted file mode 100644 index ba53e1d..0000000 --- a/static/functions/.well-known/webfinger.js +++ /dev/null @@ -1,20 +0,0 @@ -export function onRequest(context) { - return new Response( - JSON.stringify({ - "subject": "acct:evan@ewpratten.com", - "aliases": [], - "links": [ - { - "rel": "self", - "type": "application/activity+json", - "href": "https://ewpratten.com/api/activitypub/users/evan" - } - ] - }), - { - headers: { - "Content-Type": "application/jrd+json", - }, - } - ) -} \ No newline at end of file diff --git a/static/functions/api/activitypub/nodeinfo.js b/static/functions/api/activitypub/nodeinfo.js deleted file mode 100644 index ced0865..0000000 --- a/static/functions/api/activitypub/nodeinfo.js +++ /dev/null @@ -1,45 +0,0 @@ -const RSS_ITEM_PATTERN = /\s+([^<]+)<\/title>\s+<pubDate>([^<]+)<\/pubDate>\s+<author>([^<]+)<\/author>\s+<link>([^<]+)<\/link>\s+<guid>([^<]+)<\/guid>\s+<description[^>]+>([^<]+)<\/description>\s+<\/item>/gm; - -export async function onRequest(context) { - - // Request our own RSS feed - let rss_feed = await fetch("https://ewpratten.com/feed.xml"); - - // Parse the RSS feed - let rss_data = await rss_feed.text(); - let items = rss_data.matchAll(RSS_ITEM_PATTERN); - - // Generate the outbox content - return new Response( - JSON.stringify({ - "metadata": {}, - "openRegistrations": false, - "protocols": [ - "activitypub" - ], - "services": { - "inbound": [], - "outbound": [] - }, - "software": { - "name": "Cloudflare Workers", - "version": "0.0.0" - }, - "usage": { - "localPosts": items.length, - "users": { - "activeHalfyear": 1, - "activeMonth": 1, - "total": 1 - } - }, - "version": "2.0" - } - ), - { - headers: { - "Content-Type": "application/json", - }, - } - ) -} \ No newline at end of file diff --git a/static/functions/api/activitypub/outbox.js b/static/functions/api/activitypub/outbox.js deleted file mode 100644 index ac8d429..0000000 --- a/static/functions/api/activitypub/outbox.js +++ /dev/null @@ -1,46 +0,0 @@ -const RSS_ITEM_PATTERN = /<item>\s+<title>([^<]+)<\/title>\s+<pubDate>([^<]+)<\/pubDate>\s+<author>([^<]+)<\/author>\s+<link>([^<]+)<\/link>\s+<guid>([^<]+)<\/guid>\s+<description[^>]+>([^<]+)<\/description>\s+<\/item>/gm; - -export async function onRequest(context) { - - // Request our own RSS feed - let rss_feed = await fetch("https://ewpratten.com/feed.xml"); - - // Parse the RSS feed - let rss_data = await rss_feed.text(); - let items = rss_data.matchAll(RSS_ITEM_PATTERN); - - // Generate the outbox content - return new Response( - JSON.stringify({ - "@context": "https://www.w3.org/ns/activitystreams", - "id": "https://ewpratten.com/api/activitypub/outbox", - "summary": "Evan Pratten", - "type": "OrderedCollection", - "totalItems": items.length, - "orderedItems": Array.from(items).map((item) => { - return { - "@context": "https://www.w3.org/ns/activitystreams", - "id": item[5] + "-create", - "type": "Create", - "actor": "https://ewpratten.com/api/activitypub/users/evan", - "object": { - "id": item[5], - "type": "Note", - "content": item[1], - "url": item[4], - "attributedTo": "https://ewpratten.com/api/activitypub/users/evan", - "to": [ - "https://www.w3.org/ns/activitystreams#Public" - ], - "published": item[2], - } - } - }) - }), - { - headers: { - "Content-Type": "application/activity+json", - }, - } - ) -} \ No newline at end of file diff --git a/static/functions/api/activitypub/users/evan.js b/static/functions/api/activitypub/users/evan.js deleted file mode 100644 index 7b0625d..0000000 --- a/static/functions/api/activitypub/users/evan.js +++ /dev/null @@ -1,44 +0,0 @@ -export function onRequest(context) { - return new Response( - JSON.stringify({ - "@context": [ - "https://www.w3.org/ns/activitystreams", - "https://w3id.org/security/v1", - { - "@language": "en" - } - ], - "type": "Person", - "manuallyApprovesFollowers": true, - "discoverable": true, - "id": "https://ewpratten.com/api/activitypub/users/evan", - "outbox": "https://ewpratten.com/api/activitypub/inbox", - "outbox": "https://ewpratten.com/api/activitypub/outbox", - "preferredUsername": "evan", - "name": "Evan Pratten", - "summary": "I make things", - "icon": [ - "https://ewpratten.com/images/pfp/2022/460x460.webp" - ], - "attachment": [ - { - "name": "Website", - "type": "PropertyValue", - "value": "<a href=\"https://ewpratten.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\">ewpratten.com</a>" - } - ], - "publicKey": { - "@type": "Key", - "id": "https://ewpratten.com/api/activitypub/users/evan#main-key", - "owner": "https://ewpratten.com/api/activitypub/users/evan", - "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJwe4jxrpiDx0vzqnoc+3Mja7X\nz73/NxfDqG9Mu+k6Vs87N/+kV4BbsbJ/vtdYAg58+iMDmyRw48CzaXkPDgiCh3RZ\nFc/8GniBSEucjt/QEiAitV48aykqWyXtln0hAmQrjoEeE9DRxS3eyF7FVE2GhkTz\n1YqBabOMpHA1uGOp7QIDAQAB\n-----END PUBLIC KEY-----" - }, - "url": "https://ewpratten.com", - }), - { - headers: { - "Content-Type": "application/activity+json", - }, - } - ) -} \ No newline at end of file diff --git a/templates/404.html b/templates/404.html deleted file mode 100644 index 4c406ca..0000000 --- a/templates/404.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -<h1>404: Not Found</h1> -<p>There is a large chance you reached this page through a <code>retrylife.ca</code> or <code>va3zza.com</code> link. I - have recently changed my primary domain name to <code>ewpratten.com</code></p> -<p>I would appreciate if you could send me an email letting me know what you clicked to get here.</p> -<p>Click one of the links at the top of this page to navigate through the new website.</p> -{% endblock content %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index a5cfce1..0000000 --- a/templates/base.html +++ /dev/null @@ -1,202 +0,0 @@ -{# Some common data #} -{%if page.path or section.path %} -{% set title = page.title | default(value=section.title) %} -{% set path = page.path | default(value=section.path) %} -{% set content = page.content | default(value=section.content) %} -{% set extra = page.extra | default(value=section.extra) %} -{% set is_blog_post = path != "/blog/" and path is starting_with("/blog/") %} -{% set is_photo_page = path != "/photography/" and path is starting_with("/photography/") %} -{% else %} -{# If here, we are on the 404 page #} -{% set title = "NOT FOUND" %} -{% set path = "/404" %} -{% set extra = [] %} -{% set is_blog_post = false %} -{% set is_photo_page = false %} -{% endif %} - -<!DOCTYPE html> -<html lang="en"> - -<head> - {% block head %} - <!--noformat--> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>{{title}} | {{config.title}} - - - {% if current_url %}{% endif %} - - - - {# OpenGraph #} - - - - {% set opengraph_image = extra.og_image | default(value=config.extra.profile_photo)%} - - {% if extra.og_description %} - - - - {% elif page.description %} - - - - {% endif %} - - {% if page.path %}{% endif %} - {% if page.date %}{% endif %} - - {# Fonts #} - - - - - {# Allow pages to import custom CSS if they need #} - {% for url in extra.css_import | default(value=[]) %} - - {% endfor %} - - {# Allow pages to import custom Head JS if they need #} - {% for url in extra.head_js_import | default(value=[]) %} - - {% endfor %} - - - - {% endblock head %} - - - - - {# Heading section (profile photo & name) #} -
- Evan Pratten -
- Evan Pratten
- Software Developer -
- -
-
- - {# Navigation #} - - - {# Announcement Handling #} - {% if config.extra.home_announcement and path == "/" %} -
- {{config.extra.home_announcement | safe}} -
- {% elif config.extra.global_announcement %} -
- {{config.extra.global_announcement | safe}} -
- {% endif %} - - {# Page Content #} -
- {% block content %} -
- - - {{ content | safe }} -
- {% endblock content %} -
- - {# Footer #} -
- {# {% if is_blog_post or is_photo_page %} -
- - {% endif %} #} -
-
- -
- -
- {# Goatcounter #} - - - {# Google Analytics #} - - - - {# Mermaid #} - - - - {# MathJax #} - - -
- - {# Allow pages to import custom CSS if they need #} -
- {% for url in extra.js_import | default(value=[]) %} - - {% endfor %} -
- - {# Used to for brid.gy verification #} - - - - \ No newline at end of file diff --git a/templates/blog-timeline.html b/templates/blog-timeline.html deleted file mode 100644 index 3a90258..0000000 --- a/templates/blog-timeline.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "base.html" %} - - -{% block content %} - -{{super()}} - -{# Posts shall be broken down by year #} -{% set title_year = "3000" %} -{% for page in section.pages %} -{% if not page.extra.hidden %} -{% set page_year = page.date | date(format="%Y")%} -{% if page_year != title_year %} -{% set_global title_year = page_year %} - - -

{{title_year}}

-
    - {% endif %} -
  • - {{page.date}}: - {{page.title}} -
  • - {% endif %} - {% endfor %} -
- -{% endblock content %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 315b793..0000000 --- a/templates/index.html +++ /dev/null @@ -1,77 +0,0 @@ -{% extends "base.html" %} - -{% block head %} -{{super()}} - -{# JSON LD #} - -{% endblock head %} - -{% block content %} -{{ section.content | safe}} -{% endblock content %} \ No newline at end of file diff --git a/templates/map.html b/templates/map.html deleted file mode 100644 index 43e8b18..0000000 --- a/templates/map.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - {{page.title}} | {{config.title}} - - - {% if current_url %}{% endif %} - - {# OpenGraph #} - - - - - - - - - - {# - #} - - - - - - {# Page Content #} -
-
- - {{page.content | safe}} -
- - {# A bit of a hack to get VSCode to format this document correctly #} - {% if page.extra.bg_color %} - - {% endif %} - - {# Goatcounter #} - - - - - \ No newline at end of file diff --git a/templates/page.html b/templates/page.html deleted file mode 100644 index 6407a57..0000000 --- a/templates/page.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends "base.html" %} - -{% block head %} -{{super()}} - -{# JSON LD #} - -{% endblock head %} \ No newline at end of file diff --git a/templates/photo-timeline.html b/templates/photo-timeline.html deleted file mode 100644 index 53ac767..0000000 --- a/templates/photo-timeline.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "base.html" %} - - -{% block content %} - -{{super()}} - -{% for page in section.pages %} -{% if not page.extra.hidden %} - - - {{page.title}} -
- {{page.title}} - {{page.date}} -
-
-
-
- -{% endif %} -{% endfor %} - -{% endblock content %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html deleted file mode 100644 index dbc6c55..0000000 --- a/templates/section.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - - -{% block content %} - -{{super()}} - -{% endblock content %} \ No newline at end of file diff --git a/templates/shortcodes/cdots.html b/templates/shortcodes/cdots.html deleted file mode 100644 index a1b729f..0000000 --- a/templates/shortcodes/cdots.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/templates/shortcodes/github.html b/templates/shortcodes/github.html deleted file mode 100644 index bbe9ff2..0000000 --- a/templates/shortcodes/github.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/templates/shortcodes/music_card.html b/templates/shortcodes/music_card.html deleted file mode 100644 index d3bd705..0000000 --- a/templates/shortcodes/music_card.html +++ /dev/null @@ -1,7 +0,0 @@ -
- Cover Image -
-

{{page.title}}

- {{body | safe}} -
-
\ No newline at end of file diff --git a/templates/shortcodes/note.html b/templates/shortcodes/note.html deleted file mode 100644 index 44ee5c1..0000000 --- a/templates/shortcodes/note.html +++ /dev/null @@ -1,8 +0,0 @@ -
-
- {{type | default(value='info') | capitalize}} -
-
- {{body | safe}} -
-
\ No newline at end of file diff --git a/templates/video-timeline.html b/templates/video-timeline.html deleted file mode 100644 index b67e080..0000000 --- a/templates/video-timeline.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "base.html" %} - - -{% block content %} - -{{super()}} - -{% for page in section.pages %} -{% if not page.extra.hidden %} - - - {% if page.extra.cover_img %} - {{page.title}} - {% else %} - {{page.title}} - {% endif %} -
- {{page.title}} - {{page.date}} -
-
-
-
- -{% endif %} -{% endfor %} - -{% endblock content %} \ No newline at end of file