浏览代码

Add empty CSS stylesheet

References: https://todo.sr.ht/~sircmpwn/koushin/19
master
Simon Ser 4 年前
父节点
当前提交
b7be271560
找不到此签名对应的密钥 GPG 密钥 ID: FDE7BE0E88F5E48
共有 3 个文件被更改,包括 3 次插入1 次删除
  1. +1
    -0
      public/assets/style.css
  2. +1
    -0
      public/head.html
  3. +1
    -1
      server.go

+ 1
- 0
public/assets/style.css 查看文件

@@ -0,0 +1 @@
/* TODO */

+ 1
- 0
public/head.html 查看文件

@@ -4,6 +4,7 @@
<head>
<meta charset="utf-8">
<title>koushin</title>
<link rel="stylesheet" href="/assets/style.css">
</head>
<body>
{{end}}

+ 1
- 1
server.go 查看文件

@@ -286,7 +286,7 @@ func New(imapURL, smtpURL string) *echo.Echo {
cookie, err := ctx.Cookie(cookieName)
if err == http.ErrNoCookie {
// Require auth for all pages except /login
if ctx.Path() == "/login" {
if ctx.Path() == "/login" || strings.HasPrefix(ctx.Path(), "/assets/") {
return next(ctx)
} else {
return ctx.Redirect(http.StatusFound, "/login")


正在加载...
取消
保存