Update style

This commit is contained in:
infidel
2023-12-30 18:38:38 +07:00
parent 3278bd5c66
commit 3dcdccb162
6 changed files with 130 additions and 39 deletions

View File

@@ -6,29 +6,28 @@
{{ .Content }}
</nav>
<nav class="inf-border" aria-labelledby="toc-heading">
<div class="inf-patterns-list" id="list">
<h3> <a href="/post"> Check My Recent Posts </a> </h3>
<table>
<ul class="inf-patterns-list" id="list">
{{ range (.Paginator 5).Pages.ByPublishDate.Reverse }}
<tr>
<td>
<a href="{{ .RelPermalink }}" >
<svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
<use xlink:href="#bookmark"></use>
</svg>
<span class="text">{{ .Name }}</span>
</a>
</td>
<td class="inf-td-hide">
<a href="{{ .RelPermalink }}" >
<span class="text">{{ .PublishDate.Format "January 2, 2006" }}</span>
</a>
</td>
<tr>
<td>
<a href="{{ .RelPermalink }}" >
<svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
<use xlink:href="#bookmark"></use>
</svg>
<span class="text">{{ .Name }}</span>
</a>
</td>
<td class="inf-td-hide">
<a href="{{ .RelPermalink }}" >
<span class="text">{{ .PublishDate.Format "January 2, 2006" }}</span>
</a>
</td>
</tr>
{{ end }}
</ul>
</table>
</div>
</nav>
{{ partial "icon-links.html" . }}

View File

@@ -26,8 +26,5 @@
</div>
{{ partial "nav.html" . }}
{{ if eq .Site.Params.moveFooterToHeader true }}
{{ partial "footer.html" . }}
{{ end }}
</div>
</header>

View File

@@ -9,7 +9,7 @@
{{ $current := . }}
<ul id="patterns-list">
{{ range .Site.Menus.nav }}
<li class="pattern">
<li class="nav-pattern">
{{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
{{ $active = or $active (eq .Name $current.Title) }}
{{ $active = or $active (and (eq .Name "Home") (eq $current.Section "")) }}
@@ -25,3 +25,4 @@
{{ end }}
</ul>
</nav>
{{ partial "footer.html" . }}