Skip to content

Commit

Permalink
feat: update for @hyas/bolt-core 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Oct 20, 2023
1 parent 7b1aea2 commit d36de5d
Show file tree
Hide file tree
Showing 34 changed files with 8,105 additions and 4,787 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
Empty file added assets/images/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions assets/mask-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions assets/scss/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** Import theme variables */
@import "common/variables";

/** Include any default variable overrides here */
@import "common/variables-custom";

/** Import boltcss */
@import "boltcss/bolt";

/** Import theme styles */
@import "common/global";
@import "common/mode";
@import "common/typography";
@import "components/buttons";
@import "components/code";
@import "components/images";
@import "components/media";
@import "components/tables";
@import "layouts/footer";
@import "layouts/header";
@import "layouts/pages";
@import "layouts/posts";

/** Include custom styles */
@import "common/custom";
1 change: 1 addition & 0 deletions assets/scss/common/_custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Put your custom SCSS code here
4 changes: 4 additions & 0 deletions assets/scss/common/_variables-custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Put your custom (S)CSS variables here
:root {
--main-bg-color: yellowgreen;
}
15 changes: 9 additions & 6 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ disableAliases = true
disableHugoGeneratorInject = true
# disableKinds = ["taxonomy", "term"]
enableEmoji = true
enableGitInfo = false
enableGitInfo = true
enableRobotsTXT = true
languageCode = "en-US"
paginate = 10
Expand All @@ -14,6 +14,9 @@ summarylength = 20 # 70 (default)

copyRight = "Copyright (c) 2023 Hyas"

[build.buildStats]
enable = true

[social]
twitter = "gethyas"

Expand Down Expand Up @@ -51,8 +54,8 @@ copyRight = "Copyright (c) 2023 Hyas"
weight = 10

[imaging]
anchor = 'Smart'
bgColor = '#fff'
hint = 'photo'
quality = 90
resampleFilter = 'Lanczos'
anchor = "Smart"
bgColor = "#ffffff"
hint = "photo"
quality = 75
resampleFilter = "Box"
60 changes: 42 additions & 18 deletions config/_default/module.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,72 @@
# mounts
## archetypes
[[mounts]]
source = "node_modules/@hyas/core/assets"
target = "assets"
source = "node_modules/@hyas/bolt-core/archetypes"
target = "archetypes"

[[mounts]]
source = "node_modules/@hyas/core/layouts"
target = "layouts"
source = "archetypes"
target = "archetypes"

## assets
[[mounts]]
source = "node_modules/gethyas/assets"
source = "node_modules/@hyas/core/assets"
target = "assets"

[[mounts]]
source = "node_modules/@hyas/seo/layouts"
target = "layouts"
source = "node_modules/gethyas/assets"
target = "assets"

[[mounts]]
source = "node_modules/@hyas/images/assets"
target = "assets"
excludeFiles = "/scss/**.scss"

[[mounts]]
source = "node_modules/@hyas/images/layouts"
target = "layouts"
source = "node_modules/@hyas/bolt-core/assets"
target = "assets"

[[mounts]]
source = "node_modules/@hyas/bolt-core/archetypes"
target = "archetypes"
source = "assets"
target = "assets"

## content
[[mounts]]
source = "node_modules/@hyas/bolt-core/assets"
target = "assets"
source = "content"
target = "content"

## data
[[mounts]]
source = "node_modules/@hyas/bolt-core/layouts"
source = "data"
target = "data"

## i18n
[[mounts]]
source = "i18n"
target = "i18n"

## layouts
[[mounts]]
source = "node_modules/@hyas/core/layouts"
target = "layouts"

[[mounts]]
source = "archetypes"
target = "archetypes"
source = "node_modules/@hyas/seo/layouts"
target = "layouts"

[[mounts]]
source = "assets"
target = "assets"
source = "node_modules/@hyas/images/layouts"
target = "layouts"

[[mounts]]
source = "node_modules/@hyas/bolt-core/layouts"
target = "layouts"

[[mounts]]
source = "layouts"
target = "layouts"

## static
[[mounts]]
source = "static"
target = "static"
49 changes: 49 additions & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Hugo
title = "Bolt"
description = "Minimal blog theme for Hyas based on Bolt.css"
images = ["cover.png"]

# Debug
[render_hooks.image]
errorLevel = 'ignore' # ignore (default), warning, or error (fails the build)

