Skip to content

Commit

Permalink
Add frontmatter to markdown files, update layouts, and integrate Boot…
Browse files Browse the repository at this point in the history
…strap
  • Loading branch information
andrewshawcare committed Feb 18, 2025
1 parent 83db0cc commit 7addc9f
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
4 changes: 3 additions & 1 deletion content/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Andrew Shaw Care
---
title: Andrew Shaw Care
---

{% table-of-contents type="anthologies" %}
6 changes: 4 additions & 2 deletions content/zettelkasten/1-fleeting-notes.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: Fleeting notes
layout: article
layout: note
---

_Fleeting notes_ are used to record thoughts as soon as they happen. At a later time, they are compiled into [permanent notes](./3-permanent-notes.md) and discarded.
Fleeting notes are used to record thoughts as soon as they happen.

At a later time, they are compiled into [permanent notes](./3-permanent-notes.md) and discarded.

The etymology of _fleeting_:

Expand Down
2 changes: 1 addition & 1 deletion templates/layouts/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% partial file="head.md" /%}

<body>
<body class="p-3 container">

<article>

Expand Down
2 changes: 1 addition & 1 deletion templates/layouts/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% partial file="head.md" /%}

<body>
<body class="p-3 container">

# {% $frontmatter.title %}

Expand Down
31 changes: 31 additions & 0 deletions templates/layouts/note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<html lang="en">

{% partial file="head.md" /%}

<body>

<article class="w-50 my-3 mx-auto p-3 card">

<header>

# {% $frontmatter.title %}

<nav>

{% table-of-contents type="headings" /%}

</nav>

</header>

<main>

{% $content %}

</main>

</article>

</body>

</html>
2 changes: 2 additions & 0 deletions templates/partials/head.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
<title>Andrew Shaw Care</title>

<link rel="stylesheet" href="/index.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script async="true" type="module" src="/index.js"></script>
</head>

0 comments on commit 7addc9f

Please sign in to comment.