GithubHelp home page GithubHelp logo

ecomerce's Introduction

Source

This "Source" folder is where all of your files associated with this site will go and is considered the root ('/') of your site. This is also where all of your pages will be generated when using the page subgenerator.

Pages

Pages are the main driver for static sites and also determine your site's routes. All page templates (except index.{jade,nunjucks}) should be placed in a folder named by your desired route. For example, a contact page would most likely be loaded at the /contact route. You would acheive this by creating the following structure:

└── src
    └── contact
        └── index.{jade,nunjucks}

Subgenerator

You can easily create new pages using the built-in sub-generator like so:

yo yeogurt:page about

This will create the structure you saw above:

└── src
    └── about
        └── index.{jade,nunjucks}

So when you boot up your site and go to /about you will see your new page.

Specifying a layout

You can also create a new page that extends from a different layout file than base.{jade,nunjucks}.

yo yeogurt:page about --layout=two-col

ecomerce's People

Contributors

romanstrutynskyi avatar

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.