diff options
author | cel 🌸 <cel@blos.sm> | 2024-02-20 00:40:51 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-02-20 00:40:51 +0000 |
commit | 29165c4c9356fda25ed2df9e06e285ce8010e893 (patch) | |
tree | 018102090d6abdf46cc575a8672aae5d42ef3f36 /templates | |
parent | f4ff8fe6eb20ab5b557d7beac095959890e126e8 (diff) | |
download | legit-master.tar.gz legit-master.tar.bz2 legit-master.zip |
add bunny.garden assetsmaster
Diffstat (limited to '')
-rw-r--r-- | templates/head.html | 63 | ||||
-rw-r--r-- | templates/index.html | 11 |
2 files changed, 40 insertions, 34 deletions
diff --git a/templates/head.html b/templates/head.html index 08c572e..a4a02d2 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,33 +1,34 @@ {{ define "head" }} - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="/static/style.css" type="text/css"> - <link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css"> - <link rel="icon" type="image/png" size="32x32" href="/static/legit.png"> - {{ if .parent }} - <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/</title> - {{ else if .path }} - <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }}</title> - {{ else if .files }} - <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title> - {{ else if .commit }} - <title>{{ .meta.Title }} — {{ .name }}: {{ .commit.This }}</title> - {{ else if .branches }} - <title>{{ .meta.Title }} — {{ .name }}: refs</title> - {{ else if .commits }} - {{ if .log }} - <title>{{ .meta.Title }} — {{ .name }}: log</title> - {{ else }} - <title>{{ .meta.Title }} — {{ .name }}</title> - {{ end }} - {{ else }} - <title>{{ .meta.Title }}</title> - {{ end }} - {{ if and .servername .gomod }} - <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}"> - {{ end }} - <!-- other meta tags here --> - </head> -{{ end }} +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/static/style.css" type="text/css"> + <link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css"> + <link rel="icon" type="image/png" size="32x32" href="/static/bunny.png"> + {{ if .parent }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/</title> + + {{ else if .path }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }}</title> + {{ else if .files }} + <title>{{ .meta.Title }} — {{ .name }} ({{ .ref }})</title> + {{ else if .commit }} + <title>{{ .meta.Title }} — {{ .name }}: {{ .commit.This }}</title> + {{ else if .branches }} + <title>{{ .meta.Title }} — {{ .name }}: refs</title> + {{ else if .commits }} + {{ if .log }} + <title>{{ .meta.Title }} — {{ .name }}: log</title> + {{ else }} + <title>{{ .meta.Title }} — {{ .name }}</title> + {{ end }} + {{ else }} + <title>{{ .meta.Title }}</title> + {{ end }} + {{ if and .servername .gomod }} + <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}"> + {{ end }} + <!-- other meta tags here --> +</head> +{{ end }}
\ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a820dec..8347468 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,8 +3,13 @@ {{ template "head" . }} <header> - <h1>{{ .meta.Title }}</h1> - <h2>{{ .meta.Description }}</h2> + <div> + <img src="/static/bunny.png"> + </div> + <div> + <h1>{{ .meta.Title }}</h1> + <h2>{{ .meta.Description }}</h2> + </div> </header> <body> @@ -23,4 +28,4 @@ </body> </html> -{{ end }}
\ No newline at end of file +{{ end }} |