Commit 475478dc authored by Janne Koschinski's avatar Janne Koschinski

Improve branding

Signed-off-by: Janne Koschinski's avatarJanne Koschinski <janne@kuschku.de>
parent 737cfc92
......@@ -44,7 +44,12 @@ const scheduleSave = () => {
const fakeTitleListener = (event) => {
requestAnimationFrame(() => {
document.title = event.target.innerText + " | i.k8r";
const title = event.target.innerText;
if (title.trim() !== "") {
document.title = title + " | ik8r";
} else {
document.title = "Image Detail | ik8r";
}
actualTitle.value = fakeTitle.innerText;
});
hasChanged = true;
......
{{define "navigation"}}
<nav>
<ul>
<li class="title"><a href="/">i.k8r</a></li>
<li class="title"><a href="/">ik8r</a></li>
{{if .HasRole "imghost:user" }}
<li><a href="/upload">Upload</a></li>
{{end}}
......
{{define "title"}}{{.Image.Title}} | i.k8r{{end}}
{{define "title"}}{{.Image.Title}} | ik8r{{end}}
{{define "content"}}
<div class="page image detail">
<div class="detail">
......
{{define "title"}}My Images | i.k8r{{end}}
{{define "title"}}My Images | ik8r{{end}}
{{define "content"}}
<div class="page image list">
{{range .Images}}
......
{{define "title"}}i.k8r{{end}}
{{define "title"}}ik8r{{end}}
{{define "content"}}{{end}}
\ No newline at end of file
{{define "title"}}Upload | i.k8r{{end}}
{{define "title"}}Upload | ik8r{{end}}
{{define "content"}}
<div class="page upload">
<div class="container centered">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment