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

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:
......
---
title: 'Planar Patterns'
icon: 'icon.png'
redirect: 'techs/collections/patterns/function:pattern_2D'
redirect: 'techs/patterns/function:pattern_2D'
content:
items:
......
......@@ -2,7 +2,7 @@
title: 'Spatial Patterns'
icon: 'icon.png'
published: false
redirect: 'techs/collections/patterns/function:pattern_3D'
redirect: 'techs/patterns/function:pattern_3D'
content:
items:
......
......@@ -90,7 +90,7 @@ form:
value: Filter
process:
redirect: >-
/techs/collections/patterns/{%
/techs/patterns/{%
set pattern_segsize = form.value.pattern_segsize %}{%
set pattern_segsize = pattern_segsize|slice(0,3) == 'all' ? 'all' : pattern_segsize %}{%
set pattern_type = form.value.pattern_type %}{%
......
---
title: 'Forms'
icon: icon.png
redirect: 'techs/collections/shapes/function:shape_2D'
redirect: 'techs/shapes/function:shape_2D'
content:
items:
......
---
title: 'Bodies'
icon: icon.png
redirect: 'techs/collections/shapes/function:shape_3D'
redirect: 'techs/shapes/function:shape_3D'
content:
items:
......
......@@ -97,7 +97,7 @@ form:
value: Filter
process:
redirect: >-
/techs/collections/shapes/{%
/techs/shapes/{%
set shape_segsize = form.value.shape_segsize %}{%
set shape_segsize = shape_segsize[:3] == 'all' ? 'all' : shape_segsize %}{%
......
---
title: More Collections
menu: More
icon: icon.png
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
---
......@@ -3,11 +3,13 @@ title: Techs
routes:
aliases:
- '/techs'
- '/techs/using'
- '/techs/having'
- '/techs/with'
content:
items: '@self.children'
items:
- '@page.children': '/tech'
order:
by: date
dir: desc
......
---
title: More Collections
menu: More
icon: icon.png
content:
items:
# - '@page.descendants': '/techs/collections/rotations'
# - '@page.descendants': '/techs/collections/offsets'
# - '@page.descendants': '/techs/collections/patterns'
# - '@page.descendants': '/techs/collections/shapes'
- '@page.self': '/techs/collections/parts'
- '@page.descendants': '/techs/collections/parts'
# - '@page.descendants': '/techs/collections/size'
- '@page.descendants': '/techs/collections/time'
filter:
published: true
---
---
title: Explore
routes:
aliases:
- '/techs/explore'
content:
items:
- '@page.descendants': '/techs/collections/rotations'
- '@page.descendants': '/techs/collections/offsets'
- '@page.descendants': '/techs/collections/patterns'
- '@page.descendants': '/techs/collections/shapes'
- '@page.descendants': '/techs/collections/parts'
# - '@page.descendants': '/techs/collections/size'
- '@page.descendants': '/techs/collections/time'
filter:
published: true
type: 'collection'
---
---
title: 'Oldest'
icon: 'icon.png'
redirect: '/techs/all/orderby:date/orderdir:asc'
redirect: '/techs/orderby:date/orderdir:asc'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: date
dir: asc
......
---
title: 'Newest'
icon: 'icon.png'
redirect: '/techs/all/orderby:date/orderdir:desc'
redirect: '/techs/orderby:date/orderdir:desc'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: date
dir: desc
......
......@@ -4,7 +4,7 @@ icon: 'icon.png'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: header.taxonomy.partcount
dir: asc
......
......@@ -4,7 +4,7 @@ icon: 'icon.png'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: header.taxonomy.partcount
dir: desc
......
......@@ -4,7 +4,7 @@ icon: 'icon.png'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: header.volume
dir: asc
......
......@@ -4,7 +4,7 @@ icon: 'icon.png'
content:
items:
- '@page.children': '/techs/all'
- '@page.children': '/tech'
order:
by: header.volume
dir: desc
......