arnaucube
arnaucube/arnaucube.comPublic Self-hosted repository
arnaucube.com/blogo-input/index.html
blogo-input/index.htmlRaw
  1<!DOCTYPE html>
  2<html lang="en">
  3
  4  <head>
  5    <meta name="description" content="[blogo-summary]" />
  6    <meta charset="utf-8">
  7    <title>[blogo-title]</title>
  8    <meta name="title" content="[blogo-title]">
  9    <meta name="description" content="[blogo-summary]">
 10
 11    <meta property="og:title" content="[blogo-title]" />
 12    <meta property="og:description" content="[blogo-summary]" />
 13    <meta property="og:url" content="[blogo-link]" />
 14    <meta property="og:type" content="article" />
 15    <meta property="og:image" content="[blogo-img]" />
 16    <meta name="twitter:title" content="[blogo-title]">
 17    <meta name="twitter:description" content="[blogo-summary]">
 18    <meta name="twitter:image" content="[blogo-img]">
 19    <meta name="twitter:card" content="summary_large_image">
 20    <meta name="author" content="arnaucube">
 21
 22    <link rel="icon" type="image/png" href="img/logoArnauCubeFavicon.png">
 23
 24    <meta name="viewport" content="width=device-width, initial-scale=1">
 25
 26    <link href="css/bootstrap.min.css" rel="stylesheet">
 27    <link rel="stylesheet" href="css/style.css">
 28
 29    <!-- highlightjs -->
 30    <!-- <link rel="stylesheet" href="js/highlightjs/atom-one-dark.css"> -->
 31    <link rel="stylesheet" href="js/highlightjs/atom-one-light.css">
 32    <!-- <link rel="stylesheet" href="js/highlightjs/gruvbox-dark.css"> -->
 33    <script src="js/highlightjs/highlight.pack.js"></script>
 34
 35    <!-- katex -->
 36    <link rel="stylesheet" href="js/katex/katex.min.css">
 37  </head>
 38
 39  <body>
 40
 41    <!-- o_gradient_background" -->
 42    <nav id="mainNav" class="navbar navbar-default navbar-fixed-top"
 43                      style="height:50px;font-size:100%;">
 44      <div class="container">
 45        <div style="float:left;">
 46        <a href="/blog" style="color:#000;display:inline-block;">blog</a>
 47        <span style="margin-right:20px; margin-left:20px;">|</span>
 48        <a href="/blog/notes.html" style="font-size:90%;color:#000;display:inline-block;">notes</a>
 49        </div>
 50        <div style="float:right;">
 51          <a href="/" style="color:#000;display:inline-block;margin-right:10px;">arnaucube.com</a>
 52          <div class="onoffswitch" style="margin-left:0px;display:inline-block;" title="change theme">
 53            <input onclick="switchTheme()" type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
 54              id="themeSwitcher">
 55            <label class="onoffswitch-label" for="themeSwitcher"></label>
 56          </div>
 57        </div>
 58      </div>
 59      <!-- <img style="height:5px; width:100%; margin-top:8px;" src="img/gradient-line.jpg" /> -->
 60    </nav>
 61
 62
 63
 64    <div class="container" style="margin-top:0px;max-width:800px;">
 65      [blogo-content]
 66    </div>
 67
 68    <footer style="text-align:center; margin-top:100px;margin-bottom:50px;">
 69      <div class="container">
 70        <br>
 71        <a href="/blog">Go to main</a>
 72        <br><br>
 73        <div class="row">
 74          <ul class="list-inline">
 75            <li><a href="https://twitter.com/arnaucube"
 76                   style="color:gray;text-decoration:none;"
 77                   target="_blank">twitter.com/arnaucube</a>
 78            </li>
 79            <li><a href="https://github.com/arnaucube"
 80                   style="color:gray;text-decoration:none;"
 81                   target="_blank">github.com/arnaucube</a>
 82            </li>
 83          </ul>
 84        </div>
 85        <div class="row" style="display:inline-block;">
 86          Blog made with <a href="http://github.com/arnaucube/blogo/"
 87                            target="_blank" style="color: gray;text-decoration:none;">Blogo</a>
 88        </div>
 89      </div>
 90    </footer>
 91
 92    <script>
 93    </script>
 94    <script src="js/external-links.js"></script>
 95    <script>hljs.initHighlightingOnLoad();</script>
 96    <script defer src="js/katex/katex.min.js"></script>
 97    <script defer src="js/katex/auto-render.min.js"></script>
 98    <script>
 99      document.addEventListener("DOMContentLoaded", function() {
100        renderMathInElement(document.body, {
101          displayMode: false,
102          // customised options
103          // • auto-render specific keys, e.g.:
104          delimiters: [
105            {left: '$$', right: '$$', display: true},
106            {left: '$', right: '$', display: false},
107            {left: "\\[", right: "\\]", display: true},
108            {left: "\\(", right: "\\)", display: false},
109            {left: "\\begin{equation}", right: "\\end{equation}", display: true}
110          ],
111          // • rendering keys, e.g.:
112          throwOnError : true
113        });
114      });
115
116      ///
117      let theme = localStorage.getItem("theme");
118      if ((theme === "light-theme")||(theme==null)) {
119          theme = "light-theme";
120          document.getElementById("themeSwitcher").checked = false;
121      } else if (theme === "dark-theme") {
122          theme = "dark-theme";
123          document.getElementById("themeSwitcher").checked = true;
124      }
125      document.body.className = theme;
126      localStorage.setItem("theme", theme);
127
128      function switchTheme() {
129        theme = localStorage.getItem("theme");
130        if (theme === "light-theme") {
131          theme = "dark-theme";
132          document.getElementById("themeSwitcher").checked = true;
133        } else {
134          theme = "light-theme";
135          document.getElementById("themeSwitcher").checked = false;
136        }
137        document.body.className = theme;
138        localStorage.setItem("theme", theme);
139
140        console.log(theme);
141      }
142    </script>
143    <script>
144    function tagLinks(tagName) {
145      var tags = document.getElementsByTagName(tagName);
146      for (var i=0, hElem; hElem =  tags[i]; i++) {
147        if (hElem.parentNode.className=="row postThumb") {
148          continue;
149        }
150        hElem.id = hElem.innerHTML.toLowerCase().replace(" ", "-");
151        hElem.innerHTML = "<a style='color:black!important;' href='#"+hElem.id+"'>"+hElem.innerHTML+"</a>";
152      }
153    }
154    tagLinks("h2");
155    tagLinks("h3");
156    tagLinks("h4");
157    tagLinks("h5");
158    </script>
159    <script>
160function generateTOC(tocContainerId = "toc") {
161    const tocContainer = document.getElementById(tocContainerId);
162    if (!tocContainer) return;
163
164    const headings = document.querySelectorAll("h2, h3, h4, h5, h6");
165    if (!headings.length) return;
166
167    // Generate IDs if missing
168    headings.forEach((heading, index) => {
169        if (!heading.id) {
170            heading.id =
171                heading.textContent
172                    .trim()
173                    .toLowerCase()
174                    .replace(/[^\w\s-]/g, "")
175                    .replace(/\s+/g, "-") +
176                "-" +
177                index;
178        }
179    });
180
181    const toc = document.createElement("ul");
182    let currentLevel = 1;
183    let currentList = toc;
184    const stack = [toc];
185
186    headings.forEach((heading) => {
187        const level = parseInt(heading.tagName.substring(1), 10);
188
189        const li = document.createElement("li");
190        const a = document.createElement("a");
191
192        a.href = "#" + heading.id;
193        a.textContent = heading.textContent;
194
195        li.appendChild(a);
196
197        if (level > currentLevel) {
198            for (let i = currentLevel; i < level; i++) {
199                const nestedList = document.createElement("ul");
200
201                const lastLi =
202                    currentList.lastElementChild ||
203                    currentList.appendChild(document.createElement("ul"));
204
205                lastLi.appendChild(nestedList);
206
207                stack.push(nestedList);
208                currentList = nestedList;
209            }
210        } else if (level < currentLevel) {
211            for (let i = currentLevel; i > level; i--) {
212                stack.pop();
213            }
214            currentList = stack[stack.length - 1];
215        }
216
217        currentList.appendChild(li);
218        currentLevel = level;
219    });
220
221    tocContainer.innerHTML = "";
222    tocContainer.appendChild(toc);
223}
224
225document.addEventListener("DOMContentLoaded", () => {
226    generateTOC();
227});
228    </script>
229    <script src="js/mermaid.min.js"></script>
230
231  </body>
232</html>