commit 8b6cc5933aa8dce1fcb03799cb4971a9d493de3f Author: avitex Date: Wed Aug 22 23:30:07 2018 +1000 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c1c1dcc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_size = 2 +indent_style = tab + +[*.md] +indent_size = 4 +indent_style = space \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4139cd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +public diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5e9918e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 James Dyson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..a096f8b --- /dev/null +++ b/config.toml @@ -0,0 +1,38 @@ +base_url = "https://1bit.pw" +compile_sass = true +title = "1-bit Password" +description = "" + +taxonomies = [ + {name = "blog/tags", rss = true}, + {name = "blog/categories", rss = true} +] + +[extra] +author = "avitex" + +[[extra.main_menu]] +name = "home" +url = "/" + +[[extra.main_menu]] +name = "blog" +url = "/blog" +sub = [ + {name = "lastest", url = "/blog"}, + {name = "categories", url = "/blog/categories"}, + {name = "tags", url = "/blog/tags"} +] + +[[extra.main_menu]] +name = "projects" +url = "/projects" + +[[extra.main_menu]] +name = "about" +url = "/about" +sub = [ + {name = "overview", url = "/about"}, + {name = "bio", url = "/about/bio"}, + {name = "social", url = "/about/social"} +] diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..6da3011 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ ++++ + +My [projects](/projects), [thoughts](/blog), and [me](/about) \ No newline at end of file diff --git a/content/about/_index.md b/content/about/_index.md new file mode 100644 index 0000000..428a6b8 --- /dev/null +++ b/content/about/_index.md @@ -0,0 +1,14 @@ ++++ +template = "about.html" ++++ + +Hi! I'm James. I live in Australia, and the virtual realm is my dojo. + +## PGP + +You can find my pgp public key [here](/id/pk.txt). + +## Contacting me + +If you wish to contact me, email is easiest via `theavitex (at) gmail (dot) com`. +See my [social links](./about/social.md) for other methods to get in touch. diff --git a/content/about/bio.md b/content/about/bio.md new file mode 100644 index 0000000..c7091a8 --- /dev/null +++ b/content/about/bio.md @@ -0,0 +1,4 @@ ++++ ++++ + +Nothing here... yet \ No newline at end of file diff --git a/content/about/social.md b/content/about/social.md new file mode 100644 index 0000000..d420d70 --- /dev/null +++ b/content/about/social.md @@ -0,0 +1,31 @@ ++++ ++++ + +## Code +- [Github](https://github.com/avitex) +- [WhitefoxLabs](https://git.wfx.es/avitex) +- [Gitlab](https://gitlab.com/avitex) (_dormant_) +- [Bitbucket](https://bitbucket.com/avitex) (_dormant_) + + +## Community + +- [Keybase](https://keybase.io/avitex) +- [Lobsters](https://lobste.rs/u/avitex) +- [Twitter](https://twitter.com/theavitex) (_dormant_) +- [Hackernews](https://news.ycombinator.com/user?id=avitex) (_dormant_) +- [StackOverflow](https://stackoverflow.com/users/605191/avitex) (_dormant_) +- [Vue Forum](https://forum.vuejs.org/u/avitex) (_dormant_) +- [Elixir Forums](https://elixirforum.com/u/avitex) (_dormant_) + + +## Gaming + +- [Steam](https://steamcommunity.com/id/avitex) +- [Faceit](https://www.faceit.com/en/players/avitex) +- [ESEA](https://play.esea.net/users/680258) (dormant) +- [Cybergamer](https://www.cybergamer.com/profile/246296/avitex/) (dormant) + +## Other + +- Discord - `avitex#0438` \ No newline at end of file diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..3b42bc8 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,4 @@ ++++ +paginate_by = 10 +template = "blog.html" ++++ diff --git a/content/blog/hello-world.md b/content/blog/hello-world.md new file mode 100644 index 0000000..d543a65 --- /dev/null +++ b/content/blog/hello-world.md @@ -0,0 +1,14 @@ ++++ +title = "Hello World" +date = 2018-08-22 + +template = "blog/post.html" + +[taxonomies] +"blog/tags" = ["new"] +"blog/categories" = ["meta"] ++++ + +Thought it would be a good idea to have somewhere to put my ramblings, and so I am here. +Whether or not I use this, time will tell. + \ No newline at end of file diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..be687b6 --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,5 @@ ++++ +template = "projects.html" ++++ + +Nothing here... yet \ No newline at end of file diff --git a/sass/_dark.scss b/sass/_dark.scss new file mode 100644 index 0000000..ea1e102 --- /dev/null +++ b/sass/_dark.scss @@ -0,0 +1,31 @@ +.monk.dark { + color: #acc; + background-color: #20262e; + + a { + color: #94b4cb; + } + + code { + background-color: #161a20; + } + + .menu a { + color: #42a542; + text-decoration-color: #205720; + + &:hover { + text-decoration-color: #428a42; + } + + &.active { + font-weight: 600; + color: #5ce95c; + text-decoration-color: #52a852; + } + } + + hr { + border-bottom-color: #283339; + } +} \ No newline at end of file diff --git a/sass/_light.scss b/sass/_light.scss new file mode 100644 index 0000000..d99d67f --- /dev/null +++ b/sass/_light.scss @@ -0,0 +1,31 @@ +.monk.light { + color: #444; + background-color: #fff; + + a { + color: #556; + } + + code { + background-color: #eee; + } + + .menu a { + color: #222; + text-decoration-color: #555; + + &:hover { + text-decoration-color: #428a42; + } + + &.active { + font-weight: 600; + color: #77f; + text-decoration-color: #99f; + } + } + + hr { + border-bottom-color: #ddd; + } +} \ No newline at end of file diff --git a/sass/_reset.scss b/sass/_reset.scss new file mode 100644 index 0000000..ee07aee --- /dev/null +++ b/sass/_reset.scss @@ -0,0 +1,9 @@ +html, body { + margin: 0; + height: 100%; + width: 100%; +} + +* { + box-sizing: border-box; +} \ No newline at end of file diff --git a/sass/_theme.scss b/sass/_theme.scss new file mode 100644 index 0000000..a72d51b --- /dev/null +++ b/sass/_theme.scss @@ -0,0 +1,76 @@ +.monk { + font-size: 14px; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +} + +.container { + margin: 0 auto; + width: 100%; + max-width: 800px; +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 600; +} + +.main { + padding-top: 5px; + padding-bottom: 5px; + padding-left: 5px; + padding-right: 5px; +} + +.header { + padding-top: 10px; + padding-bottom: 10px; +} + +.menu { + font-size: 0; + list-style: none; + margin: 0; + padding: 0; +} + +.menu li { + display: inline; + margin-left: 5px; + margin-right: 5px; +} + +.menu a { + text-decoration: underline dotted; +} + +.main-menu span { + font-size: 16px; +} + +.sub-menu { + margin-top: 2px; + opacity: 0.8; +} + +.sub-menu span { + font-size: 14px; +} + +code { + padding-left: 4px; + padding-right: 4px; + border-radius: 3px; +} + +pre { + overflow: auto; + padding: 4px; +} + +.muted { + opacity: 0.5; +} + +hr { + border: 0; + border-bottom: 1px solid; +} \ No newline at end of file diff --git a/sass/site.scss b/sass/site.scss new file mode 100644 index 0000000..1934dc1 --- /dev/null +++ b/sass/site.scss @@ -0,0 +1,5 @@ +@import "reset"; +@import "theme"; +@import "dark"; +@import "light"; + diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..45bab32 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/id/pk.txt b/static/id/pk.txt new file mode 100644 index 0000000..c49f1dd --- /dev/null +++ b/static/id/pk.txt @@ -0,0 +1,107 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFsToGkBEAC0RKMEjjHzv5m1ZHhkOeGjiuGMGQrb0Zh+rzFsdmuETu2b8Cr9 +DKLlvlfmcZiEFPQ7yVUrv0ZoFkLIdxO2fSTGblMoq7eR+r/9JIgkgGpvOqH6pzGe +jMIcwqgWRmTzePDxbCUO5ZYWPvfBAML8ETCzgF9r0MzxM3U41139bZxjJZbFZr7W +MP6tNhwFnwDD01tYJcpV7VVLZGf8M7BQ8ytA6HDB+h4a5C471LJuNNI6+xlC016b +cU2rj8EAWzVeGHoIxRS86OI3Lx7RoIt3HU2+viLRbAdy2Rfo9VEcCZ9+txiM4MUI +G7+8bQ8Ssto5xt/VqHfqHlcfecGHmkO2tHwafXzKuQ7GTWgOphrqHNy4NzMkGOEl +BfrajL0lkWeDWjJiguLT3HQIxCAscjUvYCQiXO4QvvEm/mM2xvSwEWOtstSnDhrr +H4+pPMx0UUWkz3FiBYHA8xSB5LXSJJvrhDnoo3XqMO9551wKCqDjnsYnyDcff5gI +qreBIYKmmN4FNLCNAhsx2C9sbcxt0H91iRXig2acFa1BotCMTYHo7uLm2rZJTUYT +VeIl37w0NihZbT8QNhONfGz7WOf+x4UEzVL+etv7e5GnU0aENjWsUNarkK1Jh+2M +ZYvfoW1Jh9bwiMn182pHlnYehhVzJZenuZKk2Skj7EMREC+10KIzhyPu5QARAQAB +tCFKYW1lcyBEeXNvbiA8dGhlYXZpdGV4QGdtYWlsLmNvbT6JAjcEEwEKACEFAlsT +oGkCGwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQizZsRDyr6UJr2g//caLq +TFPBsOCSQJQ+U1f2EXGLuQxouO0iKj7UIemgO+VLmkygSNFwXU3W3fTPcctjQQuz +norrs0jmdbJhxtd8xbfdUhYWj3LeZG8ASioiAw0J0d1j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C5ZfH5324epXUeuE5o49YXum9d5Q2trnR16kRp3Moub9zCcM2Ph8PPrcXsx+ +jWUWQaTWI4wGwIZ5ncCTk/01WQSOeyMsiQR4SHLb3mgjD88B1CWj0hbx3lHRtnHr +V6PCnk+R87rnOagAG94UrTh02k43y0wUaKGlc7YklvRc4x1MsUei+KPKbJuFgUK+ +KyNMX/KfhUNw9aciRs7jp98O3pOVFneBg5mOW1WoiX+yut6AC13O4ZqW2GAtPxG9 +gaCe3cVibfjNGY3lGk8d4o5980rfqEclYj/kwPlaErRJNPqNp9iBX5mg172/JH4G +3VM= +=wEz/ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/static/js/theme.js b/static/js/theme.js new file mode 100644 index 0000000..e69de29 diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..89707d3 --- /dev/null +++ b/templates/about.html @@ -0,0 +1 @@ +{% extends "index.html" %} \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..ba25076 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,19 @@ +{% extends "index.html" %} +{% block content %} +
+ {% for page in paginator.pages %} + {{ post_macros::page_in_list(page=page) }} + {% endfor %} + +
+{% endblock content %} \ No newline at end of file diff --git a/templates/blog/categories/list.html b/templates/blog/categories/list.html new file mode 100644 index 0000000..727133f --- /dev/null +++ b/templates/blog/categories/list.html @@ -0,0 +1,12 @@ +{% extends "index.html" %} + +{% block content %} +

