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 <a href="/blog/rss.xml" target="_blank"
53 type="application/rss+xml" title="subscribe via RSS" aria-label="subscribe via RSS">
54 <img width="12px;" src="img/rss.png" />
55 </a>
56 <div class="onoffswitch" style="margin-left:0px;display:inline-block;" title="change theme">
57 <input onclick="switchTheme()" type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
58 id="themeSwitcher">
59 <label class="onoffswitch-label" for="themeSwitcher"></label>
60 </div>
61 </div>
62 </div>
63 <!-- <img style="height:5px; width:100%; margin-top:8px;" src="img/gradient-line.jpg" /> -->
64 </nav>
65
66
67
68 <div class="container" style="margin-top:0px;max-width:800px;">
69 [blogo-content]
70 </div>
71
72 <footer style="text-align:center; margin-top:100px;margin-bottom:50px;">
73 <div class="container">
74 <br>
75 <a href="/blog">Go to main</a>
76 <br><br>
77 <div class="row">
78 <ul class="list-inline">
79 <li><a href="https://twitter.com/arnaucube"
80 style="color:gray;text-decoration:none;"
81 target="_blank">twitter.com/arnaucube</a>
82 </li>
83 <li><a href="https://github.com/arnaucube"
84 style="color:gray;text-decoration:none;"
85 target="_blank">github.com/arnaucube</a>
86 </li>
87 </ul>
88 </div>
89 <div class="row" style="display:inline-block;">
90 Blog made with <a href="http://github.com/arnaucube/blogo/"
91 target="_blank" style="color: gray;text-decoration:none;">Blogo</a>
92 </div>
93 </div>
94 </footer>
95
96 <script>
97 </script>
98 <script src="js/external-links.js"></script>
99 <script>hljs.initHighlightingOnLoad();</script>
100 <script defer src="js/katex/katex.min.js"></script>
101 <script defer src="js/katex/auto-render.min.js"></script>
102 <script>
103 document.addEventListener("DOMContentLoaded", function() {
104 renderMathInElement(document.body, {
105 displayMode: false,
106 // customised options
107 // • auto-render specific keys, e.g.:
108 delimiters: [
109 {left: '$$', right: '$$', display: true},
110 {left: '$', right: '$', display: false},
111 {left: "\\[", right: "\\]", display: true},
112 {left: "\\(", right: "\\)", display: false},
113 {left: "\\begin{equation}", right: "\\end{equation}", display: true}
114 ],
115 // • rendering keys, e.g.:
116 throwOnError : true
117 });
118 });
119
120 ///
121 let theme = localStorage.getItem("theme");
122 if ((theme === "light-theme")||(theme==null)) {
123 theme = "light-theme";
124 document.getElementById("themeSwitcher").checked = false;
125 } else if (theme === "dark-theme") {
126 theme = "dark-theme";
127 document.getElementById("themeSwitcher").checked = true;
128 }
129 document.body.className = theme;
130 localStorage.setItem("theme", theme);
131
132 function switchTheme() {
133 theme = localStorage.getItem("theme");
134 if (theme === "light-theme") {
135 theme = "dark-theme";
136 document.getElementById("themeSwitcher").checked = true;
137 } else {
138 theme = "light-theme";
139 document.getElementById("themeSwitcher").checked = false;
140 }
141 document.body.className = theme;
142 localStorage.setItem("theme", theme);
143
144 console.log(theme);
145 }
146 </script>
147 <script>
148 function tagLinks(tagName) {
149 var tags = document.getElementsByTagName(tagName);
150 for (var i=0, hElem; hElem = tags[i]; i++) {
151 if (hElem.parentNode.className=="row postThumb") {
152 continue;
153 }
154 hElem.id = hElem.innerHTML.toLowerCase().replace(" ", "-");
155 hElem.innerHTML = "<a style='color:black!important;' href='#"+hElem.id+"'>"+hElem.innerHTML+"</a>";
156 }
157 }
158 tagLinks("h2");
159 tagLinks("h3");
160 tagLinks("h4");
161 tagLinks("h5");
162 </script>
163 <script>
164function generateTOC(tocContainerId = "toc") {
165 const tocContainer = document.getElementById(tocContainerId);
166 if (!tocContainer) return;
167
168 const headings = document.querySelectorAll("h2, h3, h4, h5, h6");
169 if (!headings.length) return;
170
171 // Generate IDs if missing
172 headings.forEach((heading, index) => {
173 if (!heading.id) {
174 heading.id =
175 heading.textContent
176 .trim()
177 .toLowerCase()
178 .replace(/[^\w\s-]/g, "")
179 .replace(/\s+/g, "-") +
180 "-" +
181 index;
182 }
183 });
184
185 const toc = document.createElement("ul");
186 let currentLevel = 1;
187 let currentList = toc;
188 const stack = [toc];
189
190 headings.forEach((heading) => {
191 const level = parseInt(heading.tagName.substring(1), 10);
192
193 const li = document.createElement("li");
194 const a = document.createElement("a");
195
196 a.href = "#" + heading.id;
197 a.textContent = heading.textContent;
198
199 li.appendChild(a);
200
201 if (level > currentLevel) {
202 for (let i = currentLevel; i < level; i++) {
203 const nestedList = document.createElement("ul");
204
205 const lastLi =
206 currentList.lastElementChild ||
207 currentList.appendChild(document.createElement("ul"));
208
209 lastLi.appendChild(nestedList);
210
211 stack.push(nestedList);
212 currentList = nestedList;
213 }
214 } else if (level < currentLevel) {
215 for (let i = currentLevel; i > level; i--) {
216 stack.pop();
217 }
218 currentList = stack[stack.length - 1];
219 }
220
221 currentList.appendChild(li);
222 currentLevel = level;
223 });
224
225 tocContainer.innerHTML = "";
226 tocContainer.appendChild(toc);
227}
228
229document.addEventListener("DOMContentLoaded", () => {
230 generateTOC();
231});
232 </script>
233 <script src="js/mermaid.min.js"></script>
234
235 </body>
236</html>