Skip to content

Commit 386f490

Browse files
committed
23.3
[general] - fix meta descriptions - style changes, remove rounded corners - new input styles - minor changes and fixes [projects] - add project images - add "fantasy" [index] - change links to use url service - new marquee strings - style fixes
1 parent 13bf29d commit 386f490

27 files changed

Lines changed: 276 additions & 106 deletions

File tree

.eleventy.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ module.exports = function (eleventyConfig) {
6363

6464
eleventyConfig.addFilter("generateDesc", function (content) {
6565
if (!content) return "personal portfolio website that collects all my projects and professional experiences.";
66-
let text = content.replace(/<[^>]*>/g, '').trim();
66+
const paragraphs = content.match(/<p>[\s\S]*?<\/p>/g) || [];
67+
const text = paragraphs
68+
.map(p => p.replace(/<\/?p>/g, "")) // remove <p> tags
69+
.join(" ") // join all paragraphs
70+
.replace(/<[^>]*>/g, "") // remove all html tags
71+
.replace(/\s+/g, ' ') // remove extra spaces
72+
.trim();
6773
return text.slice(0, 160) + (text.length > 160 ? "..." : "");
6874
});
6975

assets/files/kuma.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/icons/tech/rails.svg

Lines changed: 6 additions & 0 deletions
Loading
95.5 KB
Loading
98.6 KB
Loading
7.76 MB
Loading

assets/media/projects/url/main.png

7.15 KB
Loading

assets/media/projects/url/old.png

13.5 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-lock.yaml

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)