Skip to content

Commit

Permalink
feat: update for @hyas/core 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Oct 17, 2023
1 parent 043390f commit 26ede6b
Show file tree
Hide file tree
Showing 22 changed files with 204 additions and 184 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<br/>
<a href="https://gethyas.com/">Hyas</a> is a website build tool for the modern web &mdash;
<br/>
Hugo's speed and flexibility meets npm's
Hugo's speed and flexibility meet npm's
ease of use.
<br/><br/>
</p>
Expand Down
24 changes: 16 additions & 8 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ summarylength = 20 # 70 (default)

copyRight = "Copyright (c) 2020-2023 Henk Verlinde"

[build.buildStats]
enable = true

[social]
twitter = "gethyas"

Expand All @@ -28,7 +31,19 @@ copyRight = "Copyright (c) 2020-2023 Henk Verlinde"
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = "30m"
maxAge = -1
[caches.getcsv]
dir = ":cacheDir/:project"
maxAge = -1
[caches.images]
dir = ":cacheDir/images"
maxAge = "1440h"
[caches.assets]
dir = ":cacheDir/:project"
maxAge = -1
[caches.getresource]
dir = ":cacheDir/:project"
maxage = '1h'

[taxonomies]
category = "categories"
Expand All @@ -52,10 +67,3 @@ copyRight = "Copyright (c) 2020-2023 Henk Verlinde"
[[related.indices]]
name = "date"
weight = 10

[imaging]
anchor = 'Smart'
bgColor = '#fff'
hint = 'photo'
quality = 90
resampleFilter = 'Lanczos'
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
## Homepage
title = "Hyas"
titleSeparator = "-"
titleAddition = "Build Hugo websites easier and faster"
titleAddition = "Build something amazing"
39 changes: 24 additions & 15 deletions config/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,34 @@ module.exports = {
plugins: [
autoprefixer(),
purgecss({
content: [
'./node_modules/@hyas/core/layouts/**/*.html',
// './layouts/**/*.html',
'./content/**/*.md',
content: [ './hugo_stats.json' ],
extractors: [
{
extractor: (content) => {
const els = JSON.parse(content).htmlElements;
return els.tags.concat(els.classes, els.ids);
},
extensions: ['json'],
},
],
dynamicAttributes: [
'aria-expanded',
'id',
'size',
'type',
],
safelist: [
'active',
'disabled',
'hidden',
'show',
'img-fluid',
'blur-up',
'lazyloaded',
'table',
'thead',
'tbody',
'tr',
'th',
'td',
'h1',
'h2',
'h3',
'alert-link',
...whitelister([
'./node_modules/@hyas/core/assets/scss/app.scss',
'./assets/scss/**/*.css',
'./assets/scss/**/*.scss',
'./node_modules/katex/dist/katex.css',
]),
],
}),
Expand Down
6 changes: 3 additions & 3 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title : "Hyas"
description: "The all-in-one Hugo framework designed for ease of use."
lead: "The all-in-one Hugo framework designed for ease of use."
description: "Node.js web framework designed for speed and security. Build the website you want with integrations, and deploy everywhere, all powered by Hugo and npm."
lead: "Node.js web framework designed for speed and security. Build the website you want with integrations, and deploy everywhere, all powered by Hugo and npm."
date: 2020-04-17T12:18:10+00:00
lastmod: 2020-04-17T12:18:10+00:00
draft: false
images: []
---

This line is from `./content/_index.md` :rocket:
This line is from `content/_index.md` :rocket:
12 changes: 0 additions & 12 deletions content/blog/_index.md

This file was deleted.

32 changes: 0 additions & 32 deletions content/quick-start/index.md

This file was deleted.

22 changes: 22 additions & 0 deletions hugo_stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"htmlElements": {
"tags": [
"body",
"code",
"head",
"html",
"link",
"meta",
"noscript",
"p",
"script",
"style",
"title"
],
"classes": [
"home",
"single"
],
"ids": null
}
}
Loading

0 comments on commit 26ede6b

Please sign in to comment.