Skip to content

Commit 67714fb

Browse files
committed
23.0
[index] - new background videos - new projects (tahoe, url) - new images for projects - style changes for the project sections - move "other" projects to (smaller) own section - better buttons logic - automated logic for project images - split html and style files - add keyboard shortcuts ("?") - generic alerts support [general] - fix button animation - automated eleventyNavigation - content filter for better meta descriptions - other minor changes and fixes [til] - specific folders for media for each entry - new entry: video-compression [webutils] - use better titles for each util - title changes and other fixes
1 parent 42fa00a commit 67714fb

76 files changed

Lines changed: 802 additions & 434 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eleventy.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ const { buildTagWall, getRecents, getRelated, buildTimestamps } = require('./src
99
const addAsset = require('./src/static/js/building/linking.js');
1010
const { qka, quizButtons, quizQuestions } = require('./src/static/js/building/quizzing.js');
1111
const { buildVersionTag, buildKeywords } = require("./src/static/js/building/package.js");
12+
const projectImages = require("./src/static/js/building/images.js");
1213

1314
module.exports = function (eleventyConfig) {
1415
eleventyConfig.addPlugin(EleventyRenderPlugin);
1516
eleventyConfig.addPlugin(eleventyNavigationPlugin);
1617

17-
eleventyConfig.addPassthroughCopy("./src/static/js");
18+
eleventyConfig.addPassthroughCopy("./src/static/js"); // css is compiled by sass
1819
eleventyConfig.addPassthroughCopy("./assets");
1920
eleventyConfig.addPassthroughCopy("**.json");
2021

22+
eleventyConfig.setQuietMode(true); // suppresses the "Writing" log message
2123
eleventyConfig.setDataFileSuffixes([".data", ""]);
22-
eleventyConfig.setQuietMode(true);
2324
eleventyConfig.setServerOptions({ watch: ["src/static/css/**"], port: 8088 });
2425

2526
eleventyConfig.addShortcode("breadcrumbs", buildBreadcrumbs);
@@ -42,10 +43,21 @@ module.exports = function (eleventyConfig) {
4243
eleventyConfig.addShortcode("version", buildVersionTag);
4344

4445
eleventyConfig.addShortcode("ref", (url, num) => `<a href="${url}" class="ref" target="_blank" rel="noopener noreferrer">[${num}]</a>`);
45-
eleventyConfig.addShortcode("tilImg", (file, alt) => `<figure class="til-img">
46-
<img src="/assets/media/projects/til/${file}" alt="${alt}" />
47-
<figcaption class="til-img-alt">${alt}</figcaption>
48-
</figure>`);
46+
eleventyConfig.addShortcode("tilImg", function (file, alt) {
47+
return `<figure class="til-img">
48+
<img src="/assets/media/projects/til/${this.page.fileSlug}/${file}" alt="${alt}" />
49+
<figcaption class="til-img-alt">${alt}</figcaption>
50+
</figure>`;
51+
});
52+
eleventyConfig.addShortcode("link", (url, text) => `<a href="${url}" target="_blank" rel="noopener noreferrer">${text}</a>`);
53+
54+
eleventyConfig.addShortcode("projectImages", projectImages);
55+
56+
eleventyConfig.addFilter("generateDesc", function (content) {
57+
if (!content) return "personal portfolio website that collects all my projects and professional experiences.";
58+
let text = content.replace(/<[^>]*>/g, '').trim();
59+
return text.slice(0, 160) + (text.length > 160 ? "..." : "");
60+
});
4961

5062
eleventyConfig.setLibrary("njk", new Nunjucks.Environment(
5163
new Nunjucks.FileSystemLoader("./"),

assets/icons/tech/bootstrap.svg

Lines changed: 1 addition & 0 deletions

assets/icons/tech/elastic.svg

Lines changed: 1 addition & 0 deletions

assets/icons/tech/golang.svg

Lines changed: 1 addition & 0 deletions

assets/icons/tech/kafka.svg

Lines changed: 1 addition & 0 deletions

assets/icons/tech/koyeb.svg

Lines changed: 1 addition & 0 deletions

assets/icons/tech/terraform.svg

Lines changed: 1 addition & 0 deletions
52 MB
Binary file not shown.
31.5 MB
Binary file not shown.
45.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)