mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-12-16 03:10:24 +00:00
Compare commits
No commits in common. "ded609da7dfd3eec8f1002560bfb00bc66db2c0b" and "fd4db04d3a6676f0db6dad6d65705b96cdf4b52a" have entirely different histories.
ded609da7d
...
fd4db04d3a
2 changed files with 3 additions and 30 deletions
|
|
@ -31,15 +31,11 @@
|
||||||
<div class="bloglist-item">
|
<div class="bloglist-item">
|
||||||
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||||
<p class="bloglist-item-tag">
|
<p class="bloglist-item-tag">
|
||||||
{{ $tag_count := 0 }}
|
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
{{ if lt $tag_count 2 }}
|
|
||||||
{{ $name := . }}
|
{{ $name := . }}
|
||||||
{{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }}
|
{{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }}
|
||||||
<span><a href="{{ .Permalink }}">#{{ $name }}</a> </span>
|
<span><a href="{{ .Permalink }}">#{{ $name }}</a> </span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $tag_count = add $tag_count 1 }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -2,32 +2,9 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
<main>
|
<main>
|
||||||
<div class='bloglist-teaser block-center' style="margin-top: 2rem;">
|
<div class='bloglist-teaser block-center' style="margin-top: 2rem;">
|
||||||
<p>Here you'll find <strong>{{ len .Pages | lang.FormatNumber 0 }} post{{if gt (len .Pages) 1}}s{{end}}</strong>
|
Here you'll find <strong>{{ len .Pages | lang.FormatNumber 0 }} posts</strong>
|
||||||
about <u>{{ .Title }}</u>.</p>
|
about <u>{{ .Title }}</u> </strong>.
|
||||||
|
|
||||||
<!-- Wikidata context -->
|
|
||||||
{{ $tagKey := .Title | urlize }}
|
|
||||||
{{ with index .Site.Data.wikidata_mappings $tagKey }}
|
|
||||||
<div class='wikidata-context block-center' style="margin-top: 1rem; margin-bottom: 2rem;">
|
|
||||||
{{ if eq (len .entities) 1 }}
|
|
||||||
{{ $entity := index .entities 0 }}
|
|
||||||
<p style="font-size: 1.25rem;">
|
|
||||||
Same as <a href="{{ $entity.url }}">{{ $entity.id }}</a>, {{ $entity.description }}.
|
|
||||||
</p>
|
|
||||||
{{ else }}
|
|
||||||
<p style="font-size: 1.25rem;"><strong>These posts may refer to:</strong></p>
|
|
||||||
<ul style="font-size: 1.25rem;">
|
|
||||||
{{ range .entities }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ .url }}">{{ .id }}</a> – {{ .description }}
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- contents -->
|
<!-- contents -->
|
||||||
<div class="bloglist">
|
<div class="bloglist">
|
||||||
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "2006"}}
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "2006"}}
|
||||||
|
|
@ -42,4 +19,4 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue