Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
9e7974b
Upgrade to v3upgrade
bryanfriedman Apr 23, 2025
5db563b
Comment out broken plugin for now
bryanfriedman Apr 23, 2025
966849e
Remove TODO.md in favor of GitHub Issues
bryanfriedman Apr 23, 2025
ec4b2b6
Update bio
bryanfriedman Apr 23, 2025
8d3250d
Add GA tag
bryanfriedman Apr 23, 2025
f3e054b
Move Prism and FontAwesome from CDN to self-hosted
bryanfriedman Apr 26, 2025
35f16a8
Doing the environment check a better (working) way
bryanfriedman Apr 26, 2025
f368c54
Add netlify plugins for some deployment checks
bryanfriedman Apr 26, 2025
573c94d
Add header anchors to fix broken links
bryanfriedman Apr 26, 2025
1718966
Fix some more broken links
bryanfriedman Apr 26, 2025
b5d0d56
Some performance improvements
bryanfriedman Apr 26, 2025
cb155e1
Header image performance improvement (jpg to webp)
bryanfriedman Apr 27, 2025
fbec5ae
Try lite-youtube-embed package
bryanfriedman Apr 28, 2025
db4db26
Add new blog for new job
bryanfriedman May 18, 2025
7f967a8
Update link opener and fix broken links
bryanfriedman May 18, 2025
e9458cf
Fix older newer links
bryanfriedman May 18, 2025
f2464e1
Minor updates
bryanfriedman May 19, 2025
49355ef
Add new post about senior project
bryanfriedman Jun 26, 2025
bcdbd22
Fix broken link
bryanfriedman Jun 26, 2025
9bd81aa
Add part 2 OR blog
bryanfriedman Oct 7, 2025
82b6a65
Fix minor typos
bryanfriedman Oct 7, 2025
1b67b12
Upgrade to v3upgrade
bryanfriedman Apr 23, 2025
25c74cb
Comment out broken plugin for now
bryanfriedman Apr 23, 2025
4616f78
Fix dependencies
bryanfriedman Oct 12, 2025
8f55f2b
Use eleventyCopy (if it gets merged)
bryanfriedman Oct 14, 2025
3d276ec
Sort topics alphabetically
bryanfriedman Apr 23, 2025
f9c671b
Move Prism and FontAwesome from CDN to self-hosted
bryanfriedman Apr 26, 2025
d2b4a60
Doing the environment check a better (working) way
bryanfriedman Apr 26, 2025
fc77814
Add netlify plugins for some deployment checks
bryanfriedman Apr 26, 2025
c49a5fe
Add header anchors to fix broken links
bryanfriedman Apr 26, 2025
53b06a4
Some performance improvements
bryanfriedman Apr 26, 2025
02156d6
Try lite-youtube-embed package
bryanfriedman Apr 28, 2025
5abc087
Minor updates
bryanfriedman May 19, 2025
24f11fe
Add new post about senior project
bryanfriedman Jun 26, 2025
dcaf929
Add tech marketing blog
bryanfriedman Nov 30, 2025
e26a35f
Link fix
bryanfriedman Nov 30, 2025
bfba207
Fix link plugin
bryanfriedman Nov 30, 2025
ed43374
Update netlify.toml
bryanfriedman Nov 30, 2025
14f27b5
Never trust AI
bryanfriedman Nov 30, 2025
ac59fda
more trouble than it's worth for now
bryanfriedman Nov 30, 2025
ba36f25
Upgrade to v3upgrade
bryanfriedman Apr 23, 2025
35c4f55
Comment out broken plugin for now
bryanfriedman Apr 23, 2025
f47cfb3
Move Prism and FontAwesome from CDN to self-hosted
bryanfriedman Apr 26, 2025
1ecb5c9
Doing the environment check a better (working) way
bryanfriedman Apr 26, 2025
82b683a
Some performance improvements
bryanfriedman Apr 26, 2025
1fa05ef
Try lite-youtube-embed package
bryanfriedman Apr 28, 2025
325e3bd
Upgrade to v3upgrade
bryanfriedman Apr 23, 2025
5c47d8f
Comment out broken plugin for now
bryanfriedman Apr 23, 2025
0acb70d
fix production variable error
bryanfriedman Dec 24, 2025
0d590d3
Back to working
bryanfriedman Dec 24, 2025
148df5c
add plugin
bryanfriedman Dec 24, 2025
e8262ae
Some performance improvements
bryanfriedman Apr 26, 2025
86d52d8
Try lite-youtube-embed package
bryanfriedman Apr 28, 2025
195d452
Minor updates
bryanfriedman May 19, 2025
e2986b0
Upgrade to v3upgrade
bryanfriedman Apr 23, 2025
0e9980d
Comment out broken plugin for now
bryanfriedman Apr 23, 2025
e4ca0c0
Back to working
bryanfriedman Dec 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.17.0
v22.14.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ I really liked the idea of a clean and more readable `eleventy.config.js` file a

