feat: add SCSS styles and HTML templates for blog layout
This commit is contained in:
committed by
Evrard Van Espen (aider)
parent
2d9eabc53f
commit
fdccf7d0ac
34
templates/layout.html
Normal file
34
templates/layout.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Evrard Van Espen</title>
|
||||
<style>
|
||||
{{ .Css }}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{{ template "header.html" . }}
|
||||
|
||||
{{ .Hero }}
|
||||
|
||||
<main id="page">
|
||||
<div id="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ if .ShowSidebar }}
|
||||
<div id="sidebar">
|
||||
<h2>Tags</h2>
|
||||
<div id="tags">
|
||||
|
||||
{{ range .Tags }}
|
||||
<a href="/tags/{{ . }}.html">{{ . }}</a>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user