Comments (18)
You are so right. I'll try to hit those up along with some @github/training-team members.
from teach.github.com.
There are still a few more slide to rename.
from teach.github.com.
@jordanmccullough I think I need some help here to filter out slides from appearing in the recommended links, if there's even a way to do that.
from teach.github.com.
Did some hacking on this yesterday, and hit a blocker with some Jekyll weirdness. Might need to chat with an expert in Liquid and Jekyll to resolve.
from teach.github.com.
Calling an awesome @cobyism for Jekyll help. @jordanmccullough can you recap for Coby what the barrier is here in a nutshell?
from teach.github.com.
@jordanmccullough Happy to try and help 😀 —what kind of stuff did you run into, exactly?
from teach.github.com.
@cobyism, thank for offering to help.
For the teach.github.com "presentations" slide deck HTML files, we've put a front matter of categories: ['presentations']
. With the /presentations/index.md using the Jekyll include categorycontents
, we're seeing all _posts included in the output, not just the Markdown files with the category presentations
front matter.
Clearly I'm totally overlooking something here, but any insight would be appreciated.
from teach.github.com.
@jordanmccullough Ok, I’m pretty sure I know why you’re seeing this.
The way Jekyll works is that categories are derived from the directory structure above the _posts
directory. For example, a post located at /work/code/_posts/2008-12-24-closures.textile
would have this field automatically set to ['work', 'code']
(without setting it in the YAML front-matter. They can also be specified in the front-matter, but the inheritance from the directory structure is likely what is causing your problem here.
Basically, because you have a _posts
directory underneath a /presentations
directory, this means any markdown file in that /presentations/_posts
folder will inherit a categories value of ['presentations']
whether you specify it in the YAML front-matter or not.
There’s a couple of ways you could get around this:
- Alter the directory structure so the inherited category and the YAML-specified category are not the same.
- Alter the YAML-specified category to be different from the directory-inherited category name.
- Add a secondary, arbitrary category name to the YAML front-matter for posts you want to show up, and make that the one you specify in the
{% assign selectedcategory = ... %}
line ofindex.md
.
I’d probably recommend option 2, with changing the YAML-specified category to maybe be just ['presentation']
(no 's', singular) since that’s what that specific file represents so it makes a little bit of sense—or possibly option 3. Option 1 would suck because it would necessarily affect the URL structure, and I’m guessing that’s not ideal.
I hope that helps you troubleshoot? Let me know if there’s anything I can do (or clarify further) to help get things working as you want them to and I can have a dig 😄
from teach.github.com.
Link to #66 as a related issue.
from teach.github.com.
@brntbeer Thanks for associating these two issues. Looking into these and should have word on them tomorrow (03/13/13).
from teach.github.com.
Almost done with a major refactor. All markdown files will have the title embedded, no Front Matter "title" attribute requirement, etc. The HydeSlides control panel will now show like so...
from teach.github.com.
This is so awesome. happy to see progress updates!
from teach.github.com.
Woah, nice!
from teach.github.com.
I sure do love the new control panel and titles to all the slides! This came in via #91
However, they still show up on http://teach.github.com/presentations/ when they shouldn't (category assignment to cause them not to show?). I'm going to try and hack on that right now.
from teach.github.com.
Slipped from my schedule yesterday, but trying to tackle this following the title fixes. @cobyism provided some insight and tips, and I'm sure if I just apply the suggested changes, things will clear up.
from teach.github.com.
@cobyism I tried your option 2, but it didn't seem to work. See http://teach.github.com/presentations/ for pages still showing up that have had their category explicitly assigned to be something other than presentations
. As a fall back, I think I'll try shifting the "loop" to use another category and then just assigning the pages I want to show up to use that "special" category. That would be more DRY as well.
from teach.github.com.
@matthewmccullough Bummer, it may be the case that it’s impossible to override the inherited categories, and that instead any YAML-specified categories are merely added to the existing set generated from the directory structure.
from teach.github.com.
Closing this down following the migration effort and the data restructuring of all combined training.github.com/teach.github.com content.
from teach.github.com.
Related Issues (20)
- Logo Police HOT 4
- Possible ImpressJS conversion problem HOT 2
- Update Branding from "Teach" to "Teaching" HOT 4
- Invalid filename characters (e.g. ?) stop contribs from Windows users HOT 10
- Add Mozilla "Transitioning to Git" talk to linked resources HOT 1
- Add link to visualization tool showed at GitMerge HOT 6
- windows.github.com link sends me to mac.github.com HOT 2
- Two To Do sections in HydeSlides README HOT 1
- zero-indexed list shows normal numbering from 1 on Overview of GitHub Pages slides HOT 1
- Foundation Class slides need logo update HOT 4
- Revise Presentations' Diagram Visual Style HOT 4
- Teaching Materials categories (Collapsing the Training sites into fewer properties) HOT 8
- `?` Help on Foundations Does Not Display HOT 3
- Add slides for slimmed-down Foundations talk HOT 8
- code examples run outside of box, making box unreadable HOT 4
- Verbatim vs summarised chat transcripts in class notes HOT 2
- "Version" and Data Storage Tree Diagram HOT 7
- Port Git Internals deck to HydeSlides format HOT 2
- Internationalization? HOT 2
- Category for link to www.cursodegit.com HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teach.github.com.