Improve tab titles and add favicon
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
+1
-1
@@ -3,7 +3,7 @@ package views
|
|||||||
import "github.com/dominicf2001/comfychan/web/views/shared"
|
import "github.com/dominicf2001/comfychan/web/views/shared"
|
||||||
|
|
||||||
templ NotFound() {
|
templ NotFound() {
|
||||||
@shared.Layout() {
|
@shared.Layout("404 - Comfychan") {
|
||||||
<div class="container not-found-container">
|
<div class="container not-found-container">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h2>404 not found.</h2>
|
<h2>404 not found.</h2>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package admin
|
|||||||
import "github.com/dominicf2001/comfychan/web/views/shared"
|
import "github.com/dominicf2001/comfychan/web/views/shared"
|
||||||
|
|
||||||
templ AdminLogin() {
|
templ AdminLogin() {
|
||||||
@shared.Layout() {
|
@shared.Layout("Authorize - Comfychan") {
|
||||||
<div class="admin-login-container">
|
<div class="admin-login-container">
|
||||||
<div style="display: none" id="adminLoginWarning" class="warning"></div>
|
<div style="display: none" id="adminLoginWarning" class="warning"></div>
|
||||||
<form
|
<form
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ templ BoardHeader(board database.Board) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
templ Board(board database.Board, isAdmin bool) {
|
templ Board(board database.Board, isAdmin bool) {
|
||||||
@shared.Layout() {
|
@shared.Layout(fmt.Sprintf("/%s/ - %s", board.Slug, board.Name)) {
|
||||||
@BoardHeader(board)
|
@BoardHeader(board)
|
||||||
<div class="new-post-container">
|
<div class="new-post-container">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package views
|
|||||||
import "github.com/dominicf2001/comfychan/web/views/shared"
|
import "github.com/dominicf2001/comfychan/web/views/shared"
|
||||||
|
|
||||||
templ Index() {
|
templ Index() {
|
||||||
@shared.Layout() {
|
@shared.Layout("Comfychan") {
|
||||||
<section class="container">
|
<section class="container">
|
||||||
<img id="clavis" src="/static/media/clavis.png"/>
|
<img id="clavis" src="/static/media/clavis.png"/>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
package shared
|
package shared
|
||||||
|
|
||||||
templ Layout() {
|
templ Layout(title string) {
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
||||||
<title>Comfychan</title>
|
<title>{ title }</title>
|
||||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||||
<script src="https://unpkg.com/hyperscript.org@0.9.14"></script>
|
<script src="https://unpkg.com/hyperscript.org@0.9.14"></script>
|
||||||
<script src="/static/index.js"></script>
|
<script src="/static/index.js"></script>
|
||||||
<link rel="stylesheet" href="/static/reset.css"/>
|
<link rel="stylesheet" href="/static/reset.css"/>
|
||||||
<link rel="stylesheet" href="/static/index.css"/>
|
<link rel="stylesheet" href="/static/index.css"/>
|
||||||
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="boardList">
|
<div id="boardList">
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ templ ThreadActionBar(thread database.Thread, pos string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
templ Thread(board database.Board, thread database.Thread, posts []database.Post, threadContext ThreadContext) {
|
templ Thread(board database.Board, thread database.Thread, posts []database.Post, threadContext ThreadContext) {
|
||||||
@shared.Layout() {
|
@shared.Layout(fmt.Sprintf("/%s/ - %s", board.Slug, thread.Subject+" "+posts[0].Body)) {
|
||||||
<script src="/static/thread.js" defer></script>
|
<script src="/static/thread.js" defer></script>
|
||||||
@BoardHeader(board)
|
@BoardHeader(board)
|
||||||
<div class="new-post-container">
|
<div class="new-post-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user