模板可切换,模板引擎模块化有问题

This commit is contained in:
张超
2025-06-19 22:27:06 +08:00
parent 4c9f6c140f
commit 8241b8c61f
16 changed files with 401 additions and 122 deletions

View File

@@ -0,0 +1,12 @@
{{ define "header" }}
<header class="site-header">
<div class="container">
<a href="/" class="logo">My Blog</a>
<nav class="main-nav">
<a href="/">首页</a>
<a href="/about">关于</a>
<a href="/archive">归档</a>
</nav>
</div>
</header>
{{ end }}