diff --git a/build.mb b/build.mb
index 113c59a..84a31de 100644
--- a/build.mb
+++ b/build.mb
@@ -19,6 +19,18 @@ sector c_rules
str input_format 'data/$(%element%).sad'
str output_format '$(%element%).html'
- str exec 'bin/fpc-sitegen -i $(%input%) -o $(%output%)'
+ str exec '#!/usr/bin/env bash
+
+bin/fpc-sitegen -i $(%input%) -o $(%output%)
+
+COMMIT_SHORT=\$(git rev-parse --short HEAD)
+DATE=\$(date +%d.%m.%Y)
+TIME=\$(date +%H:%M:%S)
+
+sed -i ''s/\\\$\\\$DATE\\\$\\\$/''"\$DATE/g" $(%output%)
+sed -i ''s/\\\$\\\$TIME\\\$\\\$/''"\$TIME/g" $(%output%)
+sed -i ''s@\\\$\\\$SOURCE\\\$\\\$@$(%input%)@g'' $(%output%)
+sed -i ''s/\\\$\\\$COMMIT\\\$\\\$/''"\$COMMIT_SHORT/g" $(%output%)
+'
end
end
diff --git a/data/index.sad b/data/index.sad
index e3ac409..d86be8a 100644
--- a/data/index.sad
+++ b/data/index.sad
@@ -10,6 +10,14 @@ This website was made using my own static-site
generator written in 100% freepascal. Since I am too lazy to make a nice
template this also looks like shit :)
+
+{$begin-section} socials-contacts
+{$sub-head} Socials / Contact
+
+* GitHub
+* Twitter
+* Pouet
+{$end-section}
{$end-section}
{$begin-section} projects
{$head} projects
@@ -17,23 +25,23 @@ template this also looks like shit :)
{$begin-section} c
{$sub-head} c
-* mariebuild
+* mariebuild [github]
A customary buildsystem written in C.
-* Library to parse the Marie-Configuration/2 file format.
-* Simple and not fully functional X11 Window Manager.
-* A Library to parse Fixed-Width-Binary-Tables.
{$end-section}
{$begin-section} freepascal
{$sub-head} freepascal
-* A simple static-site-generator.
-* The Simple-Ansi-Document file format suite.
-* My system information fetcher.
{$end-section}
{$end-section}
diff --git a/data/template.sgt b/data/template.sgt
index 7995532..f615493 100644
--- a/data/template.sgt
+++ b/data/template.sgt
@@ -22,12 +22,14 @@ output-format:
@@ -53,6 +55,10 @@ output-format:
+
+
+
+
Last generated @ $$DATE$$, $$TIME$$ ; source $$SOURCE$$ @ commit $$COMMIT$$
diff --git a/test.css b/test.css
index 43c302f..afcbf27 100644
--- a/test.css
+++ b/test.css
@@ -8,36 +8,43 @@ body {
margin: 0;
padding: 0;
}
-/* The sidebar menu */
+
+/* The sidebar menu
.sidenav {
- height: 100%; /* Full-height: remove this if you want "auto" height */
- width: 160px; /* Set the width of the sidebar */
- position: fixed; /* Fixed Sidebar (stay in place on scroll) */
- z-index: 1; /* Stay on top */
- top: 0; /* Stay at the top */
+ height: 100%; /* Full-height: remove this if you want "auto" height
+ width: 160px; /* Set the width of the sidebar
+ position: fixed; /* Fixed Sidebar (stay in place on scroll)
+ z-index: 1; /* Stay on top
+ top: 0; /* Stay at the top
left: 0;
- background-color: #e7eaef; /* Black */
- overflow-x: hidden; /* Disable horizontal scroll */
+ background-color: #e7eaef; /* Black
+ overflow-x: hidden; /* Disable horizontal scroll
padding-top: 20px;
}
-/* The navigation menu links */
+.sidenav h1 {
+ font-size: 20pt;
+}
+
+
+/* The navigation menu links
.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
- font-size: 25px;
+ font-size: 15pt;
color: black;
display: block;
}
-/* When you mouse over the navigation links, change their color */
+/* When you mouse over the navigation links, change their color
.sidenav a:hover {
color: #818181;
}
+*/
+
/* Style page content */
.main {
- margin-left: 160px; /* Same as the width of the sidebar */
padding: 0px 10px;
background-color: #f0f4f7;
height: 100%;
@@ -66,7 +73,7 @@ body {
}
.sub-header {
- font-size: 20pt;
+ font-size: 18pt;
}
.sub-header a {
@@ -95,6 +102,8 @@ body {
font-size: 12pt;
}
+
+
#banner {
width:100%;
}