|
1 | 1 | <div class="hx:mt-4 hx:mb-6 hx:text-gray-500 hx:dark:text-gray-400 hx:text-sm hx:flex hx:items-center hx:flex-wrap hx:gap-y-2"> |
2 | | - {{- with $date := .Date -}} |
3 | | - {{- $basePath := site.Params.variables.reflections.path -}} |
4 | | - {{- $dayUrl := printf "%s/%s/" $basePath ($date.Format "2006/01/02") -}} |
5 | | - <a href="{{ $dayUrl }}" class="hx:mr-1 hx:hover:text-gray-900 hx:dark:hover:text-gray-100 hx:transition-colors"> |
6 | | - {{- partial "utils/format-date" $date -}} |
7 | | - </a> |
8 | | - {{- with $.Params.time }}<span class="hx:mr-1">• {{ . }}</span>{{ end -}} |
9 | | - {{- end -}} |
10 | | - {{- if and .Date .Params.authors -}} |
11 | | - <span class="hx:mr-1">—</span> |
12 | | - {{- end -}} |
13 | | - {{- with .Params.authors -}} |
14 | | - {{- range $author := . -}} |
15 | | - {{- if reflect.IsMap $author -}} |
16 | | - <a |
17 | | - {{ with $author.link }}href="{{ . }}" target="_blank"{{ end }} |
18 | | - class="hx:group hx:inline-flex hx:items-center hx:text-current hx:transition-colors hx:hover:text-gray-900 hx:dark:hover:text-gray-100" |
19 | | - {{ with $author.name }}title="{{ . }}"{{ end }} |
20 | | - > |
21 | | - {{- with $author.image -}} |
22 | | - <img |
23 | | - src="{{ . | safeURL }}" |
24 | | - alt="{{ $author.name }}" |
25 | | - class="hx:inline-block hx:h-4 hx:w-4 hx:mr-1 hx:rounded-full" |
26 | | - loading="lazy" |
27 | | - /> |
28 | | - {{- end -}} |
29 | | - <div>{{ $author.name }}</div> |
30 | | - </a> |
| 2 | + {{- with $date := .Date -}} |
| 3 | + {{- $basePath := site.Params.variables.reflections.path -}} |
| 4 | + {{- $dayUrl := printf "%s/%s/" $basePath ($date.Format "2006/01/02") -}} |
| 5 | + <a href="{{ $dayUrl }}" class="hx:mr-1 hx:hover:text-gray-900 hx:dark:hover:text-gray-100 hx:transition-colors"> |
| 6 | + {{- partial "utils/format-date" $date -}} |
| 7 | + </a> |
| 8 | + {{- with $.Params.time }}<span class="hx:mr-1">• {{ . }}</span>{{ end -}} |
| 9 | + {{- end -}} |
| 10 | + {{- if and .Date .Params.authors -}} |
| 11 | + <span class="hx:mr-1">—</span> |
| 12 | + {{- end -}} |
| 13 | + {{- with .Params.authors -}} |
| 14 | + {{- range $author := . -}} |
| 15 | + {{- if reflect.IsMap $author -}} |
| 16 | + <a |
| 17 | + {{ with $author.link }}href="{{ . }}" target="_blank"{{ end }} |
| 18 | + class="hx:group hx:inline-flex hx:items-center hx:text-current hx:transition-colors hx:hover:text-gray-900 hx:dark:hover:text-gray-100" |
| 19 | + {{ with $author.name }}title="{{ . }}"{{ end }} |
| 20 | + > |
| 21 | + {{- with $author.image -}} |
| 22 | + <img |
| 23 | + src="{{ . | safeURL }}" |
| 24 | + alt="{{ $author.name }}" |
| 25 | + class="hx:inline-block hx:h-4 hx:w-4 hx:mr-1 hx:rounded-full" |
| 26 | + loading="lazy" |
| 27 | + /> |
| 28 | + {{- end -}} |
| 29 | + <div>{{ $author.name }}</div> |
| 30 | + </a> |
| 31 | + {{- end -}} |
31 | 32 | {{- end -}} |
32 | 33 | {{- end -}} |
33 | | - {{- end -}} |
34 | 34 | </div> |
0 commit comments