Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tpl/collections: Add like operator to where function #11281

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

jmooring
Copy link
Member

@jmooring jmooring commented Jul 23, 2023

Enables constructs such as:

{{ range where site.RegularPages "Params.foo" "like" "^ab" }}
  <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}

Will submit documentation change to the documentation repository is this is merged.

Closes #11279

jmooring added a commit to jmooring/hugo-docs that referenced this pull request Jul 23, 2023
tpl/collections/where.go Outdated Show resolved Hide resolved
@jmooring jmooring force-pushed the feat/add-like-comparison-operator branch from 1cc0f72 to 8c54df8 Compare July 27, 2023 19:00
@bep bep merged commit f4598a0 into gohugoio:master Jul 28, 2023
7 checks passed
@jmooring jmooring deleted the feat/add-like-comparison-operator branch July 28, 2023 14:39
jmooring added a commit to jmooring/hugo that referenced this pull request Jul 29, 2023
bep pushed a commit that referenced this pull request Jul 29, 2023
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support where operators for partial matches
2 participants