aside.sidebar
section
//- if not single layout with sorting
.shadow(v-if="shouldShowListSort.includes(type) && layout !== 'single'")
h3.t-up sort {{ type }}s
ul.t-up
li
//- post?type=articles //
router-link(v-if="type === 'post' " :to="`/${type}?type=articles`")
p in the news
li
//- post?type=releases //
router-link(v-if="type === 'post' " :to="`/${type}?type=releases`")
p press releases
li
//- event?type=concerts //
router-link(v-if="type === 'event' " :to="`/${type}?type=concerts`")
p concerts
li
//- event?type=openings //
router-link(v-if="type === 'event' " :to="`/${type}?type=openings`")
p openings
li
//- event?type=talks //
router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
p talks
li
//- event?type=workshops //
router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
p workshops
//- by type //
li(v-for="option in sortOptions")
router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
p {{ option }}
li
router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
p current and upcoming
li
//- router-link(v-if="type === ('post') " :to="`/${type}/`")
router-link(v-if="type === ('post') " :to="`/blog`")
p by all
//- if artist has sorted by-alpha show alpha sets
.shadow(v-if="['artist'].includes(type) && layout !== 'single'")
h3.t-up {{ type }} by alpha
ul.t-up
li.f-row.start.wrap
template(v-for="charaSet in charaSets")
router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
p.alpha {{ charaSet }}
//- if {{type}} has sorted by-material show material sets
.shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
h3.t-up {{ type }}s by material
ul.t-up
li
template(v-for="material in materials")
router-link(:to="`/${type}/sorted/by-material#${material}`")
p {{ material }}
//- if {{type}} has sorted by-episode show episode sets
.shadow(v-if="shouldShowEpisodeSort.includes(type) && layout !== 'single'")
h3.t-up {{ type }}s by episode
ul.t-up
li.f-row.start.wrap
template(v-for="episodeSet in episodeSets")
router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
p {{ episodeSet }}
//- if {{type}} has sorted by-type show subtype sets
.shadow(v-if="shouldShowTypeSort.includes(type) && layout !== 'single'")
h3.t-up {{ type }}s type
ul.t-up
li
template(v-for="subtypeSet in subtypeSets")
router-link(:to="`/${type}/sorted/by-type#${subtypeSet}`")
p {{ subtypeSet }}
//- p2p types and related posts
.shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
related-sidebar(:posts-by-type="related" :post-type="p2pPostType")
//- Optional passthrough
slot
//- single layout Exhibitions sidebar
.shadow(v-if="type === 'exhibition'")
events-sidebar
//- single layout Events sidebar
.shadow(v-if="type === 'event'")
exhibitions-sidebar
//- single layout type.post sidebar
.shadow(v-if="type === 'post'")
exhibitions-sidebar
.shadow(v-if="type === 'post'")
events-sidebar
//- single layout page sidebar
.shadow(v-if="type === 'page'")
events-sidebar
.shadow(v-if="type === 'page'")
exhibitions-sidebar