clone url: git://git.m455.casa/repo2html
assets/templates/default.html
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <title>git.example.com - {{ repository_name }}</title> |
| 5 | <meta charset="utf-8" /> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale-1.0, user-scalable=yes" /> |
| 7 | <link rel="icon" href="data:," /> |
| 8 | <meta name="description" content="{{ repository_description }}" /> |
| 9 | <style> |
| 10 | body { |
| 11 | font-family: sans-serif; |
| 12 | font-size: 16px; |
| 13 | margin: 0 auto; |
| 14 | max-width: 700px; |
| 15 | line-height: 1.5; |
| 16 | } |
| 17 | pre, code { |
| 18 | font-size: 14px; |
| 19 | background-color: #eeeeee; |
| 20 | border-radius: 5px ; |
| 21 | } |
| 22 | code { padding: 2px 7px } |
| 23 | pre { |
| 24 | overflow: scroll; |
| 25 | padding: 15px 20px; |
| 26 | white-space: pre; |
| 27 | } |
| 28 | pre code { padding: 0 } |
| 29 | a { color: blue } |
| 30 | nav a { margin-right: 10px } |
| 31 | hr { |
| 32 | border: 0; |
| 33 | border-bottom: 1px solid black; |
| 34 | } |
| 35 | th { text-align: left } |
| 36 | td { |
| 37 | padding: 0 1em 0 0; |
| 38 | vertical-align: top; |
| 39 | } |
| 40 | footer { |
| 41 | font-size: small; |
| 42 | text-align: right; |
| 43 | } |
| 44 | img { max-width: 100% } |
| 45 | /* permalinks */ |
| 46 | h1 a[href^="#"]::after, h2 a[href^="#"]::after, h3 a[href^="#"]::after, h4 a[href^="#"]::after, h5 a[href^="#"]::after, h6 a[href^="#"]::after { content: "¶"; opacity: 0; margin-left: .5em; } |
| 47 | h1:hover a[href^="#"]::after, h2:hover a[href^="#"]::after, h3:hover a[href^="#"]::after, h4:hover a[href^="#"]::after, h5:hover a[href^="#"]::after, h6:hover a[href^="#"]::after { opacity: 100; } |
| 48 | h1 a[href^="#"], h2 a[href^="#"], h3 a[href^="#"], h4 a[href^="#"], h5 a[href^="#"], h6 a[href^="#"] { text-decoration: none; } |
| 49 | #file-contents { |
| 50 | white-space: pre; |
| 51 | font-family: monospace; |
| 52 | border-collapse: collapse; |
| 53 | } |
| 54 | #file-contents code { background-color: inherit } |
| 55 | .line-number { text-align: right } |
| 56 | .line:target { background-color: yellow } |
| 57 | @media (prefers-color-scheme: dark) { |
| 58 | body { |
| 59 | color: #dddddd; |
| 60 | background-color: #111111; |
| 61 | } |
| 62 | a { color: #14cccc } |
| 63 | pre, code { background-color: #222222 } |
| 64 | .line:target { background-color: darkgreen } |
| 65 | hr { border-bottom: 1px solid #dddddd } |
| 66 | } |
| 67 | </style> |
| 68 | </head> |
| 69 | <body> |
| 70 | <h1>git.example.com</h1> |
| 71 | <h2>{{ repository_path_parent }} |
| 72 | {% if repository_path_parent %} / {% endif %} |
| 73 | {{ repository_name }}</h2> |
| 74 | <p><strong>clone url</strong>: <code>git://git.example.com/{{ repository_path }}</code></p> |
| 75 | <nav> |
| 76 | {% if readme_file %} |
| 77 | <a href="{{ relative_root }}{{ readme_file }}.html">about</a> |
| 78 | <a href="{{ relative_root }}files.html">files</a> |
| 79 | {% else %} |
| 80 | <a href="{{ relative_root }}files.html">files</a> |
| 81 | {% endif %} |
| 82 | {% if license_file %} |
| 83 | <a href="{{ relative_root }}{{ license_file }}.html">license</a> |
| 84 | {% endif %} |
| 85 | {% if issues_file %} |
| 86 | <a href="{{ relative_root }}{{ issues_file }}.html">issues</a> |
| 87 | {% endif %} |
| 88 | <a href="{{ relative_root }}commits.html">commits</a> |
| 89 | <a href="{{ relative_root }}contributors.html">contributors</a> |
| 90 | </nav> |
| 91 | <hr /> |
| 92 | {% if source_file %} |
| 93 | <p id="file-path">{{ source_file }}</p> |
| 94 | {% endif %} |
| 95 | {{ content|safe }} |
| 96 | <hr /> |
| 97 | <footer> |
| 98 | <p>Generated by |
| 99 | <a href="https://git.m455.casa/repo2html/" |
| 100 | title="the repo2html git repo static renderer by m455 and pho4cexa">repo2html</a> |
| 101 | {{ repo2html_version }} using |
| 102 | <a href="http://wiki.call-cc.org/eggref/5/ersatz" |
| 103 | title="the ersatz Jinja2-like templating library by Ivan Raikov" |
| 104 | >ersatz</a> templates</p> |
| 105 | </footer> |
| 106 | </html> |