portails/content/docs/prologue/introduction.md

2.8 KiB

title description lead date lastmod draft images menu weight toc
Introduction Introduction Hyas. Hyas is a Hugo starter helping you build modern websites that are secure, fast, and SEO-ready — by default. 2020-10-06T08:48:57+00:00 2020-10-06T08:48:57+00:00 false
docs
parent
prologue
010 true

Why Hyas?

Six reasons why you should use Hyas:

  1. Security aware. Get A+ scores on Mozilla Observatory out of the box. Easily change the default Security Headers to suit your needs.

  2. Fast by default. Get 100 scores on Google Lighthouse by default. Hyas removes unused css, prefetches links, and lazy loads images.

  3. SEO-ready. Use sensible defaults for structured data, open graph, and Twitter cards. Or easily change the SEO settings to your liking.

  4. Development tools. Code with confidence. Check styles, scripts, and markdown for errors and fix automatically or manually.

  5. Bootstrap framework. Build robust, flexible, and intuitive websites with Bootstrap. Or use any other front-end framework if you prefer.

  6. Netlify-ready. Deploy to Netlify with sensible defaults. Easily use Netlify Functions, Netlify Redirects, and Netlify Headers.

Prerequisites

Make sure all dependencies have been installed:

{{< alert icon="💡" text="npm (comes with Node.js) and Yarn are both Node.js package managers. <a href="https://classic.yarnpkg.com/en/">Yarn is faster, more reliable, and more secure than npm." >}}

Get started

Three ways to get started.

Hyas CLI

Install the Hyas CLI globally:

yarn add global @hyas/cli

Create a new Hyas project:

hyas create [dir]

npx

Or use npx:

npx @hyas/cli create my-hyas-site

See also: [Hyas CLI]({{< ref "hyas-cli" >}}).

Repository clone

Create a new Hyas project:

git clone git@github.com:h-enk/hyas.git my-hyas-site

Install dependencies:

yarn install

Start local development server:

yarn start

See also: [commands]({{< ref "commands" >}}).

Netlify deploy

Get your Hyas site in 1 min.

Deploy to Netlify

Example site

👉 hyas.netlify.app