Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ taxonomies:
rh_product: 'rh_products'
other_product: 'other_products'
blog_tag: 'blog_tags'

mediaTypes:
application/json:
suffixes:
- json

outputFormats:
patterns:
mediatype: application/json
3 changes: 3 additions & 0 deletions content/patterns/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ menu:
main:
weight: 10
name: Patterns
outputs:
- html
- json
---

Browse through available patterns and their respective documentation for deployment and operation. Filter patterns by type, industry, and product.
9 changes: 9 additions & 0 deletions layouts/patterns/list.json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if (eq .RelPermalink "/patterns/") }}
{{- $patterns := where $.Pages "Section" "patterns"}}
{{- $patterns_len := $patterns | len }}
{{- $pattern_list := slice }}
{{- range $index, $pattern := $patterns.ByTitle }}
{{- $pattern_list = $pattern_list | append (dict $pattern.Title $pattern.Params) }}
{{- end }}
{{- $pattern_list | jsonify }}
{{- end }}