diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-06-22 19:30:56 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-06-22 19:30:56 +0200 |
| commit | 5269ad50ddb0b641aa96dac7c8f49b156646d4c4 (patch) | |
| tree | 281934bf6cbece774b18d1fbda4d8fe764c93ae2 /templates/note.html | |
| parent | 4dccae11c13ccefbafb4e58bcbaf4166900d6e94 (diff) | |
| download | mitjafelicijan.com-5269ad50ddb0b641aa96dac7c8f49b156646d4c4.tar.gz | |
Better filtering
Diffstat (limited to 'templates/note.html')
| -rw-r--r-- | templates/note.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/note.html b/templates/note.html index 5f3f928..c543773 100644 --- a/templates/note.html +++ b/templates/note.html | |||
| @@ -17,8 +17,8 @@ | |||
| 17 | <p><big><strong>Other notes</strong></big></p> | 17 | <p><big><strong>Other notes</strong></big></p> |
| 18 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other notes"> | 18 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" role="list" aria-label="Other notes"> |
| 19 | <meta itemprop="name" content="Other notes"> | 19 | <meta itemprop="name" content="Other notes"> |
| 20 | {{ range random 20 .Pages }} | 20 | {{ range .Pages | filterbytype "note" | random 15 }} |
| 21 | {{ if and (eq .Type "note") (not .Draft) }} | 21 | {{ if not .Draft }} |
| 22 | <li> | 22 | <li> |
| 23 | {{ range .Meta.tags }} | 23 | {{ range .Meta.tags }} |
| 24 | <mark>{{ . }}</mark> | 24 | <mark>{{ . }}</mark> |
