Summary Files Commits Branches @commit @diff @stats
path: root / ext
diff options
context:
space:
mode:
1 files changed, 7 insertions, 0 deletions
-rw-r--r--ext/contents.awk7
diff --git a/ext/contents.awk b/ext/contents.awk
new file mode 100644
index 0000000..e5e82df
--- /dev/null
+++ b/ext/contents.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ contents_anchor = anchor
+ sub(/\[\?header\?\]/, "contents", contents_anchor)
+ ++all_titles["contents"]
+
+ define("CONTENTS", "<div id=\"contents-container\"><h2 id=\"contents\">Contents</h2>" contents_anchor, "</div>")
+}