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.

152 lines
5.4 KiB

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