{{/* this is the episodes list of specified book usage example(in the Front Matter): episodes_amount = 4 episodes_base_url = "mysndqhzl" */}} {{ if .Params.episodes_amount }}

专辑列表

{{ end }} {{/* reference - https://discourse.gohugo.io/t/concatenate-variable-in-hugo/8819/2 */}} {{ $episode_url := print .Site.Params.baseURL "/" .Params.episodes_base_url "-" }} {{ range $num := (seq .Params.episodes_amount) }}
  • 第 {{ . }} 集
  • {{ else }} {{ end }}