{{ .Title }}
+{{ .Date.Format "January 2, 2006" }}
+ + {{ .Content }} + + +diff --git a/README.md b/README.md index 7d496b1..81d4187 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,52 @@ This repo contains the [Hugo](https://gohugo.io) source for my personal website, Find the active source of this repository on my [Gitea](https://git.clortox.com/Infrastructure/tylerperkins.xyz), where I make issues to track additions, and am more active to pull requests. Find the mirror of this repository on [Github](https://github.com/Clortox/tylerperkins.xyz). + +## Writing Posts + +### Sidenotes / Margin Notes + +This blog supports Tufte-style sidenotes that appear in the right margin on desktop and at the bottom of posts on mobile. To add a sidenote: + +```markdown +This is some text{{< sidenote >}}This is a sidenote that appears in the margin{{< /sidenote >}} with more text following. +``` + +**Features:** +- On desktop (≥1200px): Notes appear as cards in the right margin, aligned with where they're referenced +- On mobile (<1200px): Notes appear in a "Notes" section at the end of the post +- Automatic numbering: `[0]`, `[1]`, `[2]`, etc. +- Bidirectional links: Click the number in text to jump to the note, click the number in the note to jump back +- Supports markdown and math: `$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$` + +### Summary Breaks + +Control what appears on the homepage and list pages using the `` separator: + +```markdown +--- +title: "My Post Title" +date: 2026-01-16 +--- + +This is the introduction paragraph that will appear on list pages as the summary. + + + +Everything after this line only appears on the full post page. +``` + +Without ``, Hugo will automatically create a summary from the first ~70 words. + +### Clickable Headings + +All headings automatically get anchor links. Hover over any heading to see a `#` symbol appear. Click it to get a direct link to that section. + +### Markdown Source Downloads + +Every post automatically generates a downloadable markdown source file. At the bottom of each post page, you'll find a "Download Markdown" link that provides the original markdown source, including all shortcodes and formatting. + +**Technical Details:** +- Markdown files are generated as `index.md` alongside `index.html` in each post directory +- The raw content includes front matter, shortcodes, and all original formatting +- This is configured via Hugo's custom output formats in `config.yaml` diff --git a/config.yaml b/config.yaml index a05d26f..156cc9c 100644 --- a/config.yaml +++ b/config.yaml @@ -1,21 +1,19 @@ -baseURL: 'http://tylerperkins.xyx' +baseURL: 'http://tylerperkins.xyz' languageCode: 'en-us' -LanguageCode: 'en-us' -title: 'Tylers Website' -theme: "clortox" -markup: - goldmark: - extensions: - passthrough: - delimiters: - block: - - - \[ - - \] - - - $$ - - $$ - inline: - - - \( - - \) - enable: true -params: - math: true +title: "Tyler Perkins" + +outputs: + page: + - HTML + - markdown + +outputFormats: + markdown: + mediaType: "text/markdown" + isPlainText: true + isHTML: false + permalinkable: false + name: "markdown" + path: "" + baseName: "index" + rel: "alternate" diff --git a/content/_index.md b/content/_index.md index fe6b507..8ad5015 100644 --- a/content/_index.md +++ b/content/_index.md @@ -3,7 +3,10 @@ title: "Home" date: 2023-06-27 --- +Software engineer, aspiring polymath. I like to do a little bit of everything. -# Hi, I'm Tyler +Interested in proving correctness, embedded systems, system design, genetic engineering, microscopy, +mechanical engineering, pure math (mostly algebra, category theory, number theory), operating systems design, +security, and more. -software engineer, aspiring postmath +Open to research work and projects ([email me](mailto:hello@clortox.com)) diff --git a/data/footer.json b/data/footer.json deleted file mode 100644 index c28d788..0000000 --- a/data/footer.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "Contact": [ - { - "name": "Email", - "url": "mailto:hello@clortox.com" - }, - { - "name": "LinkedIn", - "url": "https://www.linkedin.com/in/tyler-perkins-xyz/" - }, - { - "name": "Github", - "url": "https://github.com/Clortox" - } - ], - "Services": [ - { - "name": "Git", - "url": "https://git.clortox.com/" - }, - { - "name": "Files", - "url": "https://files.clortox.com/" - }, - { - "name": "Youtube Frontend", - "url": "https://watch.clortox.com/" - } - ] - - -} diff --git a/data/header.json b/data/header.json deleted file mode 100644 index f2b9778..0000000 --- a/data/header.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "LeftHandSide": [ - { - "name": "Home", - "url": "/" - }, - { - "name": "Resume", - "url": "/resume.pdf" - }, - { - "name": "Posts", - "url": "/posts/" - } - ], - "RightHandSide": [ - { - "name": "PGP Key", - "url": "/me.gpg" - }, - { - "name": "User Portal", - "url": "https://auth.clortox.com/" - } - ] - -} diff --git a/data/index.json b/data/index.json deleted file mode 100644 index e8d3e51..0000000 --- a/data/index.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "About": { - "Content": [ - { - "value": "Software developer with a passion for learning everything." - }, - { - "value": "Employed as a full stack developer at Etactics Inc, with a focus on back end development and system architecture." - }, - { - "value": "Aspiring polymath; Jack of all trades, master of few." - }, - { - "value": "Special interest in software design and architecture, pure math, and all forms of engineering." - }, - { - "value": "Currently persuing a Masters in Computer Science at Georgia Tech." - } - ], - "Interests": [ - { - "value": "Software Architecture" - }, - { - "value": "Embedded Systems" - }, - { - "value": "Computer Engineering" - }, - { - "value": "Mechanical Engineering" - }, - { - "value": "Control Systems" - }, - { - "value": "Fabrication (Welding, Woodworking, 3D Printing, Laser Cutting)" - }, - { - "value": "Cars and Small Engines" - }, - { - "value": "Ham Radio (CQCQCQ KE8TIZ QRK?)" - }, - { - "value": "Chemistry" - }, - { - "value": "Mathematics" - }, - { - "value": "Firearms" - }, - { - "value": "Botany" - }, - { - "value": "Homesteading" - }, - { - "value": "Philosophy" - } - ] - } -} diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index 556d8c6..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -
{{ .Date.Format "January 2, 2006" }}
+{{ .Date.Format "January 2, 2006" }}
+ + {{ .Content }} + + ++ ← Back to home + {{ with .OutputFormats.Get "markdown" }} + | Download Markdown + {{ end }} +
+ + +{{ end }} diff --git a/layouts/_default/single.markdown b/layouts/_default/single.markdown new file mode 100644 index 0000000..49369e5 --- /dev/null +++ b/layouts/_default/single.markdown @@ -0,0 +1,7 @@ +--- +title: "{{ .Title }}" +date: {{ .Date.Format "2006-01-02" }} +{{ if .Draft }}draft: true{{ end }} +--- + +{{ .RawContent }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 15e8b2b..609ee5f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,32 +1,17 @@ {{ define "main" }} -~ $
-{{ .Date.Format "January 2, 2006" }}
+ {{ if .Summary }} +{{ .Summary }}
+ {{ end }} +Ideas, projects, and other musings.
-{{ .Summary }}
-