[render_hooks.link]
errorLevel = 'ignore' # ignore (default), warning, or error (fails the build)
highlightBroken = false # true or false (default)

# Images (@hyas/images)
[hyas_images]
[hyas_images.landscape]
normalize = "1360x765" # "1600x900" (default)
lqip = "16x9" # "16x9" (default)
widths = [480, 640, 800, 1024]
[hyas_images.portrait]
normalize = "765x1360" # "900x1600" (default)
lqip = "9x16" # "9x16" (default)
widths = [480, 640, 800, 1024]

# Inline SVG (@hyas/inline-svg)
[inline_svg]
iconSetDir = "tabler-icons" # "tabler-icons" (default)

# SEO (@hyas/seo)
[seo]
[seo.title]
separator = " | "
suffix = ""
[seo.favicons]
sizes = []
icon = "favicon.png" # favicon.png (default)
svgIcon = "favicon.svg" # favicon.svg (default)
maskIcon = "mask-icon.svg" # mask-icon.svg (default)
maskIconColor = "white" # white (default)
[seo.schemas]
type = "Organization" # Organization (default) or Person
logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default)
name = "Hyas" # Name of Organization or Person
sameAs = [] # E.g. ["https://github.com/gethyas/hyas", "https://fosstodon.org/@hyas"]
images = ["cover.png"] # ["cover.png"] (default)
article = [] # Article sections
newsArticle = [] # NewsArticle sections
blogPosting = ["blog"] # BlogPosting sections
product = [] # Product sections
66 changes: 0 additions & 66 deletions config/_default/params.yml

This file was deleted.

43 changes: 23 additions & 20 deletions config/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,39 @@ module.exports = {
plugins: [
autoprefixer(),
purgecss({
content: [
'./node_modules/@hyas/core/layouts/**/*.html',
'./node_modules/@hyas/seo/layouts/**/*.html',
'./node_modules/@hyas/images/layouts/**/*.html',
'./node_modules/@hyas/bolt-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: [
'lazyloaded',
'table',
'thead',
'tbody',
'tr',
'th',
'td',
'h1',
'h2',
'h3',
'active',
'disabled',
'hidden',
'show',
'img-fluid',
'lazyload',
'blur-up',
'lazyloaded',
'input',
'type',
'checkbox',
'dt',
'dd',
...whitelister([
'./node_modules/@hyas/core/assets/scss/app.scss',
'./node_modules/@hyas/bolt-core/assets/scss/components/_images.scss',
'./assets/scss/**/*.css',
'./assets/scss/**/*.scss',
'./node_modules/@hyas/bolt-core/assets/scss/**/*.scss',
]),
],
}),
Expand Down
5 changes: 5 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ date: 2020-04-17T12:18:10+00:00
lastmod: 2020-04-17T12:18:10+00:00
draft: false
images: []
seo:
title: "Bolt" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---

Bolt is a minimal blog theme for Hyas based on [Bolt.css](https://boltcss.com/).
5 changes: 5 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ date: 2020-04-17T12:17:27+00:00
lastmod: 2020-04-17T12:17:27+00:00
draft: false
images: []
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---
5 changes: 5 additions & 0 deletions content/blog/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ draft: false
weight: 50
images: []
tags: ["Bolt", "Guides"]
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---

Bolt is a minimal blog theme based on [Bolt.css](https://boltcss.com/).
Expand Down
5 changes: 5 additions & 0 deletions content/blog/markdown-basic-syntax/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ draft: false
weight: 50
images: []
tags: ["Bolt", "Markdown", "Cheat sheet"]
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---

This Markdown cheat sheet provides a quick overview of all basic Markdown syntax elements. If you need more information about any of these elements, refer to the reference guide for [basic syntax](https://www.markdownguide.org/basic-syntax).
Expand Down
5 changes: 5 additions & 0 deletions content/blog/markdown-extended-syntax/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ draft: false
weight: 50
images: []
tags: ["Bolt", "Markdown", "Cheat sheet"]
seo:
title: "" # custom title (optional)
description: "" # custom description (recommended)
canonical: "" # custom canonical URL (optional)
noindex: false # false (default) or true
---

This Markdown cheat sheet provides a quick overview of all extended Markdown syntax elements. If you need more information about any of these elements, refer to the reference guide for [extended syntax](https://www.markdownguide.org/extended-syntax).
Expand Down
Loading

0 comments on commit d36de5d

Please sign in to comment.