diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-08-13 10:38:12 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-08-13 10:38:12 -0500 |
commit | c1d460f2b88a102be05ddeb04af57db90c9f92bf (patch) | |
tree | 4dd25a8d376fa9ca9a4c9f8f5200a4ef353a3f41 /src/templates.js | |
parent | 9796451829c63c4f1b5d81c1de49e2d88ffe592d (diff) |
Remove client JS requirement from index
Diffstat (limited to 'src/templates.js')
-rw-r--r-- | src/templates.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/templates.js b/src/templates.js new file mode 100644 index 0000000..b1cde30 --- /dev/null +++ b/src/templates.js @@ -0,0 +1,40 @@ +module.exports = { + titlebar: `<nav class="titlebar"> + <div> + <a href="bread" class="btn btn-primary">Bread</a> + <a href="blog" class="btn btn-primary">Blog</a> + <!-- <a href="essay" class="btn btn-primary">Essays</a> (Hello inspector, this page exists, but just isn't very interesting, so I'm removing the link) --> + <a href="https://games.marks.kitchen" class="btn btn-primary">Games</a> + <a href="email" class="btn btn-primary">Email</a> + <a href="misc" class="btn btn-primary">Misc</a> +</div> +</nav>`, + footer: `<footer> + <div>Mark Powers</div> + <div> + <a href="/feed.xml">RSS feed</a> + <span class="spacer"></span> + <a href="https://github.com/Mark-Powers">GitHub</a> + <span class="spacer"></span> + <span>mark-at-marks.kitchen</span> + </div> +</footer>`, + + index: { + pre: `<!doctype html> + <html lang="en"> + + <head> + <title>Mark's Kitchen</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <link rel="stylesheet" type="text/css" href="/css/styles.css"> + <link rel="shortcut icon" href="/favicon.ico"> + </head> + + <body> + <h1>Welcome to Mark's Kitchen</h1>`, + post: `</body> + </html>` + } +}
\ No newline at end of file |