Render menu header template

pull/1/head
Nikita Tokarchuk 3 years ago
parent 8f4d4ff1ba
commit 823adde655
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 10
      frontend/templates/blog.go.tmpl
  2. 5
      frontend/templates/error.go.tmpl
  3. 10
      frontend/templates/index.go.tmpl
  4. 9
      frontend/templates/menu.go.tmpl
  5. 1
      frontend/templates/templates.go

@ -5,5 +5,15 @@
{{ template "head.go.tmpl" . }} {{ template "head.go.tmpl" . }}
<body> <body>
<section id="this-is-blog" class="root-container blog-container">
<!-- render menu -->
<div class="menu-container">
{{ template "menu.go.tmpl" . }}
</div>
</section>
</body> </body>
</html> </html>

@ -6,6 +6,11 @@
<body> <body>
<!-- render menu -->
<div class="root-container menu-container">
{{ template "menu.go.tmpl" . }}
</div>
<!-- render error --> <!-- render error -->
<code class="language-c"> <code class="language-c">
/* $NetBSD: yes.c,v 1.5 1997/10/19 14:28:27 mrg Exp $ */ /* $NetBSD: yes.c,v 1.5 1997/10/19 14:28:27 mrg Exp $ */

@ -5,5 +5,15 @@
{{ template "head.go.tmpl" . }} {{ template "head.go.tmpl" . }}
<body> <body>
<section class="root-container welcome-container">
<!-- render menu -->
<div class="menu-container">
{{ template "menu.go.tmpl" . }}
</div>
</section>
</body> </body>
</html> </html>

@ -0,0 +1,9 @@
<div class="menu">
<div class="menu-logo"><a href="{{ getIndexURL }}"><span>nikita</span>.tokarch.uk</a></div>
<ul class="menu-nav">
<li class="menu-nav-li1"><a href="#this-is-blog"><i class="bi bi-journal-arrow-down"></i> blog</a></li>
<li class="menu-nav-li2"><a class="external" target="_blank" href="https://github.com/mainnika"><i class="bi bi-github"></i> github</a></li>
<li class="menu-nav-li3"><a class="external" target="_blank" href="https://www.linkedin.com/in/mainnika"><i class="bi bi-linkedin"></i> linkedin</a></li>
<li class="menu-nav-li4"><a class="external" target="_blank" href="https://www.instagram.com/mainnika"><i class="bi bi-instagram"></i> instagram</a></li>
</ul>
</div>

@ -16,6 +16,7 @@ import (
//go:embed error.go.tmpl //go:embed error.go.tmpl
//go:embed head.go.tmpl //go:embed head.go.tmpl
//go:embed index.go.tmpl //go:embed index.go.tmpl
//go:embed menu.go.tmpl
var content embed.FS var content embed.FS
// List of compiled go-templates // List of compiled go-templates

Loading…
Cancel
Save