xfwc

Log | Files | Refs

commit 087c7155a1441dbe5b132314cbd9a3209752d9c5
Author: xfnw <xfnw@ttm.sh>
Date:   Fri, 31 Jul 2020 14:12:36 +0000

xfss

Diffstat:
A.gitignore | 3+++
Atemplate/page.html | 17+++++++++++++++++
Atemplate/style.css | 2++
Axfss | 19+++++++++++++++++++
4 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,3 @@ +src +src/ +src/* diff --git a/template/page.html b/template/page.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<head> + <meta name="generator" content= + "lick simple site"> + <title>XFSSTITLE</title> + <link rel="stylesheet" href="template/style.css"> + <meta name="viewport" content="width=device-width, initial-scale=1"> +</head> +<body> + + +<!-- xfss --> + + +</body> +</html> diff --git a/template/style.css b/template/style.css @@ -0,0 +1 @@ +../../lickhack-css/lickhack.css+ \ No newline at end of file diff --git a/xfss b/xfss @@ -0,0 +1,19 @@ +#!/bin/bash + +BOOPTMP=$(mktemp) + +for fn in $(ls src); do +NEWF=${fn%??}html +TITLE=$(echo ${fn%???} | sed 's/_/ /g' | sed -e 's/[]$.*[\^]/\\&/g') +echo "rendering $NEWF..." + +cmark <src/$fn >$BOOPTMP +cp template/page.html $NEWF + +sed "/<body>/r $BOOPTMP" template/page.html > $NEWF + +sed -i "s/XFSSTITLE/$TITLE/" $NEWF + +done + +