This commit is contained in:
parent
1f1d0b66da
commit
6e785284f2
3 changed files with 2 additions and 4 deletions
1
index.ts
1
index.ts
|
|
@ -66,7 +66,6 @@ await Promise.all(posts.map(async (post) => {
|
|||
.replaceAll("[[TITLE]]", `${metadata.title} - ${frontmatter.title}`)
|
||||
.replaceAll("[[POST_TITLE]]", frontmatter.title)
|
||||
.replaceAll("[[DATE]]", frontmatter.date.toDateString())
|
||||
.replaceAll("[[REVISIONS]]", `${metadata.revisions}/${post}`)
|
||||
.replaceAll("[[DESC]]", frontmatter.desc)
|
||||
.replace("[[CONTENT]]", html);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,5 @@
|
|||
"title": "satr14's mind",
|
||||
"name": "satr14",
|
||||
"description": "Welcome to my 2nd over-engineered corner of the Interwebs! I'm Satria, Im a self-taught hobbyist web developer and homelaber sysadmin from Indonesia. I've been programming since 2021 and spend my free time working on personal projects.\n\nThis blog is where I share my thoughts, projects, experiences, tutorials, and just about anything I feel like sharing. Have any corrections, suggestions, or just wanna chat? Feel free to send an [email](mailto:admin@satr14.my.id) or contact me on other [platforms](https://satr14.my.id).",
|
||||
"timezone": "Asia/Jakarta",
|
||||
"revisions": "https://git.satr14.my.id/satr14/ssg.md/commits/branch/main/posts"
|
||||
"timezone": "Asia/Jakarta"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</header>
|
||||
<main class="my-6">
|
||||
<h1 class="text-4xl font-bold">[[POST_TITLE]]</h1>
|
||||
<span class="text-ctp-subtext0 italic block mb-10">[[DATE]] - <a href="[[REVISIONS]]">view revisions</a></span>
|
||||
<span class="text-ctp-subtext0 italic block mb-10">[[DATE]]</span>
|
||||
[[CONTENT]]
|
||||
</main>
|
||||
<footer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue