initial site

This commit is contained in:
Jake 2021-04-05 09:43:18 +00:00
commit d37bddb161
8 changed files with 2588 additions and 0 deletions

13
.eleventy.js Normal file
View File

@ -0,0 +1,13 @@
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(eleventyNavigationPlugin);
// eleventyConfig.addGlobalData("layout", "main");
return {
pathPrefix: "/~jakew/",
dir: {
output: "/home/jakew/public_html"
}
}
};

139
.gitignore vendored Normal file
View File

@ -0,0 +1,139 @@
# Created by https://www.toptal.com/developers/gitignore/api/node,vscode
# Edit at https://www.toptal.com/developers/gitignore?templates=node,vscode
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
.env*.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Storybook build outputs
.out
.storybook-out
storybook-static
# rollup.js default build output
dist/
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# Temporary folders
tmp/
temp/
### vscode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# End of https://www.toptal.com/developers/gitignore/api/node,vscode

47
_includes/main.njk Normal file
View File

@ -0,0 +1,47 @@
---
title: jakew
---
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ title }}</title>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='https://southlondon.cc/main.css'>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<script src='https://southlondon.cc/main.js'></script>
<style>
body {
text-transform: lowercase;
}
</style>
</head>
<body>
<div class="header header-blue">
<h1 style="white-space: pre-line">{{ title }}</h1>
</div>
<main>
<div class="nav">
{% set navPages = collections.all | eleventyNavigation %}
<p style="text-align: center;">
{%- for entry in navPages -%}
<a {% if entry.url == page.url %}style="font-weight: 900;"{% endif %} href="{{ entry.url | url }}">
{{ entry.title }}
</a>
{% if not loop.last %}
&bull;
{% endif %}
{%- endfor -%}
</p>
</div>
<hr>
{{ content | safe }}
</main>
</body>
</html>

25
index.md Normal file
View File

@ -0,0 +1,25 @@
---
title: jakew
layout: main
eleventyNavigation:
key: Home
---
Welcome, I'm Jake! I'm from the UK and I love to tinker around with things.
<hr class="zig">
<hr class="zag">
## sl projects
- [tips](/~jakew/tips)
<hr class="zig">
<hr class="zag">
## where you can find me
- IRC: jakew on [irc.tilde.chat](https://tilde.chat)
- Email: my username at omg.lol
- Tildegit: [jakew](https://tildegit.org/jakew)
- My other website: [jakew.me](https://jakew.me)

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"dependencies": {
"@11ty/eleventy": "^0.12.1",
"@11ty/eleventy-navigation": "^0.1.6"
},
"scripts": {
"build": "eleventy"
}
}

23
tips/index.njk Normal file
View File

@ -0,0 +1,23 @@
---
title: Tips
eleventyNavigation:
key: Tips
tags: []
---
<p>
Get your free tech tips here.
</p>
<p>
<ul>
{%- for item in collections.tips -%}
<li>
<a href="{{ item.url | url }}">{{ item.data.title }}</a>
{% if item.data.description %}
<span style="display: block;">{{ item.data.description }}</span>
{% endif %}
</li>
{%- endfor -%}
</ul>
</p>

9
tips/tips.json Normal file
View File

@ -0,0 +1,9 @@
{
"layout": "main",
"eleventyNavigation": {
"parent": "Tips"
},
"tags": [
"tips"
]
}

2323
yarn.lock Normal file

File diff suppressed because it is too large Load Diff