-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to allow for module inclusion in pages
- Loading branch information
1 parent
04d4929
commit 17b57b8
Showing
10 changed files
with
173 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
_site | ||
src/documents | ||
src/content.robstarbuck.uk | ||
src/content.robstarbuck.uk | ||
src/posts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
robstarbuck.uk | ||
</a> | ||
</nav> | ||
<main> | ||
<main class="cv"> | ||
<div class="content"> | ||
{{ content }} | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const body = document.body; | ||
|
||
if (body && document.documentElement.classList.contains("breakout")) { | ||
if (document.referrer && window.location.href.includes(document.referrer)) { | ||
const button = document.createElement("button"); | ||
button.textContent = "↙ Back"; | ||
button.classList.add("breakout-back"); | ||
button.addEventListener("click", () => history.back()); | ||
body.prepend(button); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
/* https://rsms.me/inter/ */ | ||
html { | ||
html, button { | ||
font-family: "Inter", sans-serif; | ||
} | ||
|
||
@supports (font-variation-settings: normal) { | ||
html { | ||
html, button { | ||
font-family: "Inter var", sans-serif; | ||
} | ||
} | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap'); | ||
pre code { | ||
border-radius: calc(var(--r) * 0.25); | ||
display: block; | ||
padding: calc(var(--pd) * 0.5); | ||
color: var(--highlight-color); | ||
background: var(--highlight-bg); | ||
|
||
font-family: "JetBrains Mono", monospace; | ||
font-optical-sizing: auto; | ||
font-weight: 400; | ||
font-style: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.