theme base system
This commit is contained in:
parent
1172e23c16
commit
465e88bf40
7 changed files with 74 additions and 51 deletions
8
template/components/head.html
Normal file
8
template/components/head.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{define "head"}}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="initial-scale=1, viewport-fit=cover, width=device-width, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<title>{{.}} | Goffee</title>
|
||||
<link href="/public/style.css" rel="stylesheet">
|
||||
</head>
|
||||
{{end}}
|
||||
5
template/components/title.go
Normal file
5
template/components/title.go
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
package components
|
||||
|
||||
type Title struct {
|
||||
Label string
|
||||
}
|
||||
5
template/components/title.html
Normal file
5
template/components/title.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{define "title"}}
|
||||
<div class="title">
|
||||
<h1>{{.Label}}</h1>
|
||||
</div>
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue