diff --git a/_config.theme.yml b/_config.theme.yml index 714ff88..7af5784 100644 --- a/_config.theme.yml +++ b/_config.theme.yml @@ -8,8 +8,6 @@ logo: /img/logo.svg head: # URL or path to the website's icon favicon: /img/favicon.svg - # Canonical URL of the current page - canonical_url: # Open Graph metadata # https://hexo.io/docs/helpers.html#open-graph open_graph: @@ -68,7 +66,6 @@ head: meta: # Meta tag specified in = style # E.g., name=theme-color;content=#123456 => - - '' # URL or path to the website's RSS atom.xml rss: # Page top navigation bar configurations diff --git a/_config.yml b/_config.yml index 10eb613..782642e 100644 --- a/_config.yml +++ b/_config.yml @@ -36,7 +36,7 @@ external_link: # Open external links in new tab field: post filename_case: 0 render_drafts: false -post_asset_folder: false +post_asset_folder: true relative_link: false future: true highlight: diff --git a/source/_posts/demo/Cyberpunk.md b/source/_posts/demo/Cyberpunk.md new file mode 100644 index 0000000..8f85735 --- /dev/null +++ b/source/_posts/demo/Cyberpunk.md @@ -0,0 +1,48 @@ +title: Cyberpunk Theme Variant +date: 2018-10-22 19:23:58 +tags: +- Demo +variant: cyberpunk +article: + highlight: + theme: qtcreator_dark +thumbnail: /uncategorized/cyberpunk-theme-variant/CP77-KV-en.jpg +--- + +Icarus includes a new variant called Cyberpunk starting from version 3.0.0. +The theme is inspired by the video game [Cyberpunk 2077](https://www.cyberpunk.net/us/en/) +developed by CD PROJEKT RED. +This variant aims at providing a different Icarus experience to these who like dark-themed +blogs. +It should be noted that it uses recent web styling features that are not working properly +in some legacy browsers, including Internet Explorer and legacy Microsoft Edge. + + + +To enable the Cyberpunk theme, please open your theme's `_config.yml` and make the following +change: + +{% codeblock themes/icarus/_config.yml lang:diff %} +- variant: default ++ variant: cyberpunk +{% endcodeblock %} + +You may also want to change the theme of highlighted code blocks. +In that case, you can find some dark highlight.js themes +[here](https://github.com/highlightjs/highlight.js/tree/master/src/styles). +Copy the file name excluding the `.css` extension and put it in the `article.highlight.theme` +option in Icarus' `_config.yml`. +For example, if you want to change the theme to `xt256`, simply make the following edit: + +{% codeblock themes/icarus/_config.yml lang:diff %} +# Article related configurations +article: + highlight: +- theme: atom-one-light ++ theme: xt256 +{% endcodeblock %} + +Apart from the color palette, Icarus also used two image resources taken from the official +website of the game, which are placed on the top navigation bar and bottom page footer. +If you wish to make further modifications to this theme variant, please take a look at +`themes/icarus/source/css/cyberpunk.styl`. diff --git a/source/_posts/demo/Cyberpunk/CP77-KV-en.jpg b/source/_posts/demo/Cyberpunk/CP77-KV-en.jpg new file mode 100644 index 0000000..a2ecab0 Binary files /dev/null and b/source/_posts/demo/Cyberpunk/CP77-KV-en.jpg differ diff --git a/source/_posts/theme/Configuring-Icarus.md b/source/_posts/theme/Configuring-Icarus.md index 5b6b73f..7d9b264 100644 --- a/source/_posts/theme/Configuring-Icarus.md +++ b/source/_posts/theme/Configuring-Icarus.md @@ -1,5 +1,5 @@ title: Configuring Icarus -date: 2018-10-22 19:23:58 +date: 2018-10-22 19:23:57 thumbnail: /gallery/thumbnails/plant.jpg categories: - Configuration diff --git a/themes/icarus b/themes/icarus index 60ec700..06a10cc 160000 --- a/themes/icarus +++ b/themes/icarus @@ -1 +1 @@ -Subproject commit 60ec7005b2e3e1e8ff248722dbdd09244caa1a86 +Subproject commit 06a10cca3c38b4361c2cd9d862e25de8acac2058