Giter VIP home page Giter VIP logo

Comments (18)

matthewmccullough avatar matthewmccullough commented on August 22, 2024

You are so right. I'll try to hit those up along with some @github/training-team members.

from teach.github.com.

matthewmccullough avatar matthewmccullough commented on August 22, 2024

There are still a few more slide to rename.

from teach.github.com.

matthewmccullough avatar matthewmccullough commented on August 22, 2024

@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.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

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.

matthewmccullough avatar matthewmccullough commented on August 22, 2024

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.

cobyism avatar cobyism commented on August 22, 2024

@jordanmccullough Happy to try and help 😀 —what kind of stuff did you run into, exactly?

from teach.github.com.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

@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.

cobyism avatar cobyism commented on August 22, 2024

@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:

  1. Alter the directory structure so the inherited category and the YAML-specified category are not the same.
  2. Alter the YAML-specified category to be different from the directory-inherited category name.
  3. 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 of index.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.

brntbeer avatar brntbeer commented on August 22, 2024

Link to #66 as a related issue.

from teach.github.com.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

@brntbeer Thanks for associating these two issues. Looking into these and should have word on them tomorrow (03/13/13).

from teach.github.com.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

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...

PastedGraphic-1

from teach.github.com.

brntbeer avatar brntbeer commented on August 22, 2024

This is so awesome. happy to see progress updates!

from teach.github.com.

cobyism avatar cobyism commented on August 22, 2024

Woah, nice!

from teach.github.com.

matthewmccullough avatar matthewmccullough commented on August 22, 2024

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.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

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.

matthewmccullough avatar matthewmccullough commented on August 22, 2024

@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.

cobyism avatar cobyism commented on August 22, 2024

@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.

jordanmccullough avatar jordanmccullough commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.