initial commit
This commit is contained in:
13
layouts/partials/header.html
Normal file
13
layouts/partials/header.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- basic header partial in hugo with just home and about -->
|
||||
<header class="p-4">
|
||||
<nav>
|
||||
<ul class="flex gap-4">
|
||||
<li>
|
||||
<a href="/" class="hover:text-blue-700">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/about" class="hover:text-blue-700">About</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
10
layouts/partials/tags.html
Normal file
10
layouts/partials/tags.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{- if .Params.tags }}
|
||||
<div class="flex flex-wrap gap-2 my-2 text-xs">
|
||||
{{- range .Params.tags }}
|
||||
<a href="{{ "tags/" | relURL }}{{ . | urlize }}"
|
||||
class="px-3 py-1 bg-green-100 hover:bg-green-300 rounded no-underline">
|
||||
{{ . }}
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
Reference in New Issue
Block a user