Commit graph

436 commits

Author SHA1 Message Date
vimux
13e04b3694
CI: Upgrade GitHub Actions
* Bump actions/checkout@v3 to v4
* Bump actions/setup-node@v3 to v4
* Bump peaceiris/actions-hugo@v2 to v3
2024-09-06 09:56:47 -04:00
Vimux
86f1b1987c
BREAKING CHANGE: fix Hugo's .Site.IsServer error ()
As of Hugo 0.120.0, `.Site.IsServer` is deprecated, and starting with Hugo 0.132.0, it causes a build error. Unfortunately, this is a breaking upstream change that we can't "fix" on our end. As a result, we had to raise the minimum supported version to v0.54.0 and implement another workaround to ensure compatibility with older versions, not just Hugo v0.120.0 and all subsequent versions.

Fix 
2024-08-20 12:00:03 -04:00
Jens Winberg
70f97b69b4
Add Finnish translation (i18n/fi.yaml) ()
Added a Finnish translation

Co-authored-by: Vimux <Vimux@users.noreply.github.com>
2024-05-15 09:35:46 -04:00
vimux
ed54a7cc87
Update ci-test.yml: add Hugo 0.123.8
It looks like the issues with Hugo 0.123.* won't affect Mainroad directly, but it is better to monitor this release during theme development and code testing.

The above issue is not the only one; it is a start to digging deeper.
2024-04-11 11:55:36 -04:00
Vimux
122beae93d
Merge pull request from Vimux/optimize-generic-svg
Optimize all generic SVG files

All of our generic SVG files (6) have been optimized. In some cases it was necessary to slightly change the shape of the icons. The main goal was to reduce the maximum size of generic SVG below 300 bytes.

Optimized files should retain their original visuals. Reshaped + optimized files contain only minor shape changes. All in all, it's hard to tell the difference without a direct comparison, or even with one.
2024-04-03 14:03:45 -04:00
vimux
4955cdf09f
Reshape + optimize time.svg icon (262 → 227) 2024-04-03 12:25:19 -04:00
vimux
b92f2550b6
Reshape + optimize tag.svg icon (300 → 222) 2024-04-03 12:25:11 -04:00
vimux
7898810280
Optimize files.svg icon (372 → 266) 2024-04-03 10:34:51 -04:00
vimux
32ec56da72
Reshape + optimize email.svg icon (244 → 170) 2024-04-03 10:25:54 -04:00
vimux
ec5180b69b
Optimize category.svg icon (149 → 145) 2024-04-03 10:17:52 -04:00
vimux
badb426954
Reshape + optimize author.svg icon (245 → 209) 2024-04-03 10:16:22 -04:00
Vimux
de57543354
Improve search widget styling ()
Slightly improve search widget in several areas, mostly look and feel. Nothing fancy, just light touches here and there.

* СSS:
	* Increase font size (11px → 13px)
	* Use pixels for paddings
	* Always outline search input field on focus
* i18n: use capitalized notation for search text
* Remove empty label
2024-01-10 12:41:12 -05:00
Vimux
f6792dab55
Fix deprecated config params (GA, Disqus) ()
As of Hugo 0.120.0, `.Site.disqusShortname` and `.Site.googleAnalytics` are deprecated. Backward
compatible change, new notation supported from Hugo v0.41. See
4ddcf52ccc
2023-12-12 11:32:32 -05:00
Vimux
4a730e9c6c
Remove X-UA-Compatible meta tag ()
As of IE11, "document modes are deprecated and should no longer be used."

