this might make it generate. i think. perhaps
This commit is contained in:
parent
1afa152ab9
commit
fffda7ceda
5 changed files with 51 additions and 21 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
~*
|
||||
index.html
|
||||
21
generate/end.html
Normal file
21
generate/end.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
</ul>
|
||||
|
||||
<br>
|
||||
<t>Services:</t>
|
||||
<ul id="services">
|
||||
<li><d tabindex="0">Site hosting</d><p>You can host your own static website on the tilde! And be on this landing page!</p></li>
|
||||
<li><d tabindex="0">Matrix</d><p>We have our own matrix homeserver!<br><br>We also have a very active room where we chat about silly stuff :3</p></li>
|
||||
<li><a href="https://mail.linuxposting.xyz">Email</a><p>your-name@linuxposting.xyz. You want it, don't you?<br><br>Works with basically any email client, we also have <a href="https://mail.linuxposting.xyz">a webmail</a></p></li>
|
||||
<li><a href="https://w.linuxposting.xyz">Wafrn</a><p>Linuxposting-themed fedi instance! For all your linuxposting needs</p></li>
|
||||
<li><a href="https://git.linuxposting.xyz">Git</a><p>We have our own git forge! Very free and open source. Software.</p></li>
|
||||
<li><a href="https://copy.tilde.linuxposting.xyz">Copyparty</a><p>File hosting! So convenient! Even guests can browse :3</p></li>
|
||||
<li><a href="https://cinny.linuxposting.xyz">Cinny</a><p>The good matrix client</p></li>
|
||||
<li><a href="https://element.linuxposting.xyz">Element</a><p>The bad matrix client. But it has LaTeX, in case you're into that.</p></li>
|
||||
</ul>
|
||||
</main><div><span class="title2">Description</span></div></div>
|
||||
<div class="js skip"><div></div></div>
|
||||
<span class="credit skip"><a href="https://girlkissing.tips" id="credit">site by Magdalunaa :3</a></span>
|
||||
<span class="skip-notice skip">Click / space to skip</span>
|
||||
</body>
|
||||
<script src="/assets/main.js"></script>
|
||||
</html>
|
||||
15
generate/genuserdescs.scm
Executable file
15
generate/genuserdescs.scm
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/home/afiw/opt/bin/csi -s
|
||||
|
||||
(import (chicken file)
|
||||
(chicken format)
|
||||
(chicken io)
|
||||
(chicken pathname))
|
||||
|
||||
(for-each print (find-files "/home"
|
||||
#:limit 0
|
||||
#:test (lambda (s) (not (string=? s "/home/!common")))
|
||||
#:action (lambda (homedir acc)
|
||||
(let* ((path (sprintf "~a/.config/tilde/description" homedir))
|
||||
(username (pathname-file homedir))
|
||||
(desc (if (file-exists? path) (apply string-append (with-input-from-file path read-lines)) "Description file not found")))
|
||||
(cons (sprintf "<li><a href=\"~~~a/\">~~~a</a><p>~a</p></li>" username username desc) acc)))))
|
||||
13
generate/make-site.sh
Executable file
13
generate/make-site.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
cd /var/lib/caddy/tilde/
|
||||
|
||||
rm ../index.html
|
||||
|
||||
descs=$(./genuserdescs.scm)
|
||||
|
||||
echo "$descs" > users.html
|
||||
|
||||
cat start.html users.html end.html > ../index.html
|
||||
|
||||
rm users.html
|
||||
|
|
@ -43,24 +43,4 @@
|
|||
<br>
|
||||
<t>Users:</t>
|
||||
<ul id="users">
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
<t>Services:</t>
|
||||
<ul id="services">
|
||||
<li><d tabindex="0">Site hosting</d><p>You can host your own static website on the tilde! And be on this landing page!</p></li>
|
||||
<li><d tabindex="0">Matrix</d><p>We have our own matrix homeserver!<br><br>We also have a very active room where we chat about silly stuff :3</p></li>
|
||||
<li><a href="https://mail.linuxposting.xyz">Email</a><p>your-name@linuxposting.xyz. You want it, don't you?<br><br>Works with basically any email client, we also have <a href="https://mail.linuxposting.xyz">a webmail</a></p></li>
|
||||
<li><a href="https://w.linuxposting.xyz">Wafrn</a><p>Linuxposting-themed fedi instance! For all your linuxposting needs</p></li>
|
||||
<li><a href="https://git.linuxposting.xyz">Git</a><p>We have our own git forge! Very free and open source. Software.</p></li>
|
||||
<li><a href="https://copy.tilde.linuxposting.xyz">Copyparty</a><p>File hosting! So convenient! Even guests can browse :3</p></li>
|
||||
<li><a href="https://cinny.linuxposting.xyz">Cinny</a><p>The good matrix client</p></li>
|
||||
<li><a href="https://element.linuxposting.xyz">Element</a><p>The bad matrix client. But it has LaTeX, in case you're into that.</p></li>
|
||||
</ul>
|
||||
</main><div><span class="title2">Description</span></div></div>
|
||||
<div class="js skip"><div></div></div>
|
||||
<span class="credit skip"><a href="https://girlkissing.tips" id="credit">site by Magdalunaa :3</a></span>
|
||||
<span class="skip-notice skip">Click / space to skip</span>
|
||||
</body>
|
||||
<script src="/assets/main.js"></script>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue