All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 43s
This is limited to person pages for now, but it really aims to be the general pattern. The previous way related articles are linked on the website was space-intensive (title+tons-of-tags). It was also duplicating what the nav-graph wants to do (semantic linkage). I am thinking that the nav-graph is what we should emphasize -- it brings out the graphiness of the information. Here I am removing the tag list and present related articles as compact title-only lists. A new collection of partials is sketched that allow for customization of these list items for each category. For example, publication items can list a date. Each list is individually sorted by a `sortkey` parameter. This could be used to sort projects by title, but publications by date.
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
<div class="inline">
|
|
{{ with .Params.externalUrl }}
|
|
<div>
|
|
<a
|
|
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
|
href="{{ . }}"
|
|
target="_blank"
|
|
rel="external"
|
|
>{{ $.Title | emojify }}</a
|
|
>
|
|
<span
|
|
class="cursor-default align-top text-xs text-neutral-400 dark:text-neutral-500"
|
|
title="{{ i18n "list.externalurl_title" }}"
|
|
>
|
|
<span class="rtl:hidden">↗</span>
|
|
<span class="ltr:hidden">↖</span>
|
|
</span>
|
|
</div>
|
|
{{ else }}
|
|
<a
|
|
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
|
|
href="{{ .Permalink }}"
|
|
>{{ .Title | emojify }}</a
|
|
>
|
|
{{ end }}
|
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
|
<div class="ms-2">
|
|
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
|
</div>
|
|
{{ end }}
|
|
{{ if templates.Exists "_partials/extend-article-link.html" }}
|
|
{{ partial "extend-article-link.html" . }}
|
|
{{ end }}
|
|
</div>
|