Background:
This meta tag is only relevant to the Internet Explorer browser family. IE has
different modes for displaying web pages, allowing you to view HTML pages using
previous versions of rendering rules. `IE=edge` tells Internet Explorer to use
the latest available document mode. However, it is a default mode (IE11) for the
HTML5 doctype declaration.
2023-11-28 08:22:17 -05:00
Vimux
c243571c60
Merge pull request from Vimux/remove-internal-ga-async-include
Remove google_analytics_async.html include
2023-11-16 11:49:09 -05:00
vimux
ce70016f67
Remove google_analytics_async.html include
The internal Hugo template `google_analytics_async.html` no longer works because Google has removed
the version of Google Analytics it uses. The regular internal template (google_analytics.html)
already handles Google Analytics 4 asynchronously.
2023-11-16 11:39:35 -05:00
Vimux
6029a90095
Merge pull request from Vimux/fix-ci-hugo-verbose-option
CI: fix verbose option for Hugo ≥0.114.0
2023-11-13 11:56:13 -05:00
vimux
fd7e3f1dc9
CI: fix verbose option for Hugo ≥0.114.0
From Hugo v0.114.0 `--verbose` option has been deprecated in favor of `--logLevel info`.
Deprecated option causes warning since v0.120.0
2023-11-13 11:47:30 -05:00
Vimux
c6cfa153c5
Merge pull request from Vimux/ci-upgrade-nodejs
Upgrade NodeJS (14.x → 20.x) + update npm dev deps
2023-11-03 14:41:36 -04:00
vimux
a65b53c620
Update npm dev deps
autoprefixer          ^10.4.14  →  ^10.4.16
eslint                 ^8.45.0  →   ^8.52.0
eslint-plugin-import   ^2.27.5  →   ^2.29.0
stylelint             ^15.10.1  →  ^15.11.0
2023-11-03 14:36:54 -04:00
vimux
945afa46fe
CI: upgrade NodeJS (14.x → 20.x)
It's time to move to the active LTS version: NodeJS 20.
2023-11-03 14:20:09 -04:00
Vimux
1cb106bb91
Merge pull request from Vimux/dependabot/npm_and_yarn/postcss-8.4.31
Bump postcss from 8.4.25 to 8.4.31
2023-11-02 10:51:10 -04:00
dependabot[bot]
8dd7358247
Bump postcss from 8.4.25 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.25 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.25...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-07 23:15:01 +00:00
Vimux
af0dc2e120
Merge pull request from hartegg/master-1
Add i18n for Croatian (hr.yaml)
2023-08-20 13:11:59 -04:00
hartegg
017277bd09
Create hr.yaml 2023-08-20 17:25:07 +02:00
vimux
330cbefdb0
Upgrade npm dev deps
autoprefixer          ^10.4.13  →  ^10.4.14
editorconfig-checker    ^4.0.2  →    ^5.1.1
eslint                 ^8.27.0  →   ^8.45.0
eslint-plugin-import   ^2.26.0  →   ^2.27.5
postcss-cli            ^10.0.0  →   ^10.1.0
stylelint-order         ^5.0.0  →    ^6.0.3
2023-07-18 13:13:05 -04:00
Vimux
13f628429a
Merge pull request from Vimux/dependabot/npm_and_yarn/stylelint-15.10.1
Bump stylelint from 15.6.0 to 15.10.1
2023-07-18 12:53:45 -04:00
Vimux
328722919c
Merge pull request from alzawad26/bn-translate
Add Bangla (BN) translation
2023-07-10 10:53:20 -04:00
Abdullah Al Zawad
93155465cb Add Bangla (BN) translation 2023-07-10 03:12:11 +06:00
dependabot[bot]
36ef62e615
Bump stylelint from 15.6.0 to 15.10.1
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.6.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.6.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 22:27:48 +00:00
Vimux
4c82ea8ec7
Merge pull request from Vimux/localize-post-meta-dates
Localize post meta dates
2023-05-31 12:19:03 -04:00
vimux
872c006558
Update docs: add post meta date localization info 2023-05-31 11:42:10 -04:00
vimux
903ae2d032
Localize post meta dates with time.Format function
* Use time.Format function (via `dateFormat` alias) to format post meta dates. It allows dates to be localized easily (with weekdays and months in the current language). Hugo v0.87.0 or later is required.
* Use old default format to preserve compatibility with older versions of Hugo

References:
- https://gohugo.io/functions/dateformat/
- https://gohugo.io/news/0.87.0-relnotes/
2023-05-31 03:18:47 -04:00
Vimux
81795f3149
Merge pull request from Vimux/add-post-meta-info-to-docs
Add post meta information to docs
2023-05-29 13:03:40 -04:00
vimux
0abcf0171c
Add post meta information to docs 2023-05-29 12:47:18 -04:00
Vimux
ec8a1a08c2
Merge pull request from Vimux/dependabot/npm_and_yarn/yaml-and-stylelint-2.2.2
Bump yaml and stylelint
2023-04-25 12:35:11 -04:00
dependabot[bot]
4f082de0f7
Bump yaml and stylelint
Bumps [yaml](https://github.com/eemeli/yaml) to 2.2.2 and updates ancestor dependency [stylelint](https://github.com/stylelint/stylelint). These dependencies need to be updated together.


Updates `yaml` from 2.1.1 to 2.2.2
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v2.1.1...v2.2.2)

Updates `stylelint` from 14.15.0 to 15.6.0
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.15.0...15.6.0)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 23:29:18 +00:00
Vimux
6d2e50083f
Merge pull request from Vimux/fix-docs-cacheable-widgets-missing-taglist
Fix docs: add `taglist` in the cacheable widgets
2023-04-16 05:48:51 -04:00
vimux
2fb006be38
Fix docs: add taglist in the cacheable widgets
One of the widgets (`taglist`) is missing from the list. Although it is clear from the sentence that all of built-in
widgets are cached, this needs to be corrected.
2023-04-16 05:20:11 -04:00
Vimux
e20f0b2b1d
Merge pull request from Vimux/add-widget-caching
Add configurable widget caching
2023-04-15 09:26:37 -04:00
vimux
aa33965522
Add widget caching
* Add widget caching via partialCached
* Update README.md: add cached param
* Update customization guide: add widget caching section
2023-04-06 11:27:59 -04:00
Johan Blomgren
8a539f8baa
Swedish Translation (sv) ()
* Add Swedish Language (sv) for i18n
2023-03-23 13:31:50 +00:00
vimux
e9bce51b09
CI: upgrade checkout and setup-node actions
* actions/checkout@v2 -> actions/checkout@v3
* actions/setup-node@v1 -> actions/setup-node@v3
2023-02-17 11:43:03 -05:00
Vimux
99aa31662c
Merge pull request from Vimux/dependabot/npm_and_yarn/json5-1.0.2
Bump json5 from 1.0.1 to 1.0.2
2023-01-09 21:10:40 +03:00
dependabot[bot]
3c2abaec49
Bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-07 02:28:34 +00:00
Vimux
ea2f1b971e
Merge pull request from thomaslevesque/feature/rel-attribute-in-custom-social-links
Support custom rel attribute in custom social link
2022-11-27 19:07:45 +03:00
Thomas Levesque
acc8fed08e
Address feedback on README.md 2022-11-26 15:02:26 -05:00
Thomas Levesque
7af04a5d47
Update documentation to mention the rel attribute 2022-11-24 12:05:25 -05:00
Thomas Levesque
7afd8fb73b
Support rel=false to not emit the rel attribute 2022-11-23 23:06:14 -05:00
Thomas Levesque
4e6aae1c0f
Support custom rel attribute in custom social link 2022-11-22 20:52:48 -05:00