diff options
author | NerdyPepper <[email protected]> | 2019-08-02 16:36:34 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-08-02 16:36:34 +0100 |
commit | 5b68373e9b08b5ab60d59985dff55ab238a635ca (patch) | |
tree | 5b45157fe5dbca1c824ff7595268a920711b28ca /generate.sh | |
parent | 72d2018f04f55cb9b7b86652e3d1738873cf1095 (diff) |
fix anchors [episode 2]
Diffstat (limited to 'generate.sh')
-rwxr-xr-x | generate.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generate.sh b/generate.sh index 94b4928..765accf 100755 --- a/generate.sh +++ b/generate.sh | |||
@@ -14,7 +14,7 @@ post_wrapper() { | |||
14 | echo -ne " | 14 | echo -ne " |
15 | <div class=\"post\"> | 15 | <div class=\"post\"> |
16 | <div class=\"date\">$3</div> | 16 | <div class=\"date\">$3</div> |
17 | <a id=\"post-$1\" href=\"#post-$1\" class=\"post-link\" onClick=\"showPost('$1')\">$title</a> | 17 | <a id=\"post-$1\" href=\"#$1\" class=\"post-link\" onClick=\"showPost('$1')\" >$title</a> |
18 | <div id=\"$1\" class=\"post-text\" style=\"display: none\"> | 18 | <div id=\"$1\" class=\"post-text\" style=\"display: none\"> |
19 | $2 | 19 | $2 |
20 | <a href=\"#$1\" class=\"post-end-link\" onClick=\"showPost('$1')\">↑ Collapse</a> | 20 | <a href=\"#$1\" class=\"post-end-link\" onClick=\"showPost('$1')\">↑ Collapse</a> |
@@ -49,7 +49,7 @@ echo '</script> </head>' >> docs/index.html | |||
49 | 49 | ||
50 | # body | 50 | # body |
51 | echo " | 51 | echo " |
52 | <body> | 52 | <body onload=\"gotoId()\"> |
53 | <h1 class=\"heading\">n</h1> | 53 | <h1 class=\"heading\">n</h1> |
54 | " >> docs/index.html | 54 | " >> docs/index.html |
55 | 55 | ||