Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

railroadpm/placeholder-site

Repository files navigation

AAR RailroadPM 2.0 Placeholder Site

This site was originally created by cloning the Netlify One-Click Hugo CMS project. The relevant information from the original README file appears below, with a few edits to clarify and adapt the content to the RailroadPM project.

Hugo Template for Netlify CMS with Netlify Identity

The original template for this site was built with Victor Hugo and Netlify CMS, designed and developed by Darin Dimitroff, spacefarm.digital.

How We Got Started With This RailroadPM Site

First we installed Node.js, Hugo and Yarn. Then we kicked-off development of this site by cloning this repository, and then running yarn from the new folder to install all required dependencies.

We then opened the project in VSCode and started the development server with npm start.

Layouts

The template is based on small, content-agnostic partials that can be mixed and matched. The pre-built pages showcase just a few of the possible combinations. Refer to the original site/layouts/partials folder for all available partials.

Use Hugo’s dict functionality to feed content into partials and avoid repeating yourself and creating discrepancies.

CSS

The template uses a custom fork of Tachyons and PostCSS with cssnext and cssnano. To customize the template for your brand, refer to src/css/imports/_variables.css where most of the important global variables like colors and spacing are stored.

SVG

All SVG icons stored in site/static/img/icons are automatically optimized with SVGO (gulp-svgmin) and concatenated into a single SVG sprite stored as a a partial called svg.html. Make sure you use consistent icons in terms of viewport and art direction for optimal results. Refer to an SVG via the <use> tag like so:

<svg width="16px" height="16px" class="db">
  <use xlink:href="#SVG-ID"></use>
</svg>