summaryrefslogtreecommitdiff
path: root/layouts/highlights.html
blob: 9d7c13bfd88a982302a17623a742d11285c6109b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ define "main" }}
    <article>
        {{ partial "header" . }}
        <div class="post-content markdown-body text-size-lg md:text-size-xl">
            <p>{{ .Content }}</p>
        </div>
        <!-- Highlights -->
        {{ range shuffle site.Data.highlights }}
        <section class="post-content">
            <h3><a href="{{ .url }}">《{{ .title }}》</a></h3>
            <ul class="list-none">
                {{ range .highlights }}
                <li class="my-4 text-lg">
                    <a class="font-italic hover:no-underline" href="{{ .link }}">{{ .text | markdownify }}</a>
                </li>
                {{ end }}
            </ul>
        </section>
        {{ end }}
    </article>
{{ partial "footer.html" . }}
{{ end }}