Git Product home page Git Product logo

Comments (5)

mscharley avatar mscharley commented on August 24, 2024

For my plugins I've been favouring option #2, simply because it's
segregated. It's easier to ask users for their _data/config.yml file and
get just the relevant settings. It's also an organisational tool. Just with
jekyll plus a few other settings, my _settings.yml file is getting quite
long as it is.

On 22 April 2014 06:24, Anatol Broder [email protected] wrote:

I write a customizable theme for Jekyll. Call it theme. I see two places
where the user can place her settings:

_config.yml

theme:
option1: value1
option2: value2

Then I access the settings via site.theme.
2.

_data/theme.yml

option1: value1option2: value2

Then I access the settings via site.data.theme.

Which one is better and why?

โ€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/21
.

from jekyll-help.

troyswanson avatar troyswanson commented on August 24, 2024

I would say _config.yml, since you're configuring the theme. Use data for real datasets like government organizations that use GitHub.

from jekyll-help.

albertogg avatar albertogg commented on August 24, 2024

I'm bit more inclined to the _config.yml; both ways are good and functionally the same, but those options seems to be more like configuration settings.

from jekyll-help.

budparr avatar budparr commented on August 24, 2024

I use _data/settings.yaml for anything I want to expose to non-technical people, and config for everything else.

from jekyll-help.

doktorbro avatar doktorbro commented on August 24, 2024

Thank you for opinions. I will use _config.yml because:

  • the file already exists in every installation
  • _data should contain user content only

from jekyll-help.

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.