default.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html lang="{{ page.lang | default: 'en' }}">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ page.title | default: site.title }} · FreshRSS</title>
  6. <meta name="description" content="{{ page.description | default: site.description | default: site.github.project_tagline }}">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self'">
  9. <link rel="stylesheet" href="{{ '/assets/css/docs.css?v=' | append: site.github.build_revision | relative_url }}">
  10. <link rel="stylesheet" href="{{ '/assets/css/highlight.css?v=' | append: site.github.build_revision | relative_url }}">
  11. <link rel="stylesheet" href="{{ '/assets/css/normalize.css?v=' | append: site.github.build_revision | relative_url }}">
  12. <link rel="stylesheet" media="(prefers-color-scheme: dark)" href="{{ '/assets/css/darkmode.css?v=' | append: site.github.build_revision | relative_url}}">
  13. <link rel="icon" href="{{ '/favicon.ico' | relative_url }}">
  14. <script>
  15. var i18n = {
  16. "copy_to_clipboard": "{%t copy_to_clipboard %}"
  17. };
  18. </script>
  19. <script src="{{ '/assets/js/docs.js?v=' | append: site.github.build_revision | relative_url }}"></script>
  20. </head>
  21. <body>
  22. <nav class="mobile-nav">
  23. <a class="toggle-aside" href="#aside" title="{%t toggle_aside %}">
  24. <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
  25. <path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>
  26. </svg>
  27. </a>
  28. {% include lang_dropdown.html location="mobile" %}
  29. </nav>
  30. <a class="close" href="#close"></a>
  31. <aside id="aside">
  32. <a href="https://freshrss.org/">&lt; {%t back_to_freshrss %}</a>
  33. {% include lang_dropdown.html location="aside" %}
  34. <a class="close" href="#close" title="{%t close %}">&times;</a>
  35. <section class="search">
  36. <noscript>
  37. <style>div.js-search { display: none; }</style>
  38. <div class="nojs-search">
  39. <form action="https://duckduckgo.com/" method="get">
  40. <input type="search" name="q" placeholder="{%t search_docs %}">
  41. <input type="hidden" name="sites" value="freshrss.github.io">
  42. <button type="submit">{%t search %}</button>
  43. </form>
  44. </div>
  45. </noscript>
  46. <div class="js-search">
  47. <input type="text" id="search-input" placeholder="{%t search_docs %}">
  48. <ul id="results-container"></ul>
  49. <script src="{{ '/assets/js/simple-jekyll-search.min.js?v=' | append: site.github.build_revision | relative_url }}"></script>
  50. <script>
  51. const search = document.querySelector('#search-input');
  52. function init_search() {
  53. search.removeEventListener('focus', init_search);
  54. SimpleJekyllSearch({
  55. searchInput: search,
  56. resultsContainer: document.querySelector('#results-container'),
  57. json: '{{ "/search." | append: page.lang | append: ".json?v=" | append: site.github.build_revision | relative_url }}',
  58. searchResultTemplate: '<li><a href="{url}">{title}</a></li>'
  59. });
  60. }
  61. search.addEventListener('focus', init_search);
  62. </script>
  63. </div>
  64. </section>
  65. <nav class="docs">
  66. {% include docs_nav.html %}
  67. </nav>
  68. </aside>
  69. <main>
  70. {% include anchor_headings.html html=content anchorBody="#" %}
  71. </main>
  72. </body>
  73. </html>