Coder Social home page Coder Social logo

_config.yml name vs title about jekyll-feed HOT 12 CLOSED

jekyll avatar jekyll commented on May 18, 2024
_config.yml name vs title

from jekyll-feed.

Comments (12)

pathawks avatar pathawks commented on May 18, 2024

It seems the Jekyll site template prefers title, so that's probably what we should use as well.

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

A quick GItHub code search suggests that about 2.4M sites use "name", while only about 700,000 use title

from jekyll-feed.

rayshan avatar rayshan commented on May 18, 2024

Maybe people are using name for user / author name? Perhaps look for title first, if it doesn't exist, then look for name?

from jekyll-feed.

sondr3 avatar sondr3 commented on May 18, 2024

Yet again I wish that Jekyll had a official way to organize your _config variables, haha, makes everything so much easier 😄

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

Maybe people are using name for user / author name? Perhaps look for title first, if it doesn't exist, then look for name?

Taking just a quick look at the search results, yes, it looks like often the name matches the GitHub username.

Yet again I wish that Jekyll had a official way to organize your _config variables, haha, makes everything so much easier 😄

Tell me about it; Jekyll is very opinionated in some areas, and not at all in others. 😛

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

What do we think about {{ site.title | fallback: site.name }}? (If that'll even work?)

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

That seems appropriate, though we'll probably have to do the ugly if/else like we do for site.url (but wouldn't a fallback be nice?)

from jekyll-feed.

envygeeks avatar envygeeks commented on May 18, 2024

We should add fallback to Jekyll as a default filter though that would only affect Jekyll 3 and this needs to support Jekyll 2.4+ but we should still add it, doing a search for liquid fallback shows tons of people offering it in their liquid installations.

from jekyll-feed.

benbalter avatar benbalter commented on May 18, 2024

Looks like it's in Jekyll > 2.0.0 as default.

from jekyll-feed.

simonvanderveldt avatar simonvanderveldt commented on May 18, 2024

Just ran into this after adding this gem (nice that it's available on GitHub now :))

It seems the Jekyll site template prefers title, so that's probably what we should use as well.

This was the reason I was using site.title, I guess it will be for most people starting from scratch.

The suggested site.title + fallback to site.name sounds good.
(I've switched to site.name for now, but would prefer site.title)

from jekyll-feed.

ilg-ul avatar ilg-ul commented on May 18, 2024

English is not my first language, but semantically I think it is more natural for sites to have names (similarly to libraries, shops, etc) and pages to have titles (similarly to books, articles, etc).

from jekyll-feed.

pathawks avatar pathawks commented on May 18, 2024

I believe that #72 closes this issue

from jekyll-feed.

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.