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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hyperlinks to specific filter documentation #8231

Merged
merged 1 commit into from Jun 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_docs/liquid/filters.md
Expand Up @@ -70,7 +70,7 @@ using [plugins](/docs/plugins/).
{% for filter in site.data.jekyll_filters %}
<tr>
<td>
<p class="name"><strong>{{ filter.name }}</strong></p>
<p id="{{ filter.name | slugify }}" class="name"><strong>{{ filter.name }}</strong></p>
<p>
{{- filter.description -}}
{%- if filter.version_badge %}
Expand Down
26 changes: 18 additions & 8 deletions docs/_posts/2020-05-27-jekyll-4-1-0-released.markdown
Expand Up @@ -4,6 +4,12 @@ date: 2020-05-27 15:20:30 +0530
author: ashmaroli
version: 4.1.0
category: release

filters_linked_to:
- where expression
- find expression
- find
- number of words
---

Hello Jekyllers!
Expand All @@ -12,13 +18,13 @@ It's time for yet another release that includes enhancements, optimizations and
are:

* Jekyll now supports rendering excerpts for *pages* in addition to documents and posts.
* The `where_exp` filter got enhanced. Earlier, one could just use either `and` or `or` once per expression. Now, one
may use those binary operators multiple times in the filter's expression.
* Jekyll has a new set of filters based on *its flavor* of the `where` and `where_exp` filters. Named `find` and
`find_exp` filters respectively, they work similar to their ancestors except that they return **the first object** that
satisfies the given conditions.
* Jekyll's `number_of_words` filter can now take [an optional argument][filters-docs] to better count words of text
containing Chinese, Japanese or Korean characters.
* The [`where_exp`][where-expression-filter] filter got enhanced. Earlier, one could just use either `and` or `or` once
per expression. Now, one may use those binary operators multiple times in the filter's expression.
* Jekyll has a new set of filters based on *its flavor* of the `where` and `where_exp` filters. Named
[`find`][find-filter] and [`find_exp`][find-expression-filter] filters respectively, they work similar to their ancestors
except that they return **the first object** that satisfies the given conditions.
* Jekyll's [`number_of_words`][number-of-words-filter] filter can now take an optional argument to better count words
of text containing Chinese, Japanese or Korean characters.
* One may now use `:slugified_categories` in their permalink configurations to generate a more apt URL (categories are
downcased and non-alphanumeric characters replaced by dashes) for their for posts and documents.
* The logic for *slugifying* a given string has been enhanced to support more Unicode characters.
Expand All @@ -42,7 +48,11 @@ For the interest of gem-based theme authors:
to bundle a `_config.yml` at the root of the workspace. If you don't wish to include the configuration file in the
released gem, please remove `|_config\.yml` from the regular expression in the gemspec.

[filters-docs]: {{ 'docs/liquid/filters/' | relative_url }}
{% for filter in page.filters_linked_to %}
{% assign filter_slug = filter | slugify %}
[{{ filter_slug }}-filter]: {{ filter_slug | prepend: '/docs/liquid/filters/#' | relative_url }}
{% endfor %}

[page-drop-docs]: {{ 'docs/pages/#for-plugin-developers' | relative_url }}


Expand Down