Selected works

{{ $selectedTags := (slice "精选") }} {{ range first 3 (shuffle (where site.RegularPages "Params.tags" "intersect" $selectedTags)) }}

{{ .LinkTitle }}

{{ $tags := first 3 (complement $selectedTags .Params.tags) }} {{ $context := dict "Params" (dict "tags" $tags) }} {{ partial "components/tags" $context }}
{{ end }} 全部精选 →

{{ $articles := where site.RegularPages "Section" "eq" "article" }}

Tech Stuff

{{ $techCategories := (slice "代码炼金术" "软件杂谈" "茶歇蔻芥")}} {{ $tech := where $articles "Params.categories" "in" $techCategories }}
    {{ range first 6 $tech }}
  1. {{ .LinkTitle }}
  2. {{ end }}

General Posts

{{ $general := where $articles "Params.categories" "not in" $techCategories }}
    {{ range first 6 $general }}
  1. {{ .LinkTitle }}
  2. {{ end }}
{{ $weekly := where site.RegularPages "Section" "eq" "weekly" }}

Weekly *

    {{ range first 6 $weekly }}
  1. {{ .LinkTitle }}
  2. {{ end }}
{{ $fiction := where site.Pages "Section" "eq" "fiction" }}

Fictions

    {{ range first 6 $fiction }}
  1. {{ .LinkTitle }}
  2. {{ end }}

* 实心圆表示正刊,空心圆表示小报。

{{ partial "home/more-links" . }}

Bookshelf

{{ $library := where site.Pages "Section" "eq" "library" }} {{ $books := where $library "Params.authors" "ne" nil }} {{ range first 6 $books }}
{{ partial "components/book" (dict "ctx" .) }}
{{ end }}
图书馆 →