Categories

+ {% if terms %} + + {% endif %} +{% endblock content %} diff --git a/templates/blog/categories/single.html b/templates/blog/categories/single.html new file mode 100644 index 0000000..dcd3fbd --- /dev/null +++ b/templates/blog/categories/single.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block content %} +

Category: {{ term.name }} (RSS)

+ {% for page in term.pages %} + {{ post_macros::page_in_list(page=page) }} + {% endfor %} +{% endblock content %} diff --git a/templates/blog/post.html b/templates/blog/post.html new file mode 100644 index 0000000..ac647a2 --- /dev/null +++ b/templates/blog/post.html @@ -0,0 +1,44 @@ +{% extends "index.html" %} + +{% block content %} +
+
+

{{ page.title }}

+ {{ post_macros::meta(page=page) }} +
+
+ {{ page.content | safe }} +
+ {% block page_footer %} +
+
+

+ {% if config.extra.author %} + Published by {{ config.extra.author }} + {% endif %} + {% if page.taxonomies | get(key="blog/categories") %} + {% set categories = page.taxonomies | get(key="blog/categories") %} + in {{ categories[0] }} + {% endif %} + {% set tags = page.taxonomies | get(key="blog/tags") %} + {% if tags %} + and tagged + {% for tag in tags %} + {{ tag }} + {% if tags | length > 1 %} + {% if loop.index != tags | length %} + {% if loop.index == tags | length - 1 %} + and + {% else %} + , + {% endif %} + {% endif %} + {% endif %} + {% endfor %} + {% endif %} +

