add blog
This commit is contained in:
@ -4,12 +4,28 @@
|
||||
|
||||
<article>
|
||||
<div class="content">
|
||||
{{ if ne .Lastmod .Date }}<div class="post-time-date">{{ .Lastmod.Format "2006-01-02" }}</div>{{ end }}
|
||||
<div class="post-time-date">
|
||||
{{ if ne .Lastmod .Date }}
|
||||
<p>{{ .Lastmod.Format "2006-01-02" }}</p>
|
||||
{{ end }}
|
||||
{{ $taxo := "tags" }}
|
||||
{{ with .Param $taxo }}
|
||||
<p><i class="fa-regular fa-folder"></i> {{ if gt (len .) 1 }}{{ end }}
|
||||
{{ range $index, $director := . }}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxo $director) -}}
|
||||
<a href="{{ .Permalink }}">{{ $director }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ partial "next.html" . }}
|
||||
{{ partial "comment.html" . }}
|
||||
|
||||
</div>
|
||||
|
@ -1 +1,9 @@
|
||||
<div class="footer-link">
|
||||
<span class="footer-link"><a href="https://bsky.app/profile/yui.syui.ai" target="_blank"><i class="fab fa-bluesky"></i></a></span>
|
||||
<span class="footer-link"><a href="https://card.syui.ai/ai" target="_blank"><span class="icon-ai"></span></a></span>
|
||||
<span class="footer-link"><a href="https://git.syui.ai/ai" target="_blank"><span class="icon-git"></span></a></span>
|
||||
<!--
|
||||
<span class="footer-link"><a href="https://syui.ai/" target="_blank"><span class="icon-syui"></span></a></span>
|
||||
-->
|
||||
</div>
|
||||
<footer id="footer">© <a href="https://syui.ai">syui</a></footer>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<div class="sns-link">
|
||||
<p>
|
||||
<i class="fa-brands fa-bluesky"></i> <a href="https://bsky.app/profile/yui.syui.ai" target="_blank" class="bluesky-icon">yui.syui.ai</a>
|
||||
<i class="fa-brands fa-bluesky"></i> <a href="https://bsky.app/profile/yui.syui.ai" target="_blank" class="bluesky-icon">@yui.syui.ai</a>
|
||||
</p>
|
||||
<p>
|
||||
<span class="icon-git"></span> <a href="https://git.syui.ai/ai" target="_blank" class="bluesky-icon">@git.syui.ai:ai</a>
|
||||
</p>
|
||||
<p><i class="fab fa-mastodon"></i> <a rel="me" href="https://mstdn.syui.ai/@ai" target="_blank">@ai@syui.ai</a>
|
||||
</div>
|
||||
|
16
layouts/partials/next.html
Normal file
16
layouts/partials/next.html
Normal file
@ -0,0 +1,16 @@
|
||||
<nav id="article-nav">
|
||||
<div class="previnsection">
|
||||
<!--
|
||||
{{ if .PrevInSection }}
|
||||
<p><i class="fa-solid fa-circle-chevron-left"></i> <a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap">
|
||||
{{ .PrevInSection.Title }}
|
||||
</a></p>
|
||||
{{ end }}
|
||||
-->
|
||||
{{ if .NextInSection }}
|
||||
<p><i class="fa-solid fa-circle-chevron-right"></i> <a href="{{ .NextInSection.Permalink }}" id="article-nav-newer" class="article-nav-link-wrap">
|
||||
{{ .NextInSection.Title }}
|
||||
</a></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
Reference in New Issue
Block a user