From 56841cc8be36c41fc1e0db9b2560f764f58eb80f Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 12 Nov 2021 17:26:35 +0800 Subject: [PATCH] feat: update nav --- templates/base/header.tmpl | 2 ++ templates/base/nav.tmpl | 74 ++++++++++++++++++++++++++++++++++++++ templates/home.tmpl | 8 ----- 3 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 templates/base/nav.tmpl diff --git a/templates/base/header.tmpl b/templates/base/header.tmpl index 4c49db6..209ecd6 100644 --- a/templates/base/header.tmpl +++ b/templates/base/header.tmpl @@ -8,4 +8,6 @@ + +{{template "base/nav" .}} {{end}} \ No newline at end of file diff --git a/templates/base/nav.tmpl b/templates/base/nav.tmpl new file mode 100644 index 0000000..d21b024 --- /dev/null +++ b/templates/base/nav.tmpl @@ -0,0 +1,74 @@ + +{{define "base/nav"}} + + + +{{end}} \ No newline at end of file diff --git a/templates/home.tmpl b/templates/home.tmpl index ed4b159..06a8dea 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -5,14 +5,6 @@ var Active = "{{.File.Name}}"; -
-
-

- {{.AppName}} -

-
-
-