tntpedia

tntpedia stac build
git clone git://git.kocotian.pl/tntpedia.git
Log | Files | Refs | README | LICENSE

commit 5df936fe1fd6cc04dd6355fa8ec2fc9a6927af56
parent 0c1f8b935f4f1eaca83d57b99749bba88a483dcd
Author: kocotian <kocotian@kocotian.pl>
Date:   Thu, 29 Jul 2021 14:22:43 +0000

Template, config.mk changes

Diffstat:
Mconfig.mk | 2+-
Din/index.stac | 19-------------------
Mtemplates/basic.stac | 40++++++++++++++++++++++++++++++++++++----
3 files changed, 37 insertions(+), 24 deletions(-)

diff --git a/config.mk b/config.mk @@ -9,7 +9,7 @@ VERSION = ${MAJORVERSION}.${SUBVERSION}.${PATCHLEVEL}-${BUILDNAME} # directories (KEEP TRAILING SLASH!) INDIR = in/ METADIR = meta/ -OUTDIR = out/ +OUTDIR = wiki/ TEMPLATEDIR = templates/ # flags diff --git a/in/index.stac b/in/index.stac @@ -1,19 +0,0 @@ -<p> - <!--% /* %--> - If you can see this text, something probably went wrong. - <!--% */ - char *msg = - "\x2d\x2d>\n" - "\t<h1>Everything works!</h1>\n" - "\tIf you can see this text, everything works perfectly.\n" - "\tNow you can create new files in <code>\x25s/in</code>.\n" - "\tIf you want some help, visit <a href=\"" - "https://nanohard.xyz/stac" - "\">this</a> page.\n" - "\t<!\x2d\x2d"; - char cwd[4096], out[(sizeof msg / sizeof *msg) + 4097]; - if (getcwd(cwd, 4096) == NULL) - strcpy(cwd, "(directory with stacinhtml here)"); - write(fd, out, sprintf(out, msg, cwd)); - %--> -</p> diff --git a/templates/basic.stac b/templates/basic.stac @@ -2,12 +2,44 @@ <html> <head> <meta charset="UTF-8" /> - <title>%$$(title)%</title> + <title>%$$(title)% - TNTpedia</title> + <link rel="stylesheet" href="%$(ROOTDIR)%/data/main.css" /> </head> - <body> + <div id="panel"> + <div id="wikilogo"></div> + <div class="panel_item"><a href="/" class="smaller">Strona główna</a></div> + <div class="panel_item"><a href="/" class="smaller">Losuj artykuł</a></div> + </div> + + <div id="container"> + <div id="userpanel"> + <span style="color: #7f7f7f">Nie jesteś zalogowany</span> + </div> + + <div id="header"> + <!-- Left -----------------------------------> + <div class="active">%$$(title)%</div> + <!-- Right ----------------------------------> + <div style="float: right">Kod źródłowy</div> + <!-------------------------------------------> + <div style="clear: both; display: none"></div> + </div> + + <div id="content"> +<!-- Content beginning --> +<h1>%$$(title)%</h1> @<### -<p>Generated by <a href="https://git.kocotian.pl/stacinhtml">stac</a></p> +<!-- Content ending --> + </div> + + <div id="footer" class="smaller"> + <p> + Wygenerowano % system("date '+\045d \045h \045Y, \045k:\045M'"); % + używając <a href="https://git.kocotian.pl/stacinhtml">stac</a> + na % system("uname -a"); % + </p> + </div> + </div> - </body> </html>