aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html26
-rw-r--r--templates/category_index.html2
-rw-r--r--templates/head.html5
-rw-r--r--templates/index.html2
-rw-r--r--templates/repo_index.html2
-rw-r--r--templates/repo_tree_dir.html2
-rw-r--r--templates/repo_tree_file.html2
7 files changed, 10 insertions, 31 deletions
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index 67bc7b6..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- define "base" -}}
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="/static/style.css" />
- <title>{{ block "title" . }}Lindenii Forge{{ end }}</title>
- </head>
- <body class="{{ block "body-class" . }}{{ end }}">
- <header>
- <a id="site-title" href="/">
- {{ block "forge-title" . }}
- Lindenii Forge
- {{ end }}
- </a>
- <span id="header-userinfo" href="/">
- </span>
- </header>
- <main>
- {{ block "main" . }}
- {{ end }}
- </main>
- </body>
-</html>
-{{- end -}}
diff --git a/templates/category_index.html b/templates/category_index.html
index cd5e95c..6ee729e 100644
--- a/templates/category_index.html
+++ b/templates/category_index.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="/static/style.css" />
+ {{ template "head_common" . }}
<title>{{ .category_name }}</title>
</head>
<body class="category-index">
diff --git a/templates/head.html b/templates/head.html
new file mode 100644
index 0000000..b2cd487
--- /dev/null
+++ b/templates/head.html
@@ -0,0 +1,5 @@
+{{- define "head_common" -}}
+<meta charset="utf-8" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<link rel="stylesheet" href="/static/style.css" />
+{{- end -}}
diff --git a/templates/index.html b/templates/index.html
index be02d7c..cbf7012 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="/static/style.css" />
+ {{ template "head_common" . }}
<title>Forge</title>
</head>
<body class="index">
diff --git a/templates/repo_index.html b/templates/repo_index.html
index aa708c4..fc2ac51 100644
--- a/templates/repo_index.html
+++ b/templates/repo_index.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="/static/style.css" />
+ {{ template "head_common" . }}
<title>{{ .category_name }}/repos/{{ .repo_name }}</title>
</head>
<body class="repo-index">
diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html
index ffdb64d..609d17e 100644
--- a/templates/repo_tree_dir.html
+++ b/templates/repo_tree_dir.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="/static/style.css" />
+ {{ template "head_common" . }}
<title>{{ .category_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title>
</head>
<body class="repo-tree-dir">
diff --git a/templates/repo_tree_file.html b/templates/repo_tree_file.html
index 9874cde..cd51108 100644
--- a/templates/repo_tree_file.html
+++ b/templates/repo_tree_file.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="stylesheet" href="/static/style.css" />
+ {{ template "head_common" . }}
<link rel="stylesheet" href="/static/chroma.css" />
<title>{{ .category_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title>
</head>