diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-09-30 18:38:20 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-09-30 18:50:19 +0000 |
| commit | f204fc4e5db12581485bbe16e720474696b4791d (patch) | |
| tree | 7ef3dd396558c34133b2b678a3bd875d18d17ade | |
| parent | cast for URL (diff) | |
| download | mmm-f204fc4e5db12581485bbe16e720474696b4791d.tar.gz mmm-f204fc4e5db12581485bbe16e720474696b4791d.zip | |
little meta-link updates
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | build/layout.moon | 9 | ||||
| -rw-r--r-- | root/text$moonscript -> fn -> mmm$dom.moon | 2 |
3 files changed, 19 insertions, 6 deletions
@@ -24,7 +24,11 @@ You can build the static content with: $ tup init $ tup -Then, run some kind of HTTP server from within `root`, e.g. with python 3 installed: +Next you can render a sqlite3 mmmfs database using + + $ moon build/render_all.moon db.sqlite3 + +Then, run some kind of HTTP server from within `out`, e.g. with python 3 installed: $ cd root $ python -m http.server @@ -37,6 +41,14 @@ You can do this with the following command: $ tup monitor -f -a +### Dependencies +You will need: + +- [MoonScript][moonscript]: `luarocks install moonscript` +- [lua-sqlite3](https://luarocks.org/modules/moteus/sqlite3): `luarocks install sqlite3` +- [discount](https://luarocks.org/modules/craigb/discount): `luarocks install discount` (requires libmarkdown2) +- [busted](https://olivinelabs.com/busted/): `luarocks install busted` (for testing only) + [moonscript]: https://moonscript.org/ [mmm]: https://mmm.s-ol.nu/ [tup]: https://gittup.org/tup diff --git a/build/layout.moon b/build/layout.moon index 6d6e072..61f93cb 100644 --- a/build/layout.moon +++ b/build/layout.moon @@ -6,11 +6,11 @@ pick = (...) -> i = math.ceil math.random! * num select i, ... - iconlink = (href, src, alt, style) -> a { class: 'iconlink', - :href, target: '_blank', + rel: 'me', + :href, img :src, :alt, :style } @@ -69,8 +69,9 @@ logo = svg { } div { class: 'icons', - iconlink 'https://github.com/s-ol/mmm', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/github.svg', - iconlink 'https://twitter.com/S0lll0s', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/twitter.svg', + iconlink 'https://github.com/s-ol', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/github.svg', 'github' + iconlink 'https://merveilles.town/@s_ol', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/mastodon.svg', 'mastodon' + iconlink 'https://twitter.com/S0lll0s', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/twitter.svg', 'twitter' iconlink 'https://webring.xxiivv.com/#random', 'https://webring.xxiivv.com/icon.black.svg', 'webring', { height: '1.3em', 'margin-left': '.3em', 'margin-top': '-0.12em' } } diff --git a/root/text$moonscript -> fn -> mmm$dom.moon b/root/text$moonscript -> fn -> mmm$dom.moon index 84aed7f..8c06030 100644 --- a/root/text$moonscript -> fn -> mmm$dom.moon +++ b/root/text$moonscript -> fn -> mmm$dom.moon @@ -17,7 +17,7 @@ import link_to from (require 'mmm.mmmfs.util') require 'mmm.dom' '.' br! 'You can find the source code of everything ' - a { 'here', href: 'https://github.com/s-ol/mmm' } + a { 'here', href: 'https://git.s-ol.nu/mmm' } '.' br! 'Most of the inner-workings of this page are documented in ' |
