{{/* 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 }}
<h2>专辑列表</h2>
{{ 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) }}
<li>
<a href="{{ $episode_url }}{{ . }}{{ print ".html" }}">第 {{ . }} 集</a>
</li>
{{ else }}
<!-- This is only evaluated if it is empty -->
{{ end }}