Add first src files
This commit is contained in:
parent
0545a2b764
commit
5a5741db59
10
src/404.pug
Normal file
10
src/404.pug
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
doctype html
|
||||||
|
html(lang="en")
|
||||||
|
head
|
||||||
|
title Error
|
||||||
|
style.
|
||||||
|
html { color-scheme: light dark; }
|
||||||
|
body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||||
|
body
|
||||||
|
h1 An error occurred
|
||||||
|
p Sorry, the page you are looking does not exist.
|
||||||
13
src/50x.pug
Normal file
13
src/50x.pug
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
doctype html
|
||||||
|
html(lang="en")
|
||||||
|
head
|
||||||
|
title Error
|
||||||
|
style.
|
||||||
|
html { color-scheme: light dark; }
|
||||||
|
body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||||
|
body
|
||||||
|
h1 An error occurred
|
||||||
|
p Sorry, the page you are looking for is currently unavailable.<br>Please try again later.
|
||||||
|
p If you are the system administrator of this resource then you should check the error log for details.
|
||||||
|
p
|
||||||
|
em Faithfully yours, nginx.
|
||||||
12
src/data/snippets.json
Normal file
12
src/data/snippets.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"title": "Seconds since last pacman sync",
|
||||||
|
"slug": "seconds-since-last-pacman-sync",
|
||||||
|
"snippet": "echo $(expr $(date +%s) - $(grep -rn -A 1 %INSTALLDATE% /var/lib/pacman/local/*/desc | grep -oP '\\d{10,}$' | sort | tail -1))",
|
||||||
|
"tags": [
|
||||||
|
"archlinux",
|
||||||
|
"linux",
|
||||||
|
"pacman"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
6
src/index.pug
Normal file
6
src/index.pug
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
doctype html
|
||||||
|
html(lang='en')
|
||||||
|
head
|
||||||
|
title Portfolio - Daniel de Cloet
|
||||||
|
body
|
||||||
|
span#out
|
||||||
3
src/js/app.js
Normal file
3
src/js/app.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const snippets = require('../data/snippets.json');
|
||||||
|
|
||||||
|
console.log(snippets);
|
||||||
Loading…
Reference in New Issue
Block a user