Files
blog/themes/Ying/layouts/page/about.html
T

48 lines
1.7 KiB
HTML
Raw Normal View History

2024-07-11 16:08:51 +08:00
{{ define "main" }}
<div id="pjax-container">
2026-01-31 18:18:19 +08:00
<div class="post-content" itemprop="articleBody" uk-scrollspy="target: > *; cls: uk-animation-slide-bottom-small; delay: 100">
2024-07-13 11:42:38 +08:00
{{ .Content }}
2026-01-30 14:18:47 +08:00
2026-01-31 19:24:22 +08:00
{{ $sectionCount := 0 }}
<!-- Heatmap Section -->
{{ if site.Params.about.enableheatmap }}
{{ $sectionCount = add $sectionCount 1 }}
2026-01-30 19:49:16 +08:00
<div style="margin-top: 40px;">
2026-01-31 19:24:22 +08:00
<div class="section-title">{{ printf "%02d" $sectionCount }} / 热力图 (Hot Map)</div>
{{ partial "heatmap.html" . }}
</div>
{{ end }}
<!-- Skills Section -->
{{ if site.Params.about.enableskills }}
{{ $sectionCount = add $sectionCount 1 }}
<div style="margin-top: 40px;">
<div class="section-title">{{ printf "%02d" $sectionCount }} / 技能栈 (System Ops)</div>
{{ partial "skills.html" . }}
</div>
{{ end }}
<!-- Album Section -->
2026-01-31 23:05:19 +08:00
{{ if site.Params.about.enablealbum }}
2026-01-31 19:24:22 +08:00
{{ $sectionCount = add $sectionCount 1 }}
<div style="margin-top: 40px;">
<div class="section-title">{{ printf "%02d" $sectionCount }} / 光影 (Album)</div>
2026-01-31 18:18:19 +08:00
<div class="album-content" uk-scrollspy="target: > .album-item; cls: uk-animation-slide-bottom-small; delay: 100">
2026-01-30 14:18:47 +08:00
{{ range site.Data.album }}
<div class="album-item">
<div class="album-img-box">
<img src="{{ .image }}" loading="lazy">
{{ if .date }}<span class="album-date-badge">{{ .date }}</span>{{ end }}
<div class="album-info">
<span class="album-title">{{ .title }}</span>
</div>
</div>
</div>
{{ end }}
</div>
</div>
2026-01-31 23:05:19 +08:00
{{ end }}
2024-07-11 16:08:51 +08:00
</div>
2024-07-13 11:42:38 +08:00
</div>
2026-01-22 21:26:48 +08:00
{{ end }}