load external css - href - simple bookmark manager in go/cgi
 (HTM) git clone https://git.drkhsh.at/href.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 5dd2fac2679bda17fd59b8403345f99cd790ad26
 (DIR) parent 948461c3d1103655ffe2da69deb42a1d0fb54b22
 (HTM) Author: drkhsh <me@drkhsh.at>
       Date:   Wed, 13 Aug 2025 21:34:57 +0200
       
       load external css
       
       Diffstat:
         M main.go                             |      10 ++++++++--
       
       1 file changed, 8 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/main.go b/main.go
       @@ -277,7 +277,10 @@ var tmpl = template.Must(template.New("list").Funcs(template.FuncMap{
                "formatDate": formatDate,
        }).Parse(`
        <!DOCTYPE html>
       -<html><head><title>url</title></head><body>
       +<html><head>
       +<title>url</title>
       +<link rel="stylesheet" type="text/css" href="/style.css">
       +</head><body>
        <h1>url</h1>
        
        {{range .Tags}}
       @@ -322,7 +325,10 @@ var tmplForm = template.Must(template.New("form").Funcs(template.FuncMap{
                "formatDate": formatDate,
        }).Parse(`
        <!DOCTYPE html>
       -<html><head><title>url/{{if .}}edit{{else}}add{{end}}</title></head><body>
       +<html><head>
       +<title>url/{{if .}}edit{{else}}add{{end}}</title>
       +<link rel="stylesheet" type="text/css" href="/style.css">
       +</head><body>
        <h1>url/{{if .}}edit{{else}}add{{end}}</h1>
        <form method="POST" action="">
        {{if .}}<input type="hidden" name="index" value="{{.Index}}">{{end}}