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.

150 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. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
  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="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css" integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous">
  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="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.js" integrity="sha384-YNHdsYkH6gMx9y3mRkmcJ2mFUjTd0qNQQvY9VYZgQd7DcN7env35GzlmFaZ23JGp" crossorigin="anonymous"></script>
  74. <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"></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. ],
  85. // • rendering keys, e.g.:
  86. throwOnError : true
  87. });
  88. });
  89. ///
  90. let theme = localStorage.getItem("theme");
  91. if ((theme === "light-theme")||(theme==null)) {
  92. theme = "light-theme";
  93. document.getElementById("themeSwitcher").checked = false;
  94. } else if (theme === "dark-theme") {
  95. theme = "dark-theme";
  96. document.getElementById("themeSwitcher").checked = true;
  97. }
  98. document.body.className = theme;
  99. localStorage.setItem("theme", theme);
  100. function switchTheme() {
  101. theme = localStorage.getItem("theme");
  102. if (theme === "light-theme") {
  103. theme = "dark-theme";
  104. document.getElementById("themeSwitcher").checked = true;
  105. } else {
  106. theme = "light-theme";
  107. document.getElementById("themeSwitcher").checked = false;
  108. }
  109. document.body.className = theme;
  110. localStorage.setItem("theme", theme);
  111. console.log(theme);
  112. }
  113. </script>
  114. <script>
  115. function tagLinks(tagName) {
  116. var tags = document.getElementsByTagName(tagName);
  117. for (var i=0, hElem; hElem = tags[i]; i++) {
  118. if (hElem.parentNode.className=="row postThumb") {
  119. continue;
  120. }
  121. hElem.id = hElem.innerHTML.toLowerCase().replace(" ", "-");
  122. hElem.innerHTML = "<a style='text-decoration:none;color:black;' href='#"+hElem.id+"'>"+hElem.innerHTML+"</a>";
  123. }
  124. }
  125. tagLinks("h2");
  126. tagLinks("h3");
  127. tagLinks("h4");
  128. tagLinks("h5");
  129. </script>
  130. <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
  131. </body>
  132. </html>