Skip to content

Commit

Permalink
Allow hyperlinks to specific filter documentation (#8231)
Browse files Browse the repository at this point in the history
Merge pull request 8231
  • Loading branch information
ashmaroli committed Jun 22, 2020
1 parent 5481ba0 commit 8136d49
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
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

0 comments on commit 8136d49

Please sign in to comment.