diff options
author | Gökmen Görgen <gkmngrgn@gmail.com> | 2022-10-02 18:12:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 18:12:48 +0300 |
commit | 9a6e924206ef6e9439dec736b0ebd936666b1deb (patch) | |
tree | eddae179624b76303d2d137ddbc2aa824066492b | |
parent | 713860a22d93577a68a569b967554e34bd6ffe68 (diff) | |
parent | 6d10b6fe4d7cf2da40c27cea7c991e343c31e98f (diff) |
Merge pull request #28 from gkmngrgn/update-dependencies
update all dependencies.
-rw-r--r-- | README.md | 48 | ||||
-rw-r--r-- | layouts/partials/script_highlight.html | 4 | ||||
-rw-r--r-- | layouts/partials/style_highlight.html | 4 | ||||
-rw-r--r-- | static/css/highlight.css | 3 |
4 files changed, 25 insertions, 34 deletions
@@ -1,10 +1,9 @@ # HUGO ALAGEEK THEME alaGeek is an enhanced version of the -[Cocoa](https://github.com/mtn/cocoa-eh-hugo-theme) theme featuring a -customizable homepage with different sections including the latest -posts, syntax highlighting and MathJax support and much more. It's -rewritten with **Bootstrap 5**. +[Cocoa](https://github.com/mtn/cocoa-eh-hugo-theme) theme featuring a customizable +homepage with different sections including the latest posts, syntax highlighting and +MathJax support and much more. It's rewritten with **Bootstrap 5**. ![](/images/screenshot.png) @@ -13,9 +12,8 @@ Websites that are using Hugo with alaGeek theme: - https://alageek.com - https://gokmengorgen.net -_Feel free to open a pull-request to add your website here, I'll check -this list every new version. You don't need to use the latest version -of the theme._ +_Feel free to open a pull-request to add your website here, I'll check this list every +new version. You don't need to use the latest version of the theme._ ## FEATURES @@ -44,14 +42,14 @@ of the theme._ ## DEPENDENCY VERSIONS - bootstrap: 5.2.1 -- highlightjs: 11.4.0 +- highlightjs: 11.6.0 - mathjax: ^3.0.0 - progressively: latest stable version ## TYPOGRAPHY -You can customize the fonts copying and editing `style_main.html` -file. The defaults are: +You can customize the fonts copying and editing `style_main.html` file. The defaults +are: - Title: Merriweather Sans - Content: Merriweather @@ -74,33 +72,29 @@ file. The defaults are: - `header_extra.html` has been renamed `head_extra.html`. - HEAD tags have been moved to `head.html`. - All script lines have been moved to `footer_extra.html`. -- `highlight.css` has been removed and a new partial template - `style_highlight.html` has been created. +- `highlight.css` has been removed and a new partial template `style_highlight.html` has + been created. ### V2.0.0: NEW MARKDOWN PARSERS -If you prefer to use Goldmark instead of Blackfriday for Markdown -parser, you need to set `xhtml: true` for activating `progressively` -extension. Also, you need to set `unsafe: true` if you use Bootstrap -HTML components in Markdown files. Please take a look at [this -document](https://gohugo.io/getting-started/configuration-markup/) for +If you prefer to use Goldmark instead of Blackfriday for Markdown parser, you need to +set `xhtml: true` for activating `progressively` extension. Also, you need to set +`unsafe: true` if you use Bootstrap HTML components in Markdown files. Please take a +look at [this document](https://gohugo.io/getting-started/configuration-markup/) for more information. ### V2.0.0: BOOTSTRAP V5 MIGRATION -If you have a Bootstrap v4 specific customization on your theme, -please take a look at [this -document](https://getbootstrap.com/docs/5.0/migration/) or keep your -theme in the old version v1.5.0. +If you have a Bootstrap v4 specific customization on your theme, please take a look at +[this document](https://getbootstrap.com/docs/5.0/migration/) or keep your theme in the +old version v1.5.0. ## HOW DARK MODE WORKS -It automatically reads your system or browser color scheme and -activates the dark or light mode. If you want to use dark mode in all -cases, copy and move the `main.css` into your static folder keeping -the path, remove light-mode specific colors. +It automatically reads your system or browser color scheme and activates the dark or +light mode. If you want to use dark mode in all cases, copy and move the `main.css` into +your static folder keeping the path, remove light-mode specific colors. ## LICENSE -Licensed under the MIT License. See the LICENSE.md file for more -details. +Licensed under the MIT License. See the LICENSE.md file for more details. diff --git a/layouts/partials/script_highlight.html b/layouts/partials/script_highlight.html index cd2ccb1..9af1b3c 100644 --- a/layouts/partials/script_highlight.html +++ b/layouts/partials/script_highlight.html @@ -1,7 +1,7 @@ -<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> +<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/highlight.min.js"></script> {{ range .Site.Params.highlightjslanguages }} -<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/{{.}}.min.js" defer></script> + <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/languages/{{.}}.min.js" defer></script> {{ end }} <script> diff --git a/layouts/partials/style_highlight.html b/layouts/partials/style_highlight.html index 702e2bb..da3e750 100644 --- a/layouts/partials/style_highlight.html +++ b/layouts/partials/style_highlight.html @@ -1,10 +1,10 @@ <link rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/github.min.css" + href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/styles/github.min.css" /> <link rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/tomorrow-night-bright.min.css" + href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/styles/tomorrow-night-bright.min.css" /> <style> diff --git a/static/css/highlight.css b/static/css/highlight.css deleted file mode 100644 index f0b3a62..0000000 --- a/static/css/highlight.css +++ /dev/null @@ -1,3 +0,0 @@ -@import "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/github.min.css"; -@import "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/styles/tomorrow-night-bright.min.css" - screen and (prefers-color-scheme: dark); |