+
+ {% endblock page_footer %} +
+{% endblock content %} + diff --git a/templates/blog/tags/list.html b/templates/blog/tags/list.html new file mode 100644 index 0000000..cc765f3 --- /dev/null +++ b/templates/blog/tags/list.html @@ -0,0 +1,12 @@ +{% extends "index.html" %} + +{% block content %} +

Tags

+ {% if terms %} + + {% endif %} +{% endblock content %} diff --git a/templates/blog/tags/single.html b/templates/blog/tags/single.html new file mode 100644 index 0000000..be30e99 --- /dev/null +++ b/templates/blog/tags/single.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block content %} +

Tag: {{ term.name }} (RSS)

+ {% for page in term.pages %} + {{ post_macros::page_in_list(page=page) }} + {% endfor %} +{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..aacf2a5 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,69 @@ +{% import "macros.html" as macros %} +{% import "post_macros.html" as post_macros %} + + + + + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + {% if config.generate_rss %} + + {% endif %} + + {% block css %} + + {% endblock css %} + + {% block extra_head %} + {% endblock extra_head %} + + +
+ {% block header %} + {% if config.extra.main_menu %} +
+ +
+ {% endif %} + {% endblock header %} +
+ {% block content %} +
+ {{ section.content | safe }} +
+ {% endblock content %} +
+ + diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..b077e9c --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,15 @@ +{% macro link(url) %} + {%- if url is starting_with("/") or url is starting_with("./") -%} + {{ get_url(path=url) }} + {%- else -%} + {{ url }} + {%- endif -%} +{% endmacro link %} + +{% macro is_active_nav(url, curr_url) %} + {%- if url == get_url(path="/") -%} + {{ url == curr_url }} + {%- else -%} + {{ curr_url is starting_with(url) }} + {%- endif -%} +{% endmacro is_active_nav %} \ No newline at end of file diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..ae3d32a --- /dev/null +++ b/templates/page.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block content %} +
+ {{ page.content | safe }} +
+{% endblock content %} + diff --git a/templates/post_macros.html b/templates/post_macros.html new file mode 100644 index 0000000..a74b0fb --- /dev/null +++ b/templates/post_macros.html @@ -0,0 +1,33 @@ +{% macro meta(page) %} + + + + + {{ page.reading_time }} minute read + + + + + Published: {{ page.date | date(format="%F") }} +{% endmacro meta %} + +{% macro page_in_list(page) %} +
+
+

+ {{ page.title }} +

+ {{ self::meta(page=page) }} +
+ {% if page.summary %} +
+ {{ page.summary | safe }} + +
+ {% endif %} +
+{% endmacro page_in_list %} diff --git a/templates/projects.html b/templates/projects.html new file mode 100644 index 0000000..89707d3 --- /dev/null +++ b/templates/projects.html @@ -0,0 +1 @@ +{% extends "index.html" %} \ No newline at end of file