Commit 9038820c authored by Tobias Buckdahn's avatar Tobias Buckdahn
Browse files

Major refactoring of tech and collection URLs

parent 64da4267
......@@ -4,7 +4,7 @@ show_score: true # toggle to determine if scores should be displa
score_threshold: 10 # minimum score needed to show up in the list
filter: # filter a configurable collection of pages to compare
items:
'@page.children': '/techs/all' # supports @self, @page, and @taxonomy collections
'@page.children': '/tech' # supports @self, @page, and @taxonomy collections
order:
by: date # order type by default
dir: desc # order direction
......
---
title: Offsets
module_link: '/techs/collections/offsets'
module_link: '/techs/offsets'
module_description: 'to move gradually'
module_wrapper_classes: 'col-12 col-lg-6'
......@@ -8,7 +8,7 @@ item_wrapper_classes: 'col-12 col-sm-6'
content:
items:
- '@page.descendants': '/techs/collections/offsets'
- '@page.descendants': '/techs/offsets'
filter:
published: true
type: 'collection'
......
---
title: Patterns
module_link: '/techs/collections/patterns'
module_link: '/techs/patterns'
module_description: 'to decorate surfaces'
module_wrapper_classes: 'col-12 col-lg-6'
......@@ -8,7 +8,7 @@ item_wrapper_classes: 'col-12 col-sm-6'
content:
items:
- '@page.descendants': '/techs/collections/patterns'
- '@page.descendants': '/techs/patterns'
filter:
published: true
type: 'collection'
......
---
title: Rotations
module_link: '/techs/collections/rotations'
module_link: '/techs/rotations'
module_description: 'to change direction'
module_wrapper_classes: 'col-12 col-lg-6'
......@@ -8,7 +8,7 @@ item_wrapper_classes: 'col-12 col-sm-6'
content:
items:
- '@page.descendants': '/techs/collections/rotations'
- '@page.descendants': '/techs/rotations'
filter:
published: true
type: 'collection'
......
---
title: Shapes
module_link: '/techs/collections/shapes'
module_link: '/techs/shapes'
module_description: 'for geometric fun'
module_wrapper_classes: 'col-12 col-lg-6'
......@@ -8,7 +8,7 @@ item_wrapper_classes: 'col-12 col-sm-6'
content:
items:
- '@page.descendants': '/techs/collections/shapes'
- '@page.descendants': '/techs/shapes'
filter:
published: true
type: 'collection'
......
drafts
drafts/**
!drafts/*template
!drafts/*template/**
\ No newline at end of file
---
title: Explore
content:
items:
- '@page.descendants': '/techs/rotations'
- '@page.descendants': '/techs/offsets'
- '@page.descendants': '/techs/patterns'
- '@page.descendants': '/techs/shapes'
- '@page.self': '/parts'
- '@page.descendants': '/techs/order-by/part-count'
# - '@page.descendants': '/techs/volume'
- '@page.descendants': '/techs/order-by/date'
filter:
published: true
---
......@@ -91,7 +91,7 @@ form:
value: Filter
process:
redirect: >-
/techs/collections/rotations/{%
/techs/rotations/{%
set rotation_angle = form.value.rotation_angle %}{%
set rotation_angle = rotation_angle|slice(0,3) == 'all' ? 'all' : rotation_angle %}{%
set rotation_type = form.value.rotation_type %}{%
......
---
title: 'Stud Tilt'
icon: icon.png
redirect: 'techs/collections/rotations/function:stud_tilt'
redirect: 'techs/rotations/function:stud_tilt'
content:
items:
......
---
title: 'Stud Twist'
icon: icon.png
redirect: 'techs/collections/rotations/function:stud_twist'
redirect: 'techs/rotations/function:stud_twist'
content:
items:
......
......@@ -84,7 +84,7 @@ form:
value: Filter
process:
redirect: >-
/techs/collections/offsets/{%
/techs/offsets/{%
set offset_length = form.value.offset_length %}{%
set offset_length = offset_length|slice(0,3) == 'all' ? 'all' : offset_length %}{%
set offset_type = form.value.offset_type %}{%
......
---
title: 'Stud Lift'
icon: 'icon.png'
redirect: 'techs/collections/offsets/function:stud_lift'
redirect: 'techs/offsets/function:stud_lift'
content:
items:
......
---
title: 'Stud Shift'
icon: 'icon.png'
redirect: 'techs/collections/offsets/function:stud_shift'
redirect: 'techs/offsets/function:stud_shift'
content:
items:
......
---
title: 'Linear Patterns'
icon: 'icon.png'
redirect: 'techs/collections/patterns/function:pattern_1D'
redirect: 'techs/patterns/function:pattern_1D'
content:
items:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment