gcg-website/layouts/partials/related.html
Denys Konovalov 18a823cb6a cleanup templates:
- move out shared functions to shared templates
  - remove useless classes
  - simplify
  - various cleanups & enhancements
2023-07-24 12:02:51 +02:00

2 lines
192 B
HTML

{{ $related := (where .Site.RegularPages "Type" .Type) | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3 }}
{{ return $related }}