Skip to content

Commit

Permalink
feat: add hugo-installer + auto-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jun 29, 2021
1 parent b2aa255 commit 5256d79
Show file tree
Hide file tree
Showing 33 changed files with 8,765 additions and 17,363 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-console": 0,
Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Question 🙋
url: https://github.com/h-enk/hyas/discussions/categories/q-a
about: Ask your question in Hyas Discussions
38 changes: 12 additions & 26 deletions .github/workflows/node.js-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Test and build your Hyas project
# For more information see: https://henkverlinde.com/continuous-integration-workflow-for-your-hyas-project/

name: Hyas CI

on:
push:
branches: [master]
branches: master
pull_request:
branches: [master]
branches: master

jobs:
build:
Expand All @@ -16,33 +13,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 15.x]
node: [14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Check out Hyas project
uses: actions/checkout@v2

- name: Install Hugo
uses: peaceiris/actions-hugo@v2
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
hugo-version: 'latest'
extended: true

- name: Check install Hugo
run: hugo version
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci
- name: Check for linting errors

- name: Run Hyas test script
run: npm test

- name: Delete temporary directories
run: npm run clean


- name: Build production website
run: npm run build
run: npm run build
17 changes: 0 additions & 17 deletions .github/workflows/npm-package.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/readme.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
functions
bin
node_modules
public
resources
yarn-error.log
# Local Netlify folder
.netlify
TODO
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

27 changes: 0 additions & 27 deletions .versionrc.json

This file was deleted.

8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
### Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

<!-- auto-changelog-above -->

### [1.4.4](https://github.com/h-enk/hyas/compare/v1.4.3...v1.4.4) (2021-02-25)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Henk Verlinde
Copyright (c) 2020-2021 Henk Verlinde

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,3 @@ Hyas comes with [commands](https://gethyas.com/docs/prologue/commands/) for comm
- [Netlify Community](https://community.netlify.com/)
- [Hugo Forums](https://discourse.gohugo.io/)
- [Hyas Discussions](https://github.com/h-enk/hyas/discussions)

## Blog
<!--START_SECTION:feed-->
* [Say hello to Hyas 👋](https:&#x2F;&#x2F;gethyas.com&#x2F;blog&#x2F;say-hello-to-hyas&#x2F;)
<!--END_SECTION:feed-->
Empty file removed assets/lambda/.gitignore
Empty file.
21 changes: 21 additions & 0 deletions assets/scss/layouts/_pages.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
p.meta {
margin-top: 1rem;
font-size: $font-size-base;
font-family: $font-family-monospace;
color: $gray-dark;
}

@include media-breakpoint-down(sm) {
p.meta {
font-size: $font-size-base * 0.9375;
}
}

p.meta a {
color: $gray-dark;
}

p.meta a:hover,
p.meta a:focus {
color: $primary;
}
11 changes: 10 additions & 1 deletion config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
baseurl = "/"
canonifyURLs = false
disableAliases = true
disableHugoGeneratorInject = true
disableKinds = ["taxonomy", "taxonomyTerm"]
Expand Down Expand Up @@ -34,10 +35,18 @@ notAlternative = true

[markup]
[markup.goldmark]
[markup.goldmark.extensions]
linkify = false
[markup.goldmark.parser]
autoHeadingID = true
autoHeadingIDType = "github"
[markup.goldmark.parser.attribute]
block = true
title = true
[markup.goldmark.renderer]
unsafe = true
[markup.highlight]
codeFences = true
codeFences = false
guessSyntax = false
hl_Lines = ""
lineNoStart = 1
Expand Down
41 changes: 32 additions & 9 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,58 @@
# Meta Data for SEO

## Homepage
title = "Hyas"
titleSeparator = "-"
titleAddition = "Modern Hugo Starter"
description = "Hugo starter helping you build modern websites."
description = "Hyas is a Hugo starter helping you build modern websites that are secure, fast, and SEO-ready — by default."

## Open Graph
images = ["hyas.png"]
ogLocale = "en_US"
domainTLD = "gethyas.com"
titleHome = "Hyas Hugo Starter"

twitterSite = "@henkverlinde"
## Twitter Cards
twitterSite = "@gethyas"
twitterCreator = "@henkverlinde"
facebookAuthor = "verlinde.henk"
facebookPublisher = "verlinde.henk"
ogLocale = "en_US"

## JSON-LD
# schemaType = "Person"
schemaType = "Organization"
schemaName = "Hyas"
schemaAuthor = "Henk Verlinde"
schemaAuthorTwitter = "https://twitter.com/henkverlinde"
schemaAuthorLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
schemaAuthorGitHub = "https://github.com/h-enk"
schemaLocale = "en-US"
schemaLogo = "logo-hyas.png"
schemaTwitter = "https://twitter.com/henkverlinde"
schemaLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
schemaGitHub = "https://github.com/h-enk"
schemaLogoWidth = 512
schemaLogoHeight = 512
schemaImage = "hyas.png"
schemaImageWidth = 1280
schemaImageHeight = 640
schemaTwitter = "https://twitter.com/gethyas"
schemaLinkedIn = ""
schemaGitHub = "https://github.com/h-enk/hyas"
schemaSection = "blog"

## Sitelinks Search Box
siteLinksSearchBox = false

## Chrome Browser
themeColor = "#fff"

# Images
quality = 85
bgColor = "#fff"
landscapePhotoWidths = [1000, 800, 700, 600, 500]
landscapePhotoWidths = [900, 800, 700, 600, 500]
portraitPhotoWidths = [800, 700, 600, 500]
lqipWidth = "20x"

# Footer
footer = "Powered by <a href=\"https://www.netlify.com/\">Netlify</a>, <a href=\"https://gohugo.io/\">Hugo</a>, and <a href=\"https://gethyas.com/\">Hyas</a>"
copyRight = "Copyright (c) 2020-2021 Henk Verlinde"

# Alert
alert = false
alertText = "Deliver web projects 10x faster. <a class=\"alert-link\" href=\"https://www.netlify.com/whitepaper/\" target=\"_blank\" rel=\"noopener\">Get the free enterprise paper →</a>"
2 changes: 2 additions & 0 deletions config/next/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
baseurl = "https://hyas-next.netlify.app/"
canonifyURLs = true
14 changes: 11 additions & 3 deletions config/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const autoprefixer = require('autoprefixer')
const purgecss = require('@fullhuman/postcss-purgecss')
const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
const whitelister = require('purgecss-whitelister');

module.exports = {
Expand All @@ -12,9 +12,17 @@ module.exports = {
],
safelist: [
'lazyloaded',
'table',
'thead',
'tbody',
'tr',
'th',
'td',
'h5',
...whitelister([
// './assets/scss/components/_syntax.scss',
// './assets/scss/components/_buttons.scss',
'./assets/scss/components/_code.scss',
// './assets/scss/components/_syntax.scss',
]),
],
}),
Expand Down
2 changes: 2 additions & 0 deletions config/production/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
baseURL = "https://hyas.netlify.app/"
canonifyURLs = true
Empty file removed config/production/params.toml
Empty file.
Empty file removed config/staging/config.toml
Empty file.
Empty file removed config/staging/params.toml
Empty file.
4 changes: 0 additions & 4 deletions data/hyas.json

This file was deleted.

File renamed without changes.
5 changes: 3 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<div class="col-lg-7 pb-5 text-center">
<h1>{{ .Title }}</h1>
<p>{{ .Params.Lead | safeHTML }}</p>
<a class="btn btn-primary px-3" href="{{ "quick-start/" | absURL }}" role="button">Quick Start</a>
<a class="btn btn-outline-primary px-3" href="https://gethyas.com/" role="button">View Docs</a>
<a class="btn btn-dark px-3" href="{{ "quick-start/" | absURL }}" role="button">Quick Start</a>
<a class="btn btn-outline-dark px-3" href="https://gethyas.com/" role="button">View Docs</a>
<p class="meta">Open-source MIT Licensed. <a href="https://github.com/h-enk/hyas">GitHub v{{ $data := getJSON "https://raw.githubusercontent.com/h-enk/hyas/master/package.json" }}{{ $data.version }}</a></p>
</div>
</div>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head/favicons.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | absURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | absURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | absURL }}">
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
<link rel="manifest" crossorigin="use-credentials" href="{{ "site.webmanifest" | absURL }}">
Loading

0 comments on commit 5256d79

Please sign in to comment.