Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

base_2020.html 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!DOCTYPE html><!-- This is a valid HTML5 document. -->
  2. <!-- Screen readers, SEO, extensions and so on. -->
  3. <html lang="{% block lang %}fr{% endblock lang %}">
  4. <!-- Has to be within the first 1024 bytes, hence before the `title` element
  5. See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
  6. <meta charset="utf-8">
  7. <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
  8. <!-- The viewport meta is quite crowded and we are responsible for that.
  9. See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <!-- Required to make a valid HTML5 document. -->
  12. <title>
  13. {% block title %}{% endblock %}
  14. — David Larlet</title>
  15. <meta name="description" content="{% block description %}{% endblock %}">
  16. <!-- That good ol' feed, subscribe :). -->
  17. <link rel="alternate"
  18. type="application/atom+xml"
  19. title="Feed"
  20. href="/david/log/">
  21. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  22. <link rel="apple-touch-icon"
  23. sizes="180x180"
  24. href="/static/david/icons2/apple-touch-icon.png">
  25. <link rel="icon"
  26. type="image/png"
  27. sizes="32x32"
  28. href="/static/david/icons2/favicon-32x32.png">
  29. <link rel="icon"
  30. type="image/png"
  31. sizes="16x16"
  32. href="/static/david/icons2/favicon-16x16.png">
  33. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  34. <link rel="mask-icon"
  35. href="/static/david/icons2/safari-pinned-tab.svg"
  36. color="#07486c">
  37. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  38. <meta name="msapplication-TileColor" content="#f7f7f7">
  39. <meta name="msapplication-config"
  40. content="/static/david/icons2/browserconfig.xml">
  41. <meta name="theme-color"
  42. content="#f7f7f7"
  43. media="(prefers-color-scheme: light)">
  44. <meta name="theme-color"
  45. content="#272727"
  46. media="(prefers-color-scheme: dark)">
  47. <!-- Documented, feel free to shoot an email. -->
  48. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  49. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  50. <link rel="preload"
  51. href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2"
  52. as="font"
  53. type="font/woff2"
  54. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  55. crossorigin>
  56. <link rel="preload"
  57. href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2"
  58. as="font"
  59. type="font/woff2"
  60. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  61. crossorigin>
  62. <link rel="preload"
  63. href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2"
  64. as="font"
  65. type="font/woff2"
  66. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  67. crossorigin>
  68. <link rel="preload"
  69. href="/static/david/css/fonts/triplicate_t3_regular.woff2"
  70. as="font"
  71. type="font/woff2"
  72. media="(prefers-color-scheme: dark)"
  73. crossorigin>
  74. <link rel="preload"
  75. href="/static/david/css/fonts/triplicate_t3_bold.woff2"
  76. as="font"
  77. type="font/woff2"
  78. media="(prefers-color-scheme: dark)"
  79. crossorigin>
  80. <link rel="preload"
  81. href="/static/david/css/fonts/triplicate_t3_italic.woff2"
  82. as="font"
  83. type="font/woff2"
  84. media="(prefers-color-scheme: dark)"
  85. crossorigin>
  86. <script>
  87. function toggleTheme(themeName) {
  88. document.documentElement.classList.toggle(
  89. 'forced-dark',
  90. themeName === 'dark'
  91. )
  92. document.documentElement.classList.toggle(
  93. 'forced-light',
  94. themeName === 'light'
  95. )
  96. }
  97. const selectedTheme = localStorage.getItem('theme')
  98. if (selectedTheme !== 'undefined') {
  99. toggleTheme(selectedTheme)
  100. }
  101. </script>
  102. {% block extra_head %}{% endblock %}
  103. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick"
  104. data-instant-intensity="viewport-all">
  105. {% block content %}
  106. {% endblock content %}
  107. <hr>
  108. <footer>
  109. <p>
  110. <nobr>
  111. <a href="/david/" title="Aller à l’accueil">
  112. <svg class="icon icon-home">
  113. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"></use>
  114. </svg>
  115. Accueil</a>
  116. </nobr>
  117. <nobr>
  118. <a href="/david/log/" title="Accès au flux RSS">
  119. <svg class="icon icon-rss2">
  120. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-rss2"></use>
  121. </svg>
  122. Suivre</a>
  123. </nobr>
  124. <nobr>
  125. <a href="http://larlet.com"
  126. title="Go to my English profile"
  127. data-instant>
  128. <svg class="icon icon-user-tie">
  129. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-user-tie"></use>
  130. </svg>
  131. Pro</a>
  132. </nobr>
  133. <nobr>
  134. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">
  135. <svg class="icon icon-mail">
  136. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-mail"></use>
  137. </svg>
  138. Email</a>
  139. </nobr>
  140. <nobr>
  141. <abbr class="nowrap"
  142. title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340">
  143. <svg class="icon icon-hammer2">
  144. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-hammer2"></use>
  145. </svg>
  146. Légal</abbr>
  147. </nobr>
  148. </p>
  149. <template id="theme-selector">
  150. <form>
  151. <fieldset>
  152. <legend>
  153. <svg class="icon icon-brightness-contrast">
  154. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-brightness-contrast"></use>
  155. </svg>
  156. Thème
  157. </legend>
  158. <label>
  159. <input type="radio" value="auto" name="chosen-color-scheme" checked>
  160. Auto
  161. </label>
  162. <label>
  163. <input type="radio" value="dark" name="chosen-color-scheme">
  164. Foncé
  165. </label>
  166. <label>
  167. <input type="radio" value="light" name="chosen-color-scheme">
  168. Clair
  169. </label>
  170. </fieldset>
  171. </form>
  172. </template>
  173. </footer>
  174. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  175. <script>
  176. function loadThemeForm(templateName) {
  177. const themeSelectorTemplate = document.querySelector(templateName)
  178. const form = themeSelectorTemplate.content.firstElementChild
  179. themeSelectorTemplate.replaceWith(form)
  180. form.addEventListener('change', (e) => {
  181. const chosenColorScheme = e.target.value
  182. localStorage.setItem('theme', chosenColorScheme)
  183. toggleTheme(chosenColorScheme)
  184. })
  185. const selectedTheme = localStorage.getItem('theme')
  186. if (selectedTheme && selectedTheme !== 'undefined') {
  187. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  188. }
  189. }
  190. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  191. window.addEventListener('load', () => {
  192. let hasDarkRules = false
  193. for (const styleSheet of Array.from(document.styleSheets)) {
  194. let mediaRules = []
  195. for (const cssRule of styleSheet.cssRules) {
  196. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  197. continue
  198. }
  199. // WARNING: Safari does not have/supports `conditionText`.
  200. if (cssRule.conditionText) {
  201. if (cssRule.conditionText !== prefersColorSchemeDark) {
  202. continue
  203. }
  204. } else {
  205. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  206. continue
  207. }
  208. }
  209. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  210. }
  211. // WARNING: do not try to insert a Rule to a styleSheet you are
  212. // currently iterating on, otherwise the browser will be stuck
  213. // in a infinite loop…
  214. for (const mediaRule of mediaRules) {
  215. styleSheet.insertRule(mediaRule.cssText)
  216. hasDarkRules = true
  217. }
  218. }
  219. if (hasDarkRules) {
  220. loadThemeForm('#theme-selector')
  221. }
  222. })
  223. </script>
  224. {% block extra_body %}{% endblock %}
  225. </body>
  226. </html>