commit 1ae24197c53fd2a61fd1ab6c0a6dc66a58a71ffc
parent 6e0ca81cf9e7512067f1b63484d8fda0be4ad91c
Author: parazyd <parazyd@dyne.org>
Date: Tue, 14 Feb 2017 23:32:01 +0100
new mars
Diffstat:
17 files changed, 19 insertions(+), 50 deletions(-)
diff --git a/contact.md b/contact.md
@@ -1,6 +1,4 @@
-##+TITLE contact :: parazyd.cf
-
-Contact
+contact
=======
You can contact me via any of the following:
diff --git a/dyne/index.html b/dyne/index.html
@@ -1,4 +0,0 @@
-<h1>Hi there....</h1>
-<p>There's not much to see here, but in the meantime, there's more
-stuff at <a href="https://parazyd.cf">https://parazyd.cf</a> | <a
-href="http://i3kgydn7eeqm3dr4.onion">http://i3kgydn7eeqm3dr4.onion</a></p>
diff --git a/enemy.org/index.html b/enemy.org/index.html
@@ -1,4 +0,0 @@
-<h1>Hi there....</h1>
-<p>There's not much to see here, but in the meantime, there's more
-stuff at <a href="https://parazyd.cf">https://parazyd.cf</a> | <a
-href="http://i3kgydn7eeqm3dr4.onion">http://i3kgydn7eeqm3dr4.onion</a></p>
diff --git a/err/403.md b/err/403.md
@@ -1,6 +1,5 @@
-##+TITLE 403
-
-# 403
+403
+===
not for your eyes
diff --git a/err/404.md b/err/404.md
@@ -1,6 +1,5 @@
-##+TITLE 404
-
-# 404
+404
+===
another file deleted by systemd
diff --git a/mars b/mars
@@ -1,5 +1,6 @@
#!/bin/dash
-# see LICENSE file for copyright and license details
+# copyleft (c) parazyd 2016-2017
+# see LICENSE file for license details
. ./webtree
@@ -10,17 +11,17 @@ die() {
process() {
for dir in $tree; do
- printf "\t -- /$dir --\n"
+ printf "\t-- /$dir --\n"
cd $dir || die
for page in *.md; do
if [ $(printf "%s" "$exclude" | grep "$page") ]; then
- printf "[SKIP] %s\n" "$page"
+ printf "[\033[1;33mSKIP\033[0m] %s\n" "$page"
continue
fi
name="$(printf "%s" "$page" | cut -d. -f1 -)"
- rm -vf "${name}.html"
+ rm -f "${name}.html"
if [ "$1" = generate ]; then
[ -n "$precontent" ] && {
@@ -34,8 +35,8 @@ process() {
-i ${name}.html
python -m markdown "$page" >> "${name}.html" \
- && printf "[ OK ] %s.md\t\t->\t%s.html\n" "$name" "$name" \
- || printf "[NOPE] %s.md\t\t->\t%s.html\n" "$name" "$name"
+ && printf "[ \033[1;32mOK\033[0m ] %s.md\t\t->\t%s.html\n" "$name" "$name" \
+ || printf "[\033[1;31mNOPE\033[0m] %s.md\t\t->\t%s.html\n" "$name" "$name"
[ -n "$postcontent" ] && {
for i in $postcontent; do
@@ -43,19 +44,19 @@ process() {
done
}
- if [ $(grep "${name}.html" "${name}.html") ]; then
+ if [ $(grep "${name}.html" "${name}.html" >/dev/null) ]; then
sed -e 's:class="thisSite" ::' \
- -e 's:href='$name'.html:class="thisSite" href="'$name'.html":' \
+ -e 's:href='"$name"'.html:class="thisSite" href="'"$name"'.html":' \
-i "${name}.html"
else
dirstr="$(basename $PWD)"
sed -e 's:class="thisSite" ::' \
- -e 's:href="/'$dirstr'/":class="thisSite" href="/'$dirstr'/":' \
+ -e 's:href="/'"$dirstr"'/":class="thisSite" href="/'"$dirstr"'/":' \
-i ${name}.html
fi
fi
done
- cd -
+ cd - >/dev/null
done
}
diff --git a/musings/andromusl.md b/musings/andromusl.md
@@ -1,7 +1,5 @@
-##+TITLE compiling android tools on musl : parazyd.cf
-
-my journey with compiling latest android-tools with musl
-========================================================
+compiling latest android-tools with musl
+========================================
It's a pain in the ass.
diff --git a/musings/bffnff.md b/musings/bffnff.md
@@ -1,5 +1,3 @@
-##+TITLE safest way to use firefox? don't use it!
-
Safest way to use Firefox? Don't use it!
========================================
diff --git a/musings/classiccloud.md b/musings/classiccloud.md
@@ -1,5 +1,3 @@
-##+TITLE on bitcoin blassic and all the bickering
-
On Bitcoin Classic and all the bickering
========================================
diff --git a/musings/cloudflare.md b/musings/cloudflare.md
@@ -1,5 +1,3 @@
-##+TITLE tor users are being treated as lower-class internet citizens
-
Tor users are being treated as lower-class Internet citizens
============================================================
diff --git a/musings/firefoxspyware.md b/musings/firefoxspyware.md
@@ -1,5 +1,3 @@
-##+TITLE spyware in firefox
-
Spyware in Firefox
==================
diff --git a/musings/fixthenet.md b/musings/fixthenet.md
@@ -1,5 +1,3 @@
-##+TITLE fixing the internet for everyone
-
Fixing the Internet for everyone
================================
diff --git a/musings/index.md b/musings/index.md
@@ -1,5 +1,3 @@
-##+TITLE random musings :: parazyd.cf
-
random musings
==============
diff --git a/musings/systemdsucks.md b/musings/systemdsucks.md
@@ -1,5 +1,3 @@
-##+TITLE systemd sucks
-
systemd sucks
=============
diff --git a/musings/tails2.md b/musings/tails2.md
@@ -1,5 +1,3 @@
-##+TITLE on tails 2.0 and systemd
-
On Tails 2.0 and systemd
========================
diff --git a/projects/index.md b/projects/index.md
@@ -1,5 +1,3 @@
-##+TITLE projects :: parazyd.cf
-
Projects
========
diff --git a/webtree b/webtree
@@ -16,7 +16,7 @@ tree="
"
# here add files you want excluded from being generated as .html
-exclude=""
+exclude="andromusl.md"
# html that is put in order before the conten
precontent="header.html navigation.html"