standardshub / sh-web

This repository is dedicated to develop SH website
0 stars 2 forks source link

[Creation of new Page] How to create a new page #47

Open jpradocueva opened 4 years ago

jpradocueva commented 4 years ago

In the index.markdown we describe a high-level our services using the e.g. block cards.

Each Service has a link to "See More or Learn More". These are my questions:

Do you understand what I mean?

pattiyaa commented 4 years ago

For new page of services, it should be sub-menu under the service menu.

  1. create xxx.markdown file at root folder or in the services folder. Both ways will work.
  2. Set up frontmatter to make it sub-menu of service, you have to set order in 2x. (because service menu has order = 20) and set subnav = true
    • order: 21
    • subnav: true You can follow "blog.markdown" as an example, it is sub-menu of information menu.
  3. Using layout: page, it provide a block_before and block_afer area where you can apply all block_template to this new page.
    • block_before: all blocks will be displayed above markdown content area
    • block_after: all blocks will be displayed bellow markdown content area
  4. You can also just add content as markdown in content area after frontmatter section. This content will display between block_before and block_afer area.

image

jpradocueva commented 4 years ago

I'm keeping it open until I am able to evaluate it.