diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-12-19 15:12:28 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-12-19 15:12:28 +0000 |
| commit | 8979cdb43826e3286d708df015d985833d378f6f (patch) | |
| tree | a88d45b111dd7c5098eb5f21805aa4f9894be686 /build | |
| parent | add about section (diff) | |
| download | mmm-8979cdb43826e3286d708df015d985833d378f6f.tar.gz mmm-8979cdb43826e3286d708df015d985833d378f6f.zip | |
layout + options
Diffstat (limited to 'build')
| -rw-r--r-- | build/layout.moon | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/layout.moon b/build/layout.moon index e17be2a..85f3bfa 100644 --- a/build/layout.moon +++ b/build/layout.moon @@ -1,4 +1,5 @@ import header, aside, footer, div, svg, script, g, circle, h1, span, b, a, img from require 'mmm.dom' +import navigate_to from (require 'mmm.mmmfs.util') require 'mmm.dom' pick = (...) -> num = select '#', ... @@ -44,15 +45,14 @@ logo = svg { -- pick 'mostly code', 'code and wires', 'silicon', 'electronics' } aside { - a 'about me', href: '/about' - a 'games', href: '/games' - a 'other', href: '/projects' + navigate_to '/about', 'about me' + navigate_to '/games', 'games' + navigate_to '/projects', 'other' a { href: 'mailto:s%20[removethis]%20[at]%20s-ol.nu' 'contact' script " var l = document.currentScript.parentElement; - console.log(l); l.href = l.href.replace('%20[at]%20', '@'); l.href = l.href.replace('%20[removethis]', '') + '?subject=Hey there :)'; " |
