These are chat archives for jescalan/roots

19th
Feb 2016
Gary Homewood
@GaryHomewood
Feb 19 2016 10:46
Hi all. Sorry if this is a newbie question. Got roots up-and-running, pulling in data from Contentful, which is very cool. But I was a bit confused by the markup in the template layout.jade.
!= css()
does the !=
mean execute a roots method?
are the roots methods documented somewhere?
Mikko Alander
@MikkoA
Feb 19 2016 10:50
Hello guys! Im using roots with contentful, very nice! Just on small thing: Im trying to create dynamic navigation from contentful pages. No problem with that, but: Is there a way to make current page active in navigation? How can I access current page url in template?
Mikko Alander
@MikkoA
Feb 19 2016 11:00
I'm trying to do something like this in nav:
for p in contentful.vocPages
if p._url == _url
        - liClass='active'
But what is the 'current' url? _url doesn't work ...
Mikko Alander
@MikkoA
Feb 19 2016 11:12
OK. Found it: it should be _path. But somehow _path is empty on all of my contentful -pages ...
Matt Rossi
@mordecai174
Feb 19 2016 14:54
@jenius definitely beyond me, no worries, thanks for the info. i disabled it for now anyway.
Will Smith
@Fprince333
Feb 19 2016 15:17
This is horrible that I’m stuck on this, but trying to get some meta tag images in my roots project…I can’t figure it out! Anyone have that code?
Will Smith
@Fprince333
Feb 19 2016 16:25
Never mind, I figured it out. Fridays...
unitedflags
@unitedflags
Feb 19 2016 18:06
Hi guys! How can I config browsersync - cant figure out. I just want to switch off notification on reload. Thank you for your answer.
andrewgrano
@andrewgrano
Feb 19 2016 20:40
Hello! I am setting up a roots blog using Contentful and Netlify. I got the basic setup working perfectly - roots is so cool!! Question: how do I access a post's "category" (which is a linked content type)? For example, "entry.title" correctly displays the post's title, but "entry.category" just returns [object Object]. Any ideas?? Thanks so much!!
Noel Quiles
@EnMod
Feb 19 2016 20:50
@jenius I'm surprised there isn't a Gitter for Roots-contentful, I feel that users of the extension would benefit having a Gitter for that as a separate channel of information
How would one go about creating a room for it? Would the maintainer have to? @hhsnopek ?
Henry Snopek
@hhsnopek
Feb 19 2016 20:59
@EnMod so we don't have to swap between a lot of gitter rooms I think we'll keep everything roots related here :)
unitedflags
@unitedflags
Feb 19 2016 22:26
@jenius Thank you for v4.0.1. Solved my problem with browsersync (reload notification).
Ed Holzwarth
@eholzwarth
Feb 19 2016 22:48
Not seeing release notes for v4 - what's new since the previous version?
unitedflags
@unitedflags
Feb 19 2016 22:50
@eholzwarth v4.0.1 DISABLE BROWSERSYNC NOTIFICATIONS, CLOSES #701
Ed Holzwarth
@eholzwarth
Feb 19 2016 22:53
Thanks @unitedflags but was wondering about v4.0.0
Henry Snopek
@hhsnopek
Feb 19 2016 23:00
@eholzwarth it has a couple breaking changes regarding the usage of ES6 w/babel (6? - the latest version) and it uses browsersync
Ed Holzwarth
@eholzwarth
Feb 19 2016 23:00
We are weighing pros and cons of dynamic content extension vs netlify's collections. How would you use collections extension with multiple content types @biilmann ? We would like to follow a design pattern where each page has header, content, footer, where content is a collection of sections. But would like each section to have its own type with design separate from content; content could come from Contentful, but for a small site seems easy enough to put it in markdown with front matter like collections does... Thoughts?
We like how collections keeps content separate from design -- dynamic content your markdown is in with the jade and subject to indent rules, which we don't love
Henry Snopek
@hhsnopek
Feb 19 2016 23:03
@eholzwarth:
v4.0.0
@jenius jenius released this 10 days ago · 2 commits to master since this release

BREAKING: Babel upgraded to v6. If you update to roots v4 and are using Babel, you must be using Babel 6 or higher, or things will break. Beware! If you are not using Babel, you should see no change in this upgrade though.

Server and reload now uses browsersync
All dependencies and compiled language versions upgraded to the latest versions
Ed Holzwarth
@eholzwarth
Feb 19 2016 23:24
@hhsnopek thank you - I did see that and thought something was missing but thanks for confirming