Skip to content

Commit

Permalink
made a few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paglobal committed Dec 9, 2023
1 parent 7daf7c7 commit 19c4338
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}
</style>
<!-- please do not edit the contents of the the `div` tag below. it is used to render and style the markdown content -->
<div class="template-content"><div class="not-found"><a href="/">404<br>Oops, Page Not Found<br>Please Click To Go Back Home</a></div></div>
<div class="template-content"><div class="not-found"><a href="/">404<br />Oops, Page Not Found<br />Please Click To Go Back Home</a></div></div>
</template>
<style class="shell-style-sheet"></style>
<div class="shell-html"></div>
Expand Down
14 changes: 12 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,17 @@ function renderShellHTML() {
${components.navSection()}
<div class="content">${document.querySelector("template").innerHTML}</div>
<div class="copyright">
Copyright © ${new Date().getFullYear()} Paul Amoah
Copyright © ${new Date().getFullYear()} Paul Amoah | Last Updated:
${new Date()
.toDateString()
.split(" ")
.filter((_, index) => index !== 0)
.map((value, index) => (index === 1 ? `${value},` : value))
.join(" ")}<br />
Style adapted from
<a href="https://astro-theme-cactus.netlify.app/" target="_blank">
Astro Cactus Theme
</a>
</div>
`;
}
Expand Down Expand Up @@ -529,7 +539,7 @@ function renderShellStyleSheet() {
.copyright {
color: var(--tertiary-stroke);
font-size: 0.85rem;
/* font-weight: bold; */
text-align: center;
position: absolute;
bottom: 0;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function handleFileOutput(path) {
fs.outputFileSync(
__dirname + "404.html",
wrapWithBase(
`<div class="not-found"><a href="/">404<br>Oops, Page Not Found<br>Please Click To Go Back Home</a></div>`,
`<div class="not-found"><a href="/">404<br />Oops, Page Not Found<br />Please Click To Go Back Home</a></div>`,
),
);
} else {
Expand Down
6 changes: 1 addition & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body {

html.dark,
body.dark {
/* --primary-fill: #111; */
--primary-fill: #1c1e20;
--primary-stroke: #ededed;
--secondary-stroke: #c8c9cb;
Expand Down Expand Up @@ -87,11 +88,6 @@ a,
button {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
/* -webkit-user-select: none; */
/* -khtml-user-select: none; */
/* -moz-user-select: none; */
/* -ms-user-select: none; */
/* user-select: none; */
}

.not-found {
Expand Down

0 comments on commit 19c4338

Please sign in to comment.