baseof.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <link rel="canonical" href="{{ .Permalink }}">
  8. <link rel="apple-touch-icon" sizes="57x57" href="{{ "images/apple-touch-icon-57x57.png" | absURL }}">
  9. <link rel="apple-touch-icon" sizes="60x60" href="{{ "images/apple-touch-icon-60x60.png" | absURL }}">
  10. <link rel="apple-touch-icon" sizes="72x72" href="{{ "images/apple-touch-icon-72x72.png" | absURL }}">
  11. <link rel="apple-touch-icon" sizes="76x76" href="{{ "images/apple-touch-icon-76x76.png" | absURL }}">
  12. <link rel="apple-touch-icon" sizes="114x114" href="{{ "images/apple-touch-icon-114x114.png" | absURL }}">
  13. <link rel="apple-touch-icon" sizes="120x120" href="{{ "images/apple-touch-icon-120x120.png" | absURL }}">
  14. <link rel="apple-touch-icon" sizes="144x144" href="{{ "images/apple-touch-icon-144x144.png" | absURL }}">
  15. <link rel="apple-touch-icon" sizes="152x152" href="{{ "images/apple-touch-icon-152x152.png" | absURL }}">
  16. <link rel="apple-touch-icon" sizes="180x180" href="{{ "images/apple-touch-icon-180x180.png" | absURL }}">
  17. <link rel="icon" type="image/png" sizes="192x192" href="{{ "images/android-icon-192x192.png" | absURL }}">
  18. <link rel="icon" type="image/png" sizes="32x32" href="{{ "images/favicon-32x32.png" | absURL }}">
  19. <link rel="icon" type="image/png" sizes="96x96" href="{{ "images/favicon-96x96.png" | absURL }}">
  20. <link rel="icon" type="image/png" sizes="16x16" href="{{ "images/favicon-16x16.png" | absURL }}">
  21. <meta name="msapplication-TileColor" content="#ffffff">
  22. <meta name="msapplication-TileImage" content="{{ "images/ms-icon-144x144.png" | absURL }}">
  23. <meta name="theme-color" content="#ffffff">
  24. <link rel="stylesheet" href="{{ "css/prism.css" | absURL }}" media="none" onload="this.media='all';">
  25. <link rel="stylesheet" type="text/css" href="{{ "css/styles.css" | absURL }}">
  26. <style id="inverter" media="none">
  27. html { filter: invert(100%) }
  28. * { background-color: inherit }
  29. img:not([src*=".svg"]), .colors, iframe, .demo-container { filter: invert(100%) }
  30. </style>
  31. <title>
  32. {{ .Title }} | {{ .Site.Title }}
  33. </title>
  34. {{ if .IsHome }}
  35. <link rel="manifest" href="manifest.json">
  36. {{ end }}
  37. </head>
  38. <body>
  39. <a href="#main">skip to content</a>
  40. {{ partial "svg.html" . }}
  41. <div class="wrapper">
  42. <header class="intro-and-nav" role="banner">
  43. <div>
  44. <div class="intro">
  45. <a class="logo" href="/" aria-label="{{ .Site.Title }} home page">
  46. <img src="{{ "images/logo.svg" | absURL }}" alt="">
  47. </a>
  48. <p class="library-desc">
  49. {{ .Site.Params.Description | markdownify }}
  50. </a>
  51. </p>
  52. </div>
  53. {{ block "nav" . }}
  54. <nav id="patterns-nav" class="patterns" role="navigation">
  55. <h2 class="vh">Main navigation</h2>
  56. <button id="menu-button" aria-expanded="false">
  57. <svg viewBox="0 0 50 50" aria-hidden="true" focusable="false">
  58. <use xlink:href="#menu"></use>
  59. </svg>
  60. Menu
  61. </button>
  62. {{ $current := . }}
  63. <ul id="patterns-list">
  64. {{ range .Site.Menus.nav }}
  65. <li class="pattern">
  66. {{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
  67. {{ $active = or $active (eq .Name $current.Title) }}
  68. {{ $active = or $active (and (eq .Name "Blog") (eq $current.Section "post")) }}
  69. {{ $active = or $active (and (eq .Name "Tags") (eq $current.Section "tags")) }}
  70. <a href="{{ .URL }}" {{ if $active }}aria-current="page"{{ end }}>
  71. <svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
  72. <use xlink:href="#bookmark"></use>
  73. </svg>
  74. <span class="text">{{ .Name }}</span>
  75. </a>
  76. </li>
  77. {{ end }}
  78. </ul>
  79. </nav>
  80. {{ end }}
  81. </div>
  82. </header>
  83. <div class="main-and-footer">
  84. <div>
  85. {{ block "main" . }}
  86. {{ end }}
  87. <footer role="contentinfo">
  88. <div>
  89. <label for="themer">
  90. dark theme: <input type="checkbox" id="themer" class="vh">
  91. <span aria-hidden="true"></span>
  92. </label>
  93. </div>
  94. {{ .Site.Params.footer | markdownify }}
  95. </footer>
  96. </div>
  97. </div>
  98. </div>
  99. <script src="{{ "js/prism.js" | absURL }}"></script>
  100. <script src="{{ "js/dom-scripts.js" | absURL }}"></script>
  101. {{ if .Page.IsHome }}
  102. <script src="{{ "js/service-worker-registration.js" | absURL }}"></script>
  103. {{ end }}
  104. </body>
  105. </html>