1
0
Fork 0

Blog => News

website
Mike Gerwitz 2013-12-23 22:28:13 -05:00
parent d770b4b035
commit cc077eeccd
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
4 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@
header := includes/header.html
footer := includes/footer.html
header_blog := includes/blog-header.html
header_news := includes/news-header.html
input_html := $(wildcard *.html)
input_images := $(wildcard images/*.png)
@ -34,7 +34,7 @@ output_html := $(addprefix $(outdir)/, $(input_html))
output_images := $(addprefix $(outdir)/, $(input_images))
output_scripts := $(addprefix $(outdir)/, $(input_scripts))
.PHONY: default clean blog publish
.PHONY: default clean news publish
default: $(outdir) $(output_html) $(output_images) \
$(output_scripts) $(outdir)/style.css
@ -60,7 +60,7 @@ $(outdir)/%.html: %.html $(header) $(footer) tools/page-parse | $(outdir)
> $@
# requires git-weblog from mikegerwitz's git-supp package
blog:
news:
@[ "$$( which git-weblog )" ] \
|| ( echo "Please add git-weblog to PATH" >&2 && false )
git fetch origin refs/notes/*:refs/notes/*
@ -68,9 +68,9 @@ blog:
| grep -A1 '^log size \([5-9][0-9]\{2,\}\|[0-9]\{4,\}\)$$' \
| grep -o '^[a-z0-9]\+$$' \
| xargs git weblog -Dn $$( git tag -l ) \
| cat $(header) $(header_blog) - $(footer) \
| sed 's/\(<body\)/\1 class="blog"/' \
> "$(outdir)/blog.html"
| cat $(header) $(header_news) - $(footer) \
| sed 's/\(<body\)/\1 class="news"/' \
> "$(outdir)/news.html"
# documentation, styled to match the rest of the website
webdoc:

View File

@ -15,7 +15,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="news"><a href="news.html">News</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

@ -130,7 +130,7 @@ a:hover {
#menu a:hover,
body.index #about a,
body.blog #blog a,
body.news #news a,
body.download #download a,
body.man #manual a,
body.source #source a {
@ -138,7 +138,7 @@ body.source #source a {
}
body.index #about a,
body.blog #blog a,
body.news #news a,
body.download #download a,
body.man #manual a,
body.source #source a {
@ -304,7 +304,7 @@ span.release-current .date {
}
/** blog **/
/** news **/
h3.git-commit {
margin-bottom: 0.1em;
padding-bottom: 0.1em;