Open DrDrij opened 8 months ago
@mmcky I've pushed up the latest updates. Been staring at it a while so please do a quick test on your machine too, or I can do a bit more testing with the netlify build. I am hoping this layout simplifies the ordering somewhat.
Hey @jstac should have captured all your suggestions bro.
Looks beautiful. Many thanks @DrDrij !
thanks @DrDrij -- looking good.
The Topic
filter doesn't appear to obey the order in my commit abf6db1
lecture-tools-techniques.md:topic: Topics 1
lecture-stats.md:topic: Topics 2
lecture-python.md:topic: Topics 3
lecture-julia.md:topic: Programming 3, Topics 4
lecture-datascience.md:topic: Introductory 3, Topics 5
lecture-jax.md:topic: Programming 2, Topics 6
lecture-eqm.md:topic: Topics 7
lecture-markov.md:topic: Topics 8
lecture-dynamics.md:topic: Topics 9
lecture-dps.md:topic: Topics 10
lecture-dle.md:topic: Topics 11
lecture-advanced.md:topic: Topics 12
@jstac Just working on the final order
Hey @mmcky - had some luck, following the logic of the ordering function. We now have a separate lecture-series yaml file for each topic it lives under. So sorting, filtering, and ordering is all working now. The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.
So yeah, hopefully its all sorting nicely on your end but note that under "All" we do have each series that lives under 2 topics appearing twice.
thanks @DrDrij so each list has its own set of yml
files such as topics-{name}.yml
?
The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.
Is this causing the duplicates in the All
list?
thanks @DrDrij so each list has its own set of
yml
files such astopics-{name}.yml
?The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.
Is this causing the duplicates in the
All
list?
@DrDrij is there any way to drop the duplicates in the All
view?
Hey @mmcky I've been tinkering away trying lots of ways to get the sorting to work. I've done written out the lectures on paper under each tab and the orders seem to be working. Mind giving it a test please :)
Testing today I see it is still getting confused. I am using an array in the front matter
`difficulty: 3
topic:
`
Will do a bit more testing.
thanks @DrDrij let me know if we should just write out the html manually for now. :-)
Thanks @mmcky for the suggestion. I will do that now. I'm on my way back to Canberra on the 7th and will update to an automated method.
@mmcky Latest commit is now static HTML ordering for now.
thanks @DrDrij
@mmcky Might have another crack at this..
@DrDrij is this good to go or should we discuss before making this improvement. From memory the last update was that we would just manually update the locations of each lecture on the page. Is that right?
@DrDrij I think it would be good to reinstate News
from the collapsed RHS menu option. I will be reviewing news each month in an effort to keep the site more dynamic.
Once that change is done I think we can merge this and then iterate again on ways to improve finding the lectures.
In progress.