Added blog page
parent
eeb3f89c56
commit
b78d0e5a67
15
Makefile
15
Makefile
|
@ -13,10 +13,10 @@ output_html := $(addprefix $(outdir)/, $(input_html))
|
||||||
output_images := $(addprefix $(outdir)/, $(input_images))
|
output_images := $(addprefix $(outdir)/, $(input_images))
|
||||||
output_scripts := $(addprefix $(outdir)/, $(input_scripts))
|
output_scripts := $(addprefix $(outdir)/, $(input_scripts))
|
||||||
|
|
||||||
.PHONY: default clean
|
.PHONY: default clean blog
|
||||||
|
|
||||||
default: $(outdir) $(output_html) $(output_images) \
|
default: $(outdir) $(output_html) $(output_images) \
|
||||||
$(output_scripts) $(outdir)/style.css
|
$(output_scripts) $(outdir)/style.css blog
|
||||||
|
|
||||||
$(outdir):
|
$(outdir):
|
||||||
mkdir -p $@ $@/images $@/scripts/ex
|
mkdir -p $@ $@/images $@/scripts/ex
|
||||||
|
@ -37,5 +37,16 @@ $(outdir)/%.html: %.html $(header) $(footer) | $(outdir)
|
||||||
| sed 's/^ \+//' \
|
| 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:
|
clean:
|
||||||
${RM} -r webroot
|
${RM} -r webroot
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li id="about"><a href="/">About</a></li>
|
<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="download"><a href="download.html">Download</a></li>
|
||||||
<li id="manual"><a href="man.html">Manual</a></li>
|
<li id="manual"><a href="man.html">Manual</a></li>
|
||||||
<li id="source"><a href="source.html">Source Code</a></li>
|
<li id="source"><a href="source.html">Source Code</a></li>
|
||||||
|
|
17
style.css
17
style.css
|
@ -122,6 +122,7 @@ html, body {
|
||||||
|
|
||||||
#menu a:hover,
|
#menu a:hover,
|
||||||
body.index #about a,
|
body.index #about a,
|
||||||
|
body.blog #blog a,
|
||||||
body.download #download a,
|
body.download #download a,
|
||||||
body.man #manual a,
|
body.man #manual a,
|
||||||
body.source #source a {
|
body.source #source a {
|
||||||
|
@ -129,6 +130,7 @@ body.source #source a {
|
||||||
}
|
}
|
||||||
|
|
||||||
body.index #about a,
|
body.index #about a,
|
||||||
|
body.blog #blog a,
|
||||||
body.download #download a,
|
body.download #download a,
|
||||||
body.man #manual a,
|
body.man #manual a,
|
||||||
body.source #source a {
|
body.source #source a {
|
||||||
|
@ -314,3 +316,18 @@ span.release-current .version {
|
||||||
font-weight: normal;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue