Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,17 +3,17 @@ title: Eq
description: Reports whether two Page objects are equal.
categories: []
keywords: []
action:
related: []
returnType: bool
signatures: [PAGE1.Eq PAGE2]
params:
functions_and_methods:
returnType: bool
signatures: [PAGE1.Eq PAGE2]
---
In this contrived example from a single template, we list all pages in the current section except for the current page.
```go-html-template
{{ $currentPage := . }}
{{ range .CurrentSection.Pages }}
{{ range .CurrentSection.Pages }}
{{ if not (.Eq $currentPage) }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}