Compare commits
4 Commits
32a150c0ce
...
senpai
| Author | SHA1 | Date | |
|---|---|---|---|
| 68759887c0 | |||
| ce958e93fb | |||
| 17dc8342cb | |||
| a88e284c1e |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.md linguist-language=Astro
|
||||
*.mdx linguist-language=Astro
|
||||
@@ -41,6 +41,6 @@ jobs:
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: "dist/*"
|
||||
target: /srv/website/dev
|
||||
target: /srv/website/stable
|
||||
overwrite: true
|
||||
strip_components: 1
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
.welcome-typewriter-nostyle {
|
||||
min-height: 1em;
|
||||
border-right: 2px solid orange;
|
||||
border-right: 2px solid rgb(var(--accent-base));
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
overflow-x: hidden;
|
||||
@@ -70,7 +70,7 @@
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
width: 0px;
|
||||
border-right: 2px solid orange;
|
||||
border-right: 2px solid rgb(var(--accent-base));
|
||||
animation: blink-caret 1s step-end infinite;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
}
|
||||
|
||||
@keyframes blink-caret {
|
||||
from, to { border-color: orange }
|
||||
from, to { border-color: rgb(var(--accent-base)) }
|
||||
50% { border-color: transparent; }
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ Beides Ok.
|
||||
Achso, außer dass `app` dann deprecated wurde.
|
||||
|
||||
Next.js war für mich die erste Berührung mit dem JavaScript Ökosystem und plötzlich verstand ich die ganzen Memes.
|
||||
Dann kam auch plötzlich die Nacht vom dependebot und ich hatte plötzlich 20 PRs, die alle Next.js Updates waren.
|
||||
Dann kam auch plötzlich die Nachricht vom dependebot und ich hatte plötzlich 20 PRs, die alle Next.js Updates waren.
|
||||
Nur, dass ab irgendeinem Punkt man plötzlich sich mit komplizierteren Updates rumschlagen musste und nicht einfach nur `npm audit fix` machen konnte.
|
||||
|
||||
Also brauchte es eine Alternative.
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
import { execSync } from "child_process";
|
||||
import { statSync } from "fs";
|
||||
|
||||
export function remarkModifiedTime() {
|
||||
return function (tree, file) {
|
||||
const filepath = file.history[0];
|
||||
try {
|
||||
const result = execSync(`git log -1 --pretty="format:%cI" "${filepath}"`);
|
||||
// If result is empty or undefined, fallback to fs stat
|
||||
if (!result || !result.toString().trim()) {
|
||||
throw new Error("No git history");
|
||||
}
|
||||
file.data.astro.frontmatter.lastModified = result.toString();
|
||||
return;
|
||||
} catch (e) {
|
||||
// Ignore, fallback to fs stat
|
||||
const result = statSync(filepath);
|
||||
file.data.astro.frontmatter.lastModified = result.mtime.toISOString();
|
||||
return;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user