diff options
author | NerdyPepper <[email protected]> | 2019-08-01 12:18:05 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-08-01 12:18:05 +0100 |
commit | 932be81a69378e69c245b3d6a18f8913c2a2aba9 (patch) | |
tree | e0269dfc1e2ff91e65a3d655d887296625fbe1b5 | |
parent | 4264c51934893d6c7d5be87f6f94c964a84c32aa (diff) |
fix anchors
-rw-r--r-- | docs/index.html | 12 | ||||
-rwxr-xr-x | generate.sh | 8 |
2 files changed, 16 insertions, 4 deletions
diff --git a/docs/index.html b/docs/index.html index 90c27d4..3cd0718 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -5,6 +5,12 @@ | |||
5 | <link rel="stylesheet" href="./style.css"> | 5 | <link rel="stylesheet" href="./style.css"> |
6 | <meta charset="UTF-8"> | 6 | <meta charset="UTF-8"> |
7 | <meta name="viewport" content="initial-scale=1"> | 7 | <meta name="viewport" content="initial-scale=1"> |
8 | <meta content="#ffffff" name="theme-color"> | ||
9 | <meta name="HandheldFriendly" content="true"> | ||
10 | <meta property="og:title" content="nerdypepper"> | ||
11 | <meta property="og:type" content="website"> | ||
12 | <meta property="og:description" content="a static site {for, by, about} me "> | ||
13 | <meta property="og:url" content="https://nerdypepper.me"> | ||
8 | <title>n</title> | 14 | <title>n</title> |
9 | 15 | ||
10 | <script> | 16 | <script> |
@@ -28,7 +34,7 @@ function showPost(id) { | |||
28 | 34 | ||
29 | <div class="post"> | 35 | <div class="post"> |
30 | <div class="date">31/07 2019</div> | 36 | <div class="date">31/07 2019</div> |
31 | <a href="#bash_harder_with_vim.md" class="post-link" onClick="showPost('bash_harder_with_vim.md')">Bash Harder With Vim</a> | 37 | <a id="post-bash_harder_with_vim.md" href="#post-bash_harder_with_vim.md" class="post-link" onClick="showPost('bash_harder_with_vim.md')">Bash Harder With Vim</a> |
32 | <div id="bash_harder_with_vim.md" class="post-text" style="display: none"> | 38 | <div id="bash_harder_with_vim.md" class="post-text" style="display: none"> |
33 | <p>Bash is tricky, don’t let your editor get in your way. Here’s a couple of neat | 39 | <p>Bash is tricky, don’t let your editor get in your way. Here’s a couple of neat |
34 | additions you could make to your <code>vimrc</code> for a better shell programming | 40 | additions you could make to your <code>vimrc</code> for a better shell programming |
@@ -95,7 +101,7 @@ Press ENTER or type command to continue | |||
95 | 101 | ||
96 | <div class="post"> | 102 | <div class="post"> |
97 | <div class="date">30/07 2019</div> | 103 | <div class="date">30/07 2019</div> |
98 | <a href="#hold_position!.md" class="post-link" onClick="showPost('hold_position!.md')">Hold Position!</a> | 104 | <a id="post-hold_position!.md" href="#post-hold_position!.md" class="post-link" onClick="showPost('hold_position!.md')">Hold Position!</a> |
99 | <div id="hold_position!.md" class="post-text" style="display: none"> | 105 | <div id="hold_position!.md" class="post-text" style="display: none"> |
100 | <p>Often times, when I run a vim command that makes “big” changes to a file (a | 106 | <p>Often times, when I run a vim command that makes “big” changes to a file (a |
101 | macro or a <code>:vimgrep</code> command) I lose my original position and feel disoriented.</p> | 107 | macro or a <code>:vimgrep</code> command) I lose my original position and feel disoriented.</p> |
@@ -125,7 +131,7 @@ heavier filtering.</p> | |||
125 | 131 | ||
126 | <div class="post"> | 132 | <div class="post"> |
127 | <div class="date">30/07 2019</div> | 133 | <div class="date">30/07 2019</div> |
128 | <a href="#get_better_at_yanking_and_putting_in_vim.md" class="post-link" onClick="showPost('get_better_at_yanking_and_putting_in_vim.md')">Get Better At Yanking And Putting In Vim</a> | 134 | <a id="post-get_better_at_yanking_and_putting_in_vim.md" href="#post-get_better_at_yanking_and_putting_in_vim.md" class="post-link" onClick="showPost('get_better_at_yanking_and_putting_in_vim.md')">Get Better At Yanking And Putting In Vim</a> |
129 | <div id="get_better_at_yanking_and_putting_in_vim.md" class="post-text" style="display: none"> | 135 | <div id="get_better_at_yanking_and_putting_in_vim.md" class="post-text" style="display: none"> |
130 | <ol> | 136 | <ol> |
131 | <li><p>reselecting previously selected text (i use this to fix botched selections):</p> | 137 | <li><p>reselecting previously selected text (i use this to fix botched selections):</p> |
diff --git a/generate.sh b/generate.sh index eb15725..94b4928 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 href=\"#$1\" class=\"post-link\" onClick=\"showPost('$1')\">$title</a> | 17 | <a id=\"post-$1\" href=\"#post-$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> |
@@ -31,6 +31,12 @@ echo " | |||
31 | <link rel=\"stylesheet\" href=\"./style.css\"> | 31 | <link rel=\"stylesheet\" href=\"./style.css\"> |
32 | <meta charset=\"UTF-8\"> | 32 | <meta charset=\"UTF-8\"> |
33 | <meta name=\"viewport\" content=\"initial-scale=1\"> | 33 | <meta name=\"viewport\" content=\"initial-scale=1\"> |
34 | <meta content=\"#ffffff\" name=\"theme-color\"> | ||
35 | <meta name=\"HandheldFriendly\" content=\"true\"> | ||
36 | <meta property=\"og:title\" content=\"nerdypepper\"> | ||
37 | <meta property=\"og:type\" content=\"website\"> | ||
38 | <meta property=\"og:description\" content=\"a static site {for, by, about} me \"> | ||
39 | <meta property=\"og:url\" content=\"https://nerdypepper.me\"> | ||
34 | <title>n</title> | 40 | <title>n</title> |
35 | " > ./docs/index.html | 41 | " > ./docs/index.html |
36 | 42 | ||