added sorting to pages

This commit is contained in:
mx 2021-07-19 19:55:59 +02:00
parent df648d0007
commit d1f4e6fef5
4 changed files with 44 additions and 25 deletions

View File

@ -2,28 +2,46 @@ module.exports = (config) => {
// add collection for pages // add collection for pages
config.addCollection('pages', (collection) => { config.addCollection('pages', (collection) => {
return collection.getFilteredByGlob("**/*.md"); let sorted = []
let unsorted = []
const pages = collection.getFilteredByGlob('**/*.md')
for (let page of pages) {
if (page.data.sort) {
if (sorted[page.data.sort]) {
sorted.splice(page.data.sort)
} else {
sorted[page.data.sort] = page
}
} else {
unsorted.push(page)
}
}
return sorted.concat(unsorted)
}) })
// custom filters // custom filters
config.addFilter("makeLowercase", (value) => { config.addFilter("makeLowercase", (value) => {
if (typeof value === 'string' || value instanceof String) { if (typeof value === 'string' || value instanceof String) {
return value.toLowerCase() return value.toLowerCase()
}
})
// added passthrough for global assets
config.addPassthroughCopy("assets")
// added passthrough for images in their respective folders
config.addPassthroughCopy("_content/**/images/**")
// reutrn updated config
return {
dir: {
input: "_content", // content
includes: "../_includes", // templates
output: "_site", // rendered site
data: "../_data" // global data files
}
} }
} })
// added passthrough for global assets
config.addPassthroughCopy("assets")
// added passthrough for images in their respective folders
config.addPassthroughCopy("_content/**/images/**")
// reutrn updated config
return {
dir: {
input: "_content", // content
includes: "../_includes", // templates
output: "_site", // rendered site
data: "../_data" // global data files
}
}
}

View File

@ -33,4 +33,4 @@ This project is still alive today, and has since manifested in a Master's projec
![](/work/images/autonomousArchive/aa17-web.jpg) ![](/work/images/autonomousArchive/aa17-web.jpg)
![](/work/images/autonomousArchive/aa19-web.jpg) ![](/work/images/autonomousArchive/aa19-web.jpg)
![](/work/images/autonomousArchive/aa20-web.jpg) ![](/work/images/autonomousArchive/aa20-web.jpg)
![](/work/images/autonomousArchive/aa4-web.jpg) ![](/work/images/autonomousArchive/aa4-web.jpg)

View File

@ -5,6 +5,7 @@ imgFeat: /work/images/container2mvmnts/DSC_7873.jpg
gallery: gallery:
- /work/images/container2mvmnts/DSC_7864.jpg - /work/images/container2mvmnts/DSC_7864.jpg
- /work/images/container2mvmnts/DSC_7865.jpg - /work/images/container2mvmnts/DSC_7865.jpg
sort: 2
--- ---
<iframe width="560" height="315" style="width:100%; height: 20%;" sandbox="allow-same-origin allow-scripts allow-popups" src="https://p.eertu.be/videos/embed/8f786cb3-68f0-4f30-a144-77cc6dd82cad?warningTitle=0" frameborder="0" allowfullscreen></iframe> <iframe width="560" height="315" style="width:100%; height: 20%;" sandbox="allow-same-origin allow-scripts allow-popups" src="https://p.eertu.be/videos/embed/8f786cb3-68f0-4f30-a144-77cc6dd82cad?warningTitle=0" frameborder="0" allowfullscreen></iframe>
@ -19,4 +20,4 @@ I have taken two devices synonymous with a long history of sound making, one as
A record plays sound waves cut into grooves of vinyl that are read through a stylus into analogue audio. This record player appears to be functioning as expected, however the record is not playing audio data. The record contains digital data, used to synthesise audio through custom software. In place of the audio being a physical attribute of the record, the record player stands in as a speaker, resonating the analogue audio through its structure. The physicality of the audio interferes with the reading of the data on the record, causing it to skip, manifesting in errors or forcing the software to re-read the record. A record plays sound waves cut into grooves of vinyl that are read through a stylus into analogue audio. This record player appears to be functioning as expected, however the record is not playing audio data. The record contains digital data, used to synthesise audio through custom software. In place of the audio being a physical attribute of the record, the record player stands in as a speaker, resonating the analogue audio through its structure. The physicality of the audio interferes with the reading of the data on the record, causing it to skip, manifesting in errors or forcing the software to re-read the record.
The modular synthesiser embodies a long history of generative music composition and performance. This device acts as intended. When knobs are turned, patch cables moved, a generative synthetic sound is emitted, ready to construct, record or perform a piece of music. However, the iteration in front of the manipulators and listeners is also a stage for live external performance as well as a tool for live mass distribution. Inside, a computer live streams audio in and out, anonymous performers are unseen workers overlooked as part of the synthesiser. The device's internal working are hidden discernible solely from its inputs and outputs. The modular synthesiser embodies a long history of generative music composition and performance. This device acts as intended. When knobs are turned, patch cables moved, a generative synthetic sound is emitted, ready to construct, record or perform a piece of music. However, the iteration in front of the manipulators and listeners is also a stage for live external performance as well as a tool for live mass distribution. Inside, a computer live streams audio in and out, anonymous performers are unseen workers overlooked as part of the synthesiser. The device's internal working are hidden discernible solely from its inputs and outputs.
In both instances it is important that the user unaware of what is happening inside the black box until they are inspired to seek further information. The distribution of this knowledge is done in the same way that open-source culture shares code and builds communities, accessible to all who are willing to break open the box (metaphorically). I want to encourage us to question the black boxes that we work with, so that we may stop being complicit and seek more transparent alternatives. The installation introduced this to an audience as they experience these systems through learning how the installation works. In both instances it is important that the user unaware of what is happening inside the black box until they are inspired to seek further information. The distribution of this knowledge is done in the same way that open-source culture shares code and builds communities, accessible to all who are willing to break open the box (metaphorically). I want to encourage us to question the black boxes that we work with, so that we may stop being complicit and seek more transparent alternatives. The installation introduced this to an audience as they experience these systems through learning how the installation works.

View File

@ -2,7 +2,7 @@
title: stone throw title: stone throw
layout: page.njk layout: page.njk
imgFeat: /work/images/stoneThrow/scanPage.png imgFeat: /work/images/stoneThrow/scanPage.png
gallery: sort: 1
--- ---
# stone throw # stone throw