1
0
Fork 0

Added blog page

website
Mike Gerwitz 2012-01-04 23:09:00 -05:00
parent eeb3f89c56
commit b78d0e5a67
3 changed files with 31 additions and 2 deletions

View File

@ -13,10 +13,10 @@ output_html := $(addprefix $(outdir)/, $(input_html))
output_images := $(addprefix $(outdir)/, $(input_images))
output_scripts := $(addprefix $(outdir)/, $(input_scripts))
.PHONY: default clean
.PHONY: default clean blog
default: $(outdir) $(output_html) $(output_images) \
$(output_scripts) $(outdir)/style.css
$(output_scripts) $(outdir)/style.css blog
$(outdir):
mkdir -p $@ $@/images $@/scripts/ex
@ -37,5 +37,16 @@ $(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
| sed 's/^ \+//' \
> $@
# requires git-weblog from mikegerwitz's git-supp package
blog:
@[ "$$( which git-weblog )" ] || ( echo "Please add git-weblog to PATH" && false )
git log --log-size --format="%H%n%B" master \
| grep -A1 '^log size \([5-9][0-9]\{2,\}\|[0-9]\{4,\}\)$$' \
| grep -o '^[a-z0-9]\+$$' \
| xargs git weblog 0.1.0 \
| cat $(header) - $(footer) \
| sed 's/\(<body\)/\1 class="blog"/' \
> "$(outdir)/blog.html"
clean:
${RM} -r webroot

View File

@ -17,6 +17,7 @@
<div id="menu">
<ul>
<li id="about"><a href="/">About</a></li>
<li id="blog"><a href="blog.html">Blog</a></li>
<li id="download"><a href="download.html">Download</a></li>
<li id="manual"><a href="man.html">Manual</a></li>
<li id="source"><a href="source.html">Source Code</a></li>

View File

@ -122,6 +122,7 @@ html, body {
#menu a:hover,
body.index #about a,
body.blog #blog a,
body.download #download a,
body.man #manual a,
body.source #source a {
@ -129,6 +130,7 @@ body.source #source a {
}
body.index #about a,
body.blog #blog a,
body.download #download a,
body.man #manual a,
body.source #source a {
@ -314,3 +316,18 @@ span.release-current .version {
font-weight: normal;
}
h3.git-commit {
margin-bottom: 0.1em;
padding-bottom: 0.1em;
}
div.git-commit-author,
div.git-commit-date {
color: #2e3436;
font-size: 0.9em;
}
div.git-commit-date {
font-size: 0.8em;
}