### `_data`

This is the global data file directory as normal in Eleventy, which houses some metadata and a helper function for outputing the current year in the footer. Oone additional note is that I followed the advice on [this post](https://www.roboleary.net/webdev/2024/01/24/eleventy-production-flag.html) to create a global data flag for when the build is for Production to determine when to minify code, among other things.
This is the global data file directory as normal in Eleventy, which houses some metadata and a helper function for outputing the current year in the footer. One additional note is that I followed the advice on [this post](https://www.roboleary.net/webdev/2024/01/24/eleventy-production-flag.html) to create a global data flag for when the build is for Production to determine when to minify code, among other things.

### `assets`

All the folders within here are copied to the root of of the output folder, shedding the `assets` folder, which is only used to help separate from other content and files under the input directory. This includes the `img` folder, which gets copied via passthrough for images that aren't already stored in the same folder as the content (see below), the `js` folder which is copied via passthrough for local development but gets run through minification first for production, and finally, the `scss` folder containing the Sass style templates that get compiled into CSS and copied to the `css` folder.
All the folders within here are copied to the root of the output folder, shedding the `assets` folder, which is only used to help separate from other content and files under the input directory. This includes the `img` folder, which gets copied via passthrough for images that aren't already stored in the same folder as the content (see below), the `js` folder which is copied via passthrough for local development but gets run through minification first for production, and finally, the `scss` folder containing the Sass style templates that get compiled into CSS and copied to the `css` folder.

### `content`

Expand Down
39 changes: 0 additions & 39 deletions TODO.md

This file was deleted.

41 changes: 28 additions & 13 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
// External configuration files
const settings = require("./src/_config/settings.js");
const production = require("./src/_data/production.js");
import settings from './src/_config/settings.js';
import production from './src/_data/production.js';

module.exports = function(eleventyConfig) {
import minify from './src/_config/minify.js';
import sass from './src/_config/sass.js';
import events from './src/_config/events.js';
import shortcodes from './src/_config/shortcodes.js';
import mdrender from './src/_config/mdrender.js';
import filters from './src/_config/filters.js';
import plugins from './src/_config/plugins.js';

export default function(eleventyConfig) {

eleventyConfig.addPassthroughCopy("src/content/**/*.jpg", {
mode: "html-relative"
});

// Copy root directory assets
eleventyConfig.addPassthroughCopy({"src/assets/root": "/"});
Expand All @@ -13,34 +25,37 @@ module.exports = function(eleventyConfig) {
// Copy img assets
eleventyConfig.addPassthroughCopy({"src/assets/img": "/img"});

eleventyConfig.addPassthroughCopy({"src/assets/css": "/css"});

// Copy js assets
eleventyConfig.addPassthroughCopy({"src/assets/js": "/js"});
if (!production) {
eleventyConfig.addPassthroughCopy({"src/assets/js": "/js"});
eleventyConfig.addPassthroughCopy({"src/assets/scripts": "/js"});
} else {
// If not production, minify js and html
eleventyConfig.addPlugin(require('./src/_config/minify.js'));
// If production, minify js and html
eleventyConfig.addPlugin(minify);
}

// Add compiler for scss into css
eleventyConfig.addPlugin(require('./src/_config/sass.js'));
eleventyConfig.addPlugin(sass);

// Run pre- and post-build events for dev workflow
eleventyConfig.addPlugin(require('./src/_config/events.js'));
eleventyConfig.addPlugin(events);

// Add shortcodes
eleventyConfig.addPlugin(require('./src/_config/shortcodes.js'));
eleventyConfig.addPlugin(shortcodes);

// Add Markdown render rules to add custom class for h2
eleventyConfig.addPlugin(require('./src/_config/mdrender.js'));
eleventyConfig.addPlugin(mdrender);

// Add filters for dates, post count, min, etc.
eleventyConfig.addPlugin(require('./src/_config/filters.js'));
eleventyConfig.addPlugin(filters);

// Add 11ty plugins
eleventyConfig.addPlugin(require('./src/_config/plugins.js'));
eleventyConfig.addPlugin(plugins);

// Add watch targets here
eleventyConfig.addWatchTarget("src/_config/purgecss.js");
//eleventyConfig.addWatchTarget("src/_config/purgecss.js");

// Exclude draft files
//if (production) {
Expand Down
19 changes: 18 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,21 @@
publish = "public/"

# Default build command.
command = "npm run build"
command = "npm run build"

[[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
checkExternal = false

[[plugins]]
package = "@netlify/plugin-lighthouse"
[plugins.inputs.audits]
# optional, deploy the lighthouse report to a path under your site
output_path = "reports/lighthouse.html"

#[[plugins]]
# package = "@netlify/plugin-a11y"
# [plugins.inputs]
# # Do not fail the build if a11y issues are found
# failWithIssues = false
Loading