Skip to content

Project home page of Computational Field Theory HPC framework HILA

License

Notifications You must be signed in to change notification settings

CFT-HY/HILA.home

Repository files navigation

Repository of CFT HILA project's home page

This repository hosts Jekyll-based home page of CFT framework HILA. The home page will be rendered as Github page by utilizing the automation provided by Github branch deployment.

The template Start Bootstrap - Clean Blog Jekyll is chosen as basis of working. This template is built upon Bootstrap, which offer convenient CSS/Sass style sheet design.

A pre-rendered test site can be found at here.

Structure of site source tree and User guide

  1. Create the following pages if they do not exist already (or change the extension of existing markdown files from .md to .html):

    • index.html - set to layout: home
    • about.html - set to layout: page
    • contact.html - set to layout: page
    • posts/index.html - set to layout: page (you will also need to create a posts directory)
  2. Configure the index.html front matter. Example:

    ---
    layout: home
    background: '/PATH_TO_IMAGE'
    ---
  3. Configure the about.html, contact.html, and posts/index.html front matter. Example:

    ---
    layout: page
    title: Page Title
    description: This is the page description.
    background: '/PATH_TO_IMAGE'
    ---
  4. For each post in the _posts directory, update the front matter. Example:

    ---
    layout: post
    title: "Post Title"
    subtitle: "This is the post subtitle."
    date: YYYY-MM-DD HH:MM:SS
    background: '/PATH_TO_IMAGE'
    ---

    For reference, look at the demo repository to see how the files are set up.

  5. Add the form to the contact.html page. Add the following code to your contact.html page:

    <form name="sentMessage" id="contactForm" novalidate>
      <div class="control-group">
        <div class="form-group floating-label-form-group controls">
          <label>Name</label>
          <input type="text" class="form-control" placeholder="Name" id="name" required data-validation-required-message="Please enter your name.">
          <p class="help-block text-danger"></p>
        </div>
      </div>
      <div class="control-group">
        <div class="form-group floating-label-form-group controls">
          <label>Email Address</label>
          <input type="email" class="form-control" placeholder="Email Address" id="email" required data-validation-required-message="Please enter your email address.">
          <p class="help-block text-danger"></p>
        </div>
      </div>
      <div class="control-group">
        <div class="form-group col-xs-12 floating-label-form-group controls">
          <label>Phone Number</label>
          <input type="tel" class="form-control" placeholder="Phone Number" id="phone" required data-validation-required-message="Please enter your phone number.">
          <p class="help-block text-danger"></p>
        </div>
      </div>
      <div class="control-group">
        <div class="form-group floating-label-form-group controls">
          <label>Message</label>
          <textarea rows="5" class="form-control" placeholder="Message" id="message" required data-validation-required-message="Please enter a message."></textarea>
          <p class="help-block text-danger"></p>
        </div>
      </div>
      <br>
      <div id="success"></div>
      <div class="form-group">
        <button type="submit" class="btn btn-primary" id="sendMessageButton">Send</button>
      </div>
    </form>

    Make sure you have the email setting in your _config.yml file set to a working email address! Once this is set, fill out the form and then check your email, verify the email address using the link sent to you by Formspree, and then the form will be working!

Default _config.yml keywords

Update the following configuration settings in _config.yml file to control the information flow:

* `baseurl`
* `url`
* `title`
* `email` (after setting this setting to a working email address, fill out the form on the contact page and send it - then check your email and verify the address and the form will send you messages when used)
* `description`
* `author`
* `twitter_username` (Optional)
* `facebook_username` (Optional)
* `github_username` (Optional)
* `linkedin_username` (Optional)
* `instagram_username` (Optional)

Copyright and License

Copyright 2013-2021 Start Bootstrap LLC. Code released under the MIT license.

About

Project home page of Computational Field Theory HPC framework HILA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages