You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
5.9 KiB

2 years ago
2 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="description" content="[blogo-summary]" />
  5. <meta charset="utf-8">
  6. <title>[blogo-title]</title>
  7. <meta name="title" content="[blogo-title]">
  8. <meta name="description" content="[blogo-summary]">
  9. <meta property="og:title" content="[blogo-title]" />
  10. <meta property="og:description" content="[blogo-summary]" />
  11. <meta property="og:url" content="[blogo-link]" />
  12. <meta property="og:type" content="article" />
  13. <meta property="og:image" content="[blogo-img]" />
  14. <meta name="twitter:title" content="[blogo-title]">
  15. <meta name="twitter:description" content="[blogo-summary]">
  16. <meta name="twitter:image" content="[blogo-img]">
  17. <meta name="twitter:card" content="summary_large_image">
  18. <meta name="author" content="arnaucube">
  19. <link rel="icon" type="image/png" href="img/logoArnauCubeFavicon.png">
  20. <meta name="viewport" content="width=device-width, initial-scale=1">
  21. <link href="css/bootstrap.min.css" rel="stylesheet">
  22. <link rel="stylesheet" href="css/style.css">
  23. <!-- highlightjs -->
  24. <!-- <link rel="stylesheet" href="js/highlightjs/atom-one-dark.css"> -->
  25. <link rel="stylesheet" href="js/highlightjs/atom-one-light.css">
  26. <!-- <link rel="stylesheet" href="js/highlightjs/gruvbox-dark.css"> -->
  27. <script src="js/highlightjs/highlight.pack.js"></script>
  28. <!-- katex -->
  29. <link rel="stylesheet" href="js/katex/katex.min.css">
  30. </head>
  31. <body>
  32. <!-- o_gradient_background" -->
  33. <nav id="mainNav" class="navbar navbar-default navbar-fixed-top"
  34. style="height:50px;font-size:130%;">
  35. <div class="container">
  36. <div style="float:left;">
  37. <a href="/blog" style="color:#000;display:inline-block;">Blog index</a>
  38. <span style="margin-right:20px; margin-left:20px;">|</span>
  39. <a href="/blog/notes.html" style="font-size:90%;color:#000;display:inline-block;">other-notes</a>
  40. </div>
  41. <div style="float:right;">
  42. <a href="/" style="color:#000;display:inline-block;">arnaucube.com</a>
  43. <div class="onoffswitch" style="margin:10px;display:inline-block;" title="change theme">
  44. <input onclick="switchTheme()" type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
  45. id="themeSwitcher">
  46. <label class="onoffswitch-label" for="themeSwitcher"></label>
  47. </div>
  48. </div>
  49. </div>
  50. <img style="height:5px; width:100%; margin-top:8px;" src="img/gradient-line.jpg" />
  51. </nav>
  52. <div class="container" style="margin-top:40px;max-width:800px;">
  53. [blogo-content]
  54. </div>
  55. <footer style="text-align:center; margin-top:100px;margin-bottom:50px;">
  56. <div class="container">
  57. <br>
  58. <a href="/blog">Go to main</a>
  59. <br><br>
  60. <div class="row">
  61. <ul class="list-inline">
  62. <li><a href="https://twitter.com/arnaucube"
  63. style="color:gray;text-decoration:none;"
  64. target="_blank">twitter.com/arnaucube</a>
  65. </li>
  66. <li><a href="https://github.com/arnaucube"
  67. style="color:gray;text-decoration:none;"
  68. target="_blank">github.com/arnaucube</a>
  69. </li>
  70. </ul>
  71. </div>
  72. <div class="row" style="display:inline-block;">
  73. Blog made with <a href="http://github.com/arnaucube/blogo/"
  74. target="_blank" style="color: gray;text-decoration:none;">Blogo</a>
  75. </div>
  76. </div>
  77. </footer>
  78. <script>
  79. </script>
  80. <script src="js/external-links.js"></script>
  81. <script>hljs.initHighlightingOnLoad();</script>
  82. <script defer src="js/katex/katex.min.js"></script>
  83. <script defer src="js/katex/auto-render.min.js"></script>
  84. <script>
  85. document.addEventListener("DOMContentLoaded", function() {
  86. renderMathInElement(document.body, {
  87. displayMode: false,
  88. // customised options
  89. // • auto-render specific keys, e.g.:
  90. delimiters: [
  91. {left: '$$', right: '$$', display: true},
  92. {left: '$', right: '$', display: false},
  93. {left: "\\[", right: "\\]", display: true},
  94. {left: "\\(", right: "\\)", display: false},
  95. {left: "\\begin{equation}", right: "\\end{equation}", display: true}
  96. ],
  97. // • rendering keys, e.g.:
  98. throwOnError : true
  99. });
  100. });
  101. ///
  102. let theme = localStorage.getItem("theme");
  103. if ((theme === "light-theme")||(theme==null)) {
  104. theme = "light-theme";
  105. document.getElementById("themeSwitcher").checked = false;
  106. } else if (theme === "dark-theme") {
  107. theme = "dark-theme";
  108. document.getElementById("themeSwitcher").checked = true;
  109. }
  110. document.body.className = theme;
  111. localStorage.setItem("theme", theme);
  112. function switchTheme() {
  113. theme = localStorage.getItem("theme");
  114. if (theme === "light-theme") {
  115. theme = "dark-theme";
  116. document.getElementById("themeSwitcher").checked = true;
  117. } else {
  118. theme = "light-theme";
  119. document.getElementById("themeSwitcher").checked = false;
  120. }
  121. document.body.className = theme;
  122. localStorage.setItem("theme", theme);
  123. console.log(theme);
  124. }
  125. </script>
  126. <script>
  127. function tagLinks(tagName) {
  128. var tags = document.getElementsByTagName(tagName);
  129. for (var i=0, hElem; hElem = tags[i]; i++) {
  130. if (hElem.parentNode.className=="row postThumb") {
  131. continue;
  132. }
  133. hElem.id = hElem.innerHTML.toLowerCase().replace(" ", "-");
  134. hElem.innerHTML = "<a style='text-decoration:none;color:black;' href='#"+hElem.id+"'>"+hElem.innerHTML+"</a>";
  135. }
  136. }
  137. tagLinks("h2");
  138. tagLinks("h3");
  139. tagLinks("h4");
  140. tagLinks("h5");
  141. </script>
  142. <script src="js/mermaid.min.js"></script>
  143. </body>
  144. </html>