Convert single page into hugo template
This commit is contained in:
+16
-11
@@ -1,11 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>List</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>This is list page....</h1>
|
||||
</body>
|
||||
</html>
|
||||
{{ define "header" }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ define "navbar" }}
|
||||
{{ partial "navbar-2.html" (dict "baseURL" .Site.BaseURL "title" .Site.Title "hasToggleButton" true) }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ define "content" }}
|
||||
<h1>Here is the actual content</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
<script src="/assets/js/list.js"></script>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user