Improve branding

Signed-off-by: Janne Koschinski's avatarJanne Koschinski <janne@kuschku.de>
parent 737cfc92
...@@ -44,7 +44,12 @@ const scheduleSave = () => { ...@@ -44,7 +44,12 @@ const scheduleSave = () => {
const fakeTitleListener = (event) => { const fakeTitleListener = (event) => {
requestAnimationFrame(() => { 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; actualTitle.value = fakeTitle.innerText;
}); });
hasChanged = true; hasChanged = true;
......
{{define "navigation"}} {{define "navigation"}}
<nav> <nav>
<ul> <ul>
<li class="title"><a href="/">i.k8r</a></li> <li class="title"><a href="/">ik8r</a></li>
{{if .HasRole "imghost:user" }} {{if .HasRole "imghost:user" }}
<li><a href="/upload">Upload</a></li> <li><a href="/upload">Upload</a></li>
{{end}} {{end}}
......
{{define "title"}}{{.Image.Title}} | i.k8r{{end}} {{define "title"}}{{.Image.Title}} | ik8r{{end}}
{{define "content"}} {{define "content"}}
<div class="page image detail"> <div class="page image detail">
<div class="detail"> <div class="detail">
......
{{define "title"}}My Images | i.k8r{{end}} {{define "title"}}My Images | ik8r{{end}}
{{define "content"}} {{define "content"}}
<div class="page image list"> <div class="page image list">
{{range .Images}} {{range .Images}}
......
{{define "title"}}i.k8r{{end}} {{define "title"}}ik8r{{end}}
{{define "content"}}{{end}} {{define "content"}}{{end}}
\ No newline at end of file
{{define "title"}}Upload | i.k8r{{end}} {{define "title"}}Upload | ik8r{{end}}
{{define "content"}} {{define "content"}}
<div class="page upload"> <div class="page upload">
<div class="container centered"> <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