Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Jekyll to generate the meeting list #8

Merged
merged 4 commits into from
Oct 16, 2014
Merged

Use Jekyll to generate the meeting list #8

merged 4 commits into from
Oct 16, 2014

Conversation

mudge
Copy link
Contributor

@mudge mudge commented Oct 15, 2014

Introduce Jekyll and Liquid templating to help with the later issues which will likely require using layouts and includes.

The main example here is lifting the actual meeting information into a separate Jekyll data file which is then used to automatically generate the list on the front page. I was hoping that we could even dynamically separate past and future meetings with a filter but alas that doesn't seem possible and it would only change when we pushed changes to the site anyway.

We can then use a similar pattern for a list of members and make it trivial to add yourself without having to get involved in the actual page design.

In order to take advantage of Jekyll on GitHub, simulate the version and
configuration used there.
Switch to using Liquid templates for the homepage and move the actual
meeting information into a Jekyll data file.

At the moment, this isn't hugely different to the static version but
with the data and presentation separated, we can hopefully start to do
more interesting things (particularly if we attach more metadata to the
meetings such as books discussed).
@tomstuart
Copy link
Contributor

Is it practical to preserve more of the original formatting? For example, we used to have “Tuesday 14th October 2014”, whereas we now have “Tuesday, 14 October 2014”. (I’ve never used Jekyll.)

@tomstuart
Copy link
Contributor

Although of course what I meant to say is: this is totally brilliant. Thank you!

@mudge
Copy link
Contributor Author

mudge commented Oct 15, 2014

Upsettingly, it doesn't seem like we can do ordinals with vanilla Liquid and Jekyll (there are plugins to provide it but GitHub Pages don't allow us to add any). I can definitely get rid of the comma however.

@mudge
Copy link
Contributor Author

mudge commented Oct 15, 2014

It might also be worth adding a Procfile to make it a bit more obvious how to work on the site if you've never used Jekyll before (jekyll serve --watch).

@tomstuart
Copy link
Contributor

Ordinals: fair enough, it doesn’t matter anyway. I was also originally upset by the whitespace changes in the generated HTML but I really need to get a grip.

@tomstuart
Copy link
Contributor

Yes, a Procfile (and/or a README) is a good idea. I didn’t know what the local incantation was.

@mudge
Copy link
Contributor Author

mudge commented Oct 15, 2014

There is this work of insanity/genius: https://gist.github.com/rickydazla/5668017

Will add a README and Procfile, etc.

@mudge
Copy link
Contributor Author

mudge commented Oct 15, 2014

Files added and date format tweaked.

This was referenced Oct 15, 2014
@mudge
Copy link
Contributor Author

mudge commented Oct 16, 2014

Actually, we might be able to automatically figure out the past and future meetings by comparing the meeting date with site.time and creating the "Future meetings", "Past meetings" headers dynamically in the for loop.

Still, worth getting this in first so other people can start using Jekyll features.

@tomstuart tomstuart merged commit f9a9089 into master Oct 16, 2014
mudge added a commit that referenced this pull request Oct 16, 2014
Introduce Jekyll and Liquid templating to help with the later issues
which will likely require using layouts and includes.

The main example here is lifting the actual meeting information into a
separate Jekyll data file [1] which is then used to automatically
generate the list on the front page. I was hoping that we could even
dynamically separate past and future meetings with a filter [2] but alas
that doesn't seem possible and it would only change when we pushed
changes to the site anyway.

We can then use a similar pattern for a list of members and make it
trivial to add yourself without having to get involved in the actual
page design.

Closes #8.

[1] http://jekyllrb.com/docs/datafiles/
[2] http://jekyllrb.com/docs/templates/#filters
@tomstuart tomstuart deleted the jekyll-data branch October 16, 2014 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants