diff --git a/9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc b/keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc similarity index 100% rename from 9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc rename to keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc diff --git a/9F0048AC0B23301E1F77E994909F6BD6F80F485D.pgp b/keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.pgp similarity index 100% rename from 9F0048AC0B23301E1F77E994909F6BD6F80F485D.pgp rename to keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.pgp diff --git a/routes/static.js b/routes/static.js index 252bb0a..cec477b 100644 --- a/routes/static.js +++ b/routes/static.js @@ -6,4 +6,11 @@ router.use('/favicon.png', express.static(path.join(__dirname, '../', 'public', router.use('/static', express.static(path.join(__dirname, '../', 'public'))) router.use('/static', express.static(path.join(__dirname, '../', 'content', 'img'))) +router.use('/*.asc', (req, res, next) => { + res.sendFile(path.join(__dirname, '../', 'keys', `${req.params[0]}.asc`)) +}) +router.use('/*.pgp', (req, res, next) => { + res.sendFile(path.join(__dirname, '../', 'keys', `${req.params[0]}.pgp`)) +}) + module.exports = router diff --git a/views/id.pug b/views/id.pug index bf42af3..dc2fb4b 100644 --- a/views/id.pug +++ b/views/id.pug @@ -44,4 +44,4 @@ | Location: span.p-country-name The Netherlands pre(style="display:none").key - include ../9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc + include ../keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc diff --git a/views/pgp.pug b/views/pgp.pug index 647f762..85b1af4 100644 --- a/views/pgp.pug +++ b/views/pgp.pug @@ -27,4 +27,4 @@ block content h3#pgp-public-key Plaintext pre.select-all code - include ../9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc + include ../keys/9F0048AC0B23301E1F77E994909F6BD6F80F485D.asc diff --git a/views/work.pug b/views/work.pug new file mode 100644 index 0000000..8414a07 --- /dev/null +++ b/views/work.pug @@ -0,0 +1,44 @@ +extends templates/main + +mixin foss_contribution($item) + p + a(href="{$item['url-repo']}") !{$item['repo']} + | — + a(href="{$item['url-item']}") #!{$item['id']} + br + | !{$item['title']} + +block content + header + h1 + | Work + nav + | >> + a(href="/about") about me + | > + a(href="/work") work + + main + h2 >> VCS accounts + + .wrapper-table + table + tbody + tr + td Codeberg + td + a(href="https://codeberg.org/yarmo" rel="me") @yarmo + tr + td GitLab + td + a(href="https://gitlab.com/yarmo" rel="me") @yarmo + tr + td Github + td + a(href="https://github.com/YarmoM" rel="me") @YarmoM + + h2 >> Contributions + + each $item in $foss + +foss_contribution($item) +