Skip to content

Commit 494d945

Browse files
author
pnathan
committed
Reformulating bottom matter.
- Shifted footer around. - Now shows the git version of the compiled system - Moved credits to who page.
1 parent 14c8118 commit 494d945

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

begin-footer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<hr/>
2+
<footer>

content-footer.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
<hr/>
2-
<footer>
3-
<p>&copy; Paul Nathan 2013</p>
4-
<p><a href="https://github.com/pnathan/articulate-common-lisp"> Github source</a> - contributions welcome!</p>
5-
<p>Analytics by <a href="https://www.quantcast.com/">Quantcast</a>
6-
<p>Theme by <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>
7-
</footer>
81

9-
<center>
2+
<center style="font-size: x-small">
3+
4+
<p>&copy; Paul Nathan 2013</p>
5+
<p><a href="https://github.com/pnathan/articulate-common-lisp"> Github source</a> - contributions welcome!</p>
6+
107
&lambda;
118
</center>
12-
</div>
13-
</div>

end-footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
</footer>
2+
</div>
3+
</div>

make.lisp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
(defun generate-command (fn)
1111
(list "-B" "banner.html"
1212
"-B" "content-begin.html"
13+
"-A" "begin-footer.html"
1314
"-A" "content-footer.html"
15+
"-A" "version.html"
16+
"-A" "end-footer.html"
1417
"-A" "quantcast.html"
1518
"-T" "Articulate Common Lisp"
1619
"--template=pandoc-data/templates/default.html5"
@@ -24,6 +27,25 @@
2427
"-o" (format nil "site/~a.html" fn)))
2528

2629

30+
(defun build-git-hash-file ()
31+
(let ((hash (first
32+
(split-sequence:split-sequence
33+
#\Space
34+
(with-output-to-string (s)
35+
(external-program:run "git" '("show" "-s" "--oneline")
36+
:output s))))))
37+
(with-open-file (stream
38+
"version.html"
39+
:direction :output
40+
:if-exists :supersede
41+
:if-does-not-exist :create)
42+
(format stream
43+
"~&<div>~%
44+
<center style=\"font-size=x-small; color:lightgrey\">
45+
~%version: ~a~%
46+
</center>~%
47+
</div>" hash))))
48+
2749
(defun determine-name (fn)
2850
(subseq fn (1+ (position #\: fn))))
2951

@@ -145,6 +167,7 @@
145167

146168

147169
(defun build-files ()
170+
(build-git-hash-file)
148171
(loop for file in (find-file-prefixes (ls))
149172
do
150173
(format t "~&articulating ~a into the final form...~&" file)

who.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ Feedback of all sorts will be gratefully welcomed. Contributions and
1515
bug reports should be done via the github location for maximum
1616
coordination.
1717

18-
Happy hacking!
18+
Happy hacking!
19+
20+
21+
*Credit*
22+
23+
* Analytics by [Quantcast](https://www.quantcast.com/)
24+
25+
* Theme by [Twitter Bootstrap](http://twitter.github.com/bootstrap/)

0 commit comments

Comments
 (0)