Giter Site home page Giter Site logo

web-boilerplate's Introduction

Boilerplate

This repository is the ever-changing boilerplate of my preferred development stack and workflow for simple web projects. Components include:

Setup

No setup is needed to modify content of existing pages. Just modify the Markdown files for the page under content/ directly in Github or locally with your preferred editor. To preview changes before they are deployed, open a pull request and a preview site will be deployed for your branch.

To test changes locally or create new pages:

  1. Install Node.js
  2. Clone this repository.
  3. Run npm install in the root directory of your clone.

Developing

To test the site locally, run npm start, then navigate to the prompted web page in your browser (usually http://localhost:1313/). It should automatically refresh whenever you make a change.

To create a new page, run npm run new path/to/new/page.md where path/to/new/page.md is the location of the page on the site (aka. relative to content/).

To deploy the site manually, run npm run build and copy public/ to your server's web root. This should not normally be necessary since the site is automatically deployed whenever the main branch is updated.

Organization

This site uses Hugo's default directory structure.

  • archetypes/ contains templates to simplify creating new pages. See docs.
  • assets/ contains non-HTML files which are preprocessed with Hugo Pipes like images, SCSS, and TypeScript.
  • content/ contains Markdown files to define the site's page content. See docs.
  • layouts/ contains HTML templates which define the site's structure. See docs
  • laouts/partials/ contains partial pages which are used in other templates.
  • layouts/shortcodes/ contains shortcode definitions which can be used from Markdown content See docs.
  • resources/ is a cache for assets that have been processed. It should not be modified by hand.
  • static/ contains additional files which do not need preprocessing and are made available on the site as-is.
  • package.json contains versions for the site's dependencies. While these are typically used from TypeScript, some like Font Awesome and UIKit also have content referenced from SCSS or directly mounted into static/ via config.toml. See docs
  • config.toml is the Hugo configuration file. See docs.

web-boilerplate's People

Contributors

fore5fire avatar

Watchers

 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.