normalize wiki names

This commit is contained in:
root 2019-09-22 20:15:31 -04:00
parent c074e179aa
commit 90ffb90619
11 changed files with 7 additions and 38 deletions

View File

@ -1,10 +1,14 @@
#!/bin/sh #!/bin/sh
printf "removing previous html build artifacts"
rm *.html
for page in source/*.md; do for page in source/*.md; do
pagename=$(basename $page ".md") pagename=$(basename $page ".md")
printf "building %s wiki article\n" "$pagename" printf "building %s wiki article\n" "$pagename"
pandoc \ pandoc \
--toc \
--template wiki.tmpl \ --template wiki.tmpl \
--lua-filter header-permalinks.lua \ --lua-filter header-permalinks.lua \
-T "tilde.club wiki | " \ -T "tilde.club wiki | " \

View File

@ -1,20 +0,0 @@
---
title: Editing your index.html file
---
Type: `nano` index.html to open your index.html file and begin editing
![screenshot of the nano editor](http://tilde.club/~annika/static/nano.png)
Edit your file, willy nilly
When done editing, use `CTRL+X` to close the file
You'll be asked if you want to save; say y and [return] to return to the command line
Refresh your tilde page in your browser to see your new website
Note: If at any time you feel you made a mistake in editing, you can exit and n to not save.
There's more info here about the [[nano]] editor; if you're familiar with
[[emacs]] or [[vim]] they are here too.

View File

@ -1,17 +0,0 @@
---
title: Finding your index.html file
---
There are some basic command line commands you'll want to Google and learn, but for this tutorial you only need a few:
`ls` = list files and folders in current directory
`cd` = change directories
`vim`, `emacs`, `nano` = a text editor
Type: `ls` to see where you are; you should see a directory called "public_html"
Type: `cd public_html` to browse into that folder
Type: `ls` to see where you are; you should see your index.html file

View File

@ -17,6 +17,7 @@ alternatively, you can use the [webmail](https://webmail.tilde.club/) or standar
some clients will automatically detect the right settings (tested with thunderbird). some clients will automatically detect the right settings (tested with thunderbird).
connection settings: connection settings:
- imap.tilde.club port 993 with ssl - imap.tilde.club port 993 with ssl
- pop3.tilde.club port 995 with ssl - pop3.tilde.club port 995 with ssl
- smtp.tilde.club port 587 with starttls - smtp.tilde.club port 587 with starttls

View File

@ -43,13 +43,13 @@ $highlighting-css$
$endfor$ $endfor$
</head> </head>
<body> <body>
<a href="/wiki/">&lt; back to wiki home</a>
$for(include-before)$ $for(include-before)$
$include-before$ $include-before$
$endfor$ $endfor$
$if(title)$ $if(title)$
<header> <header>
<h1 class="title">$title$</h1> <h1 class="title">$title$</h1>
<a href="/wiki/">&lt; back to wiki home</a>
$if(subtitle)$ $if(subtitle)$
<p class="subtitle">$subtitle$</p> <p class="subtitle">$subtitle$</p>
$endif$ $endif$
@ -59,6 +59,7 @@ $highlighting-css$
$for(author)$ $for(author)$
<p class="author"><a href="/~$author$/">~$author$</a></p> <p class="author"><a href="/~$author$/">~$author$</a></p>
$endfor$ $endfor$
<hr>
$endif$ $endif$
$if(date)$ $if(date)$