Browse Source

Restructured the project page to isolate the BDSM section, started playing with Elm

main
Artemis 2 weeks ago
parent
commit
6f8670fc7e
  1. 4
      .editorconfig
  2. 2
      .gitignore
  3. 11
      aphrodite.code-workspace
  4. 4
      content/about.md
  5. 2
      content/~blog/8-bdsm-section.md
  6. 7
      content/~notebook/_index.md
  7. 10
      content/~notebook/bdsm/_index.md
  8. 4
      content/~notebook/bdsm/rope-bondage.md
  9. 2
      content/~notebook/projects/gitmgr.md
  10. 16
      content/~notebook/tools/_index.md
  11. 24
      static/~notebook/tools/elm.json
  12. 30
      static/~notebook/tools/src/Main.elm
  13. 12
      themes/gay gay homosexual gay/templates/tools.html

4
.editorconfig

@ -11,3 +11,7 @@ trim_trailing_whitespace = true
[*.md]
indent_size = 2
indent_style = space
[*.elm]
indent_size = 2
indent_style = space

2
.gitignore

@ -1,2 +1,4 @@
www.aphrodite.dev/
public/
elm-stuff/
repl-temp-*

11
aphrodite.code-workspace

@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
},
{
"path": "static\\~notebook\\tools"
}
],
"settings": {}
}

4
content/about.md

@ -25,8 +25,12 @@ Now, it has a few more areas.
* A blog area (my personal blog). Articles are CW'd in the links, but may not be for kids.
* A notebook area, on which I document and publish resources I wrote for my own needs (recipes, tool/language/framework documentation)
I also recently started to write some tools on this section, which I have found to be useful to me, and I hope will be
useful to you too.
* A link aggregation (bookmark) area, on which I annotate every noteworthy page / website, grouped by theme (both SFW and NSFW, CW still applying)
This website's source code is currently published [on my own git hosting instance](https://git.aphrodite.dev/Websites/aphrodite.dev).
## Wanna chat?
I'm active on a few platforms on which you may want to chat!

2
content/~blog/8-bdsm-section.md

@ -14,4 +14,4 @@ I decided to create a new section on this blog to document resources, thoughts,
The introduction and index to it is now available from the home page, but here it is, for simplicity's sake.
[Index of the BDSM section](@/~notebook/_index.md#bdsm)
[Index of the BDSM section](@/~notebook/bdsm/_index.md)

7
content/~notebook/_index.md

@ -36,8 +36,7 @@ Usage notes for some (mostly) linux-based tools I use.
* [sc: a simple spreadsheet tool](@/~notebook/tech/tools/sc.md)
* [Wireguard VPN](@/~notebook/tech/tools/wireguard.md)
## BDSM
## NSFW: BDSM
Some BDSM-related resources I chose to collect together.
* [Everything related to rope bondage and shibari](@/~notebook/bdsm/rope-bondage.md)
Due to the sensitive nature of the topic, it has been moved into its own dedicated section, as to allow people to refer
to the global resource page without exposing everything inside [the BDSM section](@/~notebook/bdsm/_index.md).

10
content/~notebook/bdsm/_index.md

@ -0,0 +1,10 @@
---
title: BDSM
extra:
cw:
- nsfw
---
Some BDSM-related resources I chose to collect together.
* [Everything related to rope bondage and shibari](@/~notebook/bdsm/rope-bondage.md)

4
content/~notebook/bdsm/rope-bondage.md

@ -1,5 +1,9 @@
---
title: Rope bondage-related resources
extra:
cw:
- BDSM
- shibari
---
Rope bondage is awesome, pretty, and hella relaxing, but it can be dangerous and hard to master.

2
content/~notebook/projects/gitmgr.md

@ -6,7 +6,7 @@ title: gitmgr
This project is made to provide a web-based interface to manage barebones git repositories.
[Source code repository](https://git.artemix.space/?p=gitmgr;a=summary)
[Source code repository](https://git.aphrodite.dev/Tools/gitmgr)
## Screenshots

16
content/~notebook/tools/_index.md

@ -0,0 +1,16 @@
---
title: Tools
template: tools.html
---
The tools listed below are a set of javascript-based client-only tools made to
provide simple, fast, and hopefully as lightweight as I can muster, tools for
various tasks in a wide range of domains.
This project page *requires javascript to work*, even to simply load the list of
available tools, as no tool could work without it, which is why you aren't seeing
them under this introduction if you have javascript disabled.
In case you'd prefer to audit the tools on your own, or get yourself a copy of
those tools to run locally, you may find them inside the blog's public repository,
which can be found [on the "About" page, detailing info about this blog and its associated projects.](@/about.md#about-this-website-s-content).

24
static/~notebook/tools/elm.json

@ -0,0 +1,24 @@
{
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0"
},
"indirect": {
"elm/json": "1.1.3",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.2"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}

30
static/~notebook/tools/src/Main.elm

@ -0,0 +1,30 @@
module Main exposing (main)
import Browser
import Html exposing (button, div, text)
import Html.Events exposing (onClick)
main : Program () Int Msg
main = Browser.sandbox {
init = 0,
update = update,
view = view }
type Msg = Increment | Decrement
update : Msg -> number -> number
update msg model =
case msg of
Increment ->
model + 1
Decrement ->
model - 1
view : Int -> Html.Html Msg
view model =
div []
[
button [onClick Decrement] [text "-"],
div [] [text (String.fromInt model)],
button [onClick Increment] [text "+"]
]

12
themes/gay gay homosexual gay/templates/tools.html

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block meta %}
<script src="/~notebook/tools/index.js" defer></script>
{% endblock %}
{% block page %}
{{section.content | safe}}
<section id="tools-container">
</section>
{% endblock %}
Loading…
Cancel
Save