Skip to content

Adding Page

Linda Mejia edited this page Nov 7, 2019 · 11 revisions

Option 1:

To add a simple page, like an "About" page:

  1. Add a markdown file in the site repo under the "_pages" folder
  2. Add Front Matter / first lines of code, which should look something like:
    ---
    title: About
    permalink: /about/
    layout: page
    ---
  3. Below the --- add your content

Option 2:

To include a page with more functionality:

  1. Follow steps 1 and 2 above
  2. Add the html file in the "_layouts" folder in the site repo.

The first lines of the html file should look something like, depending on what you want to include:
{% include multilingual.html %}
{% include head.html %}
{% include header.html %}
For more information on how this works
Wrap your content inside of <div id="main-content" class="a-class" role="main"> </div>
Example:
Example html file

  1. Add the javascript file in the "_includes" folder under "/assets/js/"