summary refs log tree commit diff stats
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rw-r--r--trunk/first-lines.sh17
-rw-r--r--trunk/hapax.head11
-rw-r--r--trunk/lozenge.js2
3 files changed, 29 insertions, 1 deletions
diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh new file mode 100644 index 0000000..50b0e0c --- /dev/null +++ b/trunk/first-lines.sh
@@ -0,0 +1,17 @@
1#!/bin/bash
2
3outFile=src/first-lines.txt
4
5echo "" > $outFile
6
7for file in src/*.txt; do
8 echo -n "Getting first line of $file .. "
9 endOfYAML=$(sed -n '/^\.\.\.$/=' "$file")
10 firstLineNumber=$((endOfYAML + 2))
11
12 echo "$file: " >> $outFile
13 echo " $(head -n $firstLineNumber "$file" | tail -n 1)" >> $outFile
14
15 unset endOfYAML firstLineNumber
16 echo "Done."
17done
diff --git a/trunk/hapax.head b/trunk/hapax.head new file mode 100644 index 0000000..88b23bf --- /dev/null +++ b/trunk/hapax.head
@@ -0,0 +1,11 @@
1---
2title: Autocento of the breakfast table
3id: hapax
4subtitle: hapax legomena
5genre: prose
6
7project:
8 title: About autocento
9 class: meta
10...
11
diff --git a/trunk/lozenge.js b/trunk/lozenge.js index 2df6cad..2c7f503 100644 --- a/trunk/lozenge.js +++ b/trunk/lozenge.js
@@ -16,7 +16,7 @@ function _lozenge() {
16 16
17 if (current != files[index]) { 17 if (current != files[index]) {
18 lozenge.setAttribute("href", files[index]); 18 lozenge.setAttribute("href", files[index]);
19 lozenge.setAttribute("title", "Random article"); 19 lozenge.setAttribute("title", "To random article");
20 } else { 20 } else {
21 _lozenge() 21 _lozenge()
22 } 22 }