<%= theme.error_404.title %>
+<%= theme.error_404.description %>
+ <% } %> +diff --git a/_config.cactus.yml b/_config.cactus.yml index 35bac0abc..f0c4e14b4 100644 --- a/_config.cactus.yml +++ b/_config.cactus.yml @@ -18,18 +18,24 @@ nav: articles: /archives/ tag: /tags/ projects: http://github.com/tzzs - Theme: https://imtzz.com/ + Theme: https://tzzs.github.io about: /about/ search: /search/ # Links to your social media accounts. -# The keys should correspond to Fontawesome icon names +# The 'icon' keys should correspond to Fontawesome icon names # (see https://fontawesome.com/icons?d=gallery&s=brands); # only 'mail' is an exception. +# You can optionally add a 'label' key to set the title attribute on the link. +# 'icon' value will be used as title when 'label' is missing. social_links: - github: http://github.com/tzzs - mail: mailto:tzzprc@outlook.com + - + icon: github + link: http://github.com/tzzs + - + icon: mail + link: mailto:tzzprc@outlook.com # Customize the overview with displaying a tagcloud on the index page. # Options: https://hexo.io/docs/helpers.html#tagcloud @@ -65,6 +71,15 @@ copyright: start_year: 2018 end_year: +# Customize the 404 page +# Options: +# - enabled: whether to enable the 404 page (404.html). +error_404: + enabled: true + title: "404 Page Not Found" + description: "The page you are looking for might have been removed, had its name changed, or is temporarily unavailable." + + ############################################################################## # Look and Feel ############################################################################## @@ -140,12 +155,20 @@ open_graph: # Enable MathJax support for Latex mathjax: enabled: false - + # Fill in your Disqus Comments Shortname to enable Disqus comments. disqus: enabled: false shortname: cactus-1 +# Fill in your Utterances data to enable Utterances comments +utterances: + enabled: false + repo: owner/githubrepo + issue_term: pathname + label: Comment + theme: github-dark + # Fill in your Google Analytics tracking ID to enable Google Analytics. google_analytics: enabled: false @@ -166,6 +189,7 @@ umami_analytics: enabled: false id: e77e68be-f6e4-4br3-9365-2b76b57cd571 host: https://analytics.domain.com + script_name: umami.js # Fill in you Gravatar email or hash if you want to use your gravatar as the # logo and/or favicons of you website. @@ -182,6 +206,6 @@ cdn: enable: true jquery: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js clipboard: https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.7/clipboard.min.js - font_awesome: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css + font_awesome: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css justified_gallery_css: https://cdnjs.cloudflare.com/ajax/libs/justifiedGallery/3.8.1/css/justifiedGallery.min.css justified_gallery_js: https://cdnjs.cloudflare.com/ajax/libs/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js diff --git a/themes/cactus/.gitignore b/themes/cactus/.gitignore index bbebef6d7..c06a5bd3a 100644 --- a/themes/cactus/.gitignore +++ b/themes/cactus/.gitignore @@ -6,3 +6,4 @@ yarn.lock package-lock.json node_modules/ +.vscode \ No newline at end of file diff --git a/themes/cactus/README.md b/themes/cactus/README.md index 770070934..19bef5e46 100644 --- a/themes/cactus/README.md +++ b/themes/cactus/README.md @@ -6,11 +6,11 @@ A responsive, clean and simple [Hexo](http://hexo.io) theme for a personal websi ![screenshot](https://user-images.githubusercontent.com/2175271/137625287-24a4ac77-fbc9-4c99-a4cd-90455d93d13c.png) - ## Summary - [General](#general) - [Features](#features) +- [Prerequisites](#prerequisites) - [Install](#install) - [Configuration](#configuration) - [License](#license) @@ -29,44 +29,66 @@ A responsive, clean and simple [Hexo](http://hexo.io) theme for a personal websi - Support for local search - Projects list - I18n support -- Disqus integration +- Disqus / Utterances - Google analytics / Baidu Tongji / [Umami Analytics](https://umami.is) - Font Awesome icons - Simplicity +## Prerequisites + +1. In order to use this theme you must have installed [hexo](https://hexo.io/docs/). + +2. Create the `root` directory for the blog by initializing it with hexo: + + ```sh + $ hexo init my-blog + ``` + +3. Navigate into the new directory: + + ```sh + $ cd my-blog + ``` + ## Install + 1. In the `root` directory: - ```git + ```sh $ git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus ``` -2. Change the `theme` property in the `config.yml` file. +2. Change the `theme` property in the `_config.yml` file. ```yml # theme: landscape theme: cactus ``` - See below for more information on how to customize this theme. - + + See below for more information on how to customize this theme. + 3. Create pages and articles with the `hexo new [layout]
<%= theme.error_404.description %>
+ <% } %> +<%= __('index.find_me_on') %> - <% var nb_links = Object.keys(theme.social_links).length %> + <% var nb_links = theme.social_links.length %> <% var i = 0 %> - <% for(var link in theme.social_links) { %> - <% if (link == 'mail') { %> - - - <% } else if (link == 'rss') { %> - - + <% } else if (icon == 'rss') { %> + + <% } else { %> - - <% } %><%= ( nb_links > 0 && i < nb_links-1 ? diff --git a/themes/cactus/layout/layout.ejs b/themes/cactus/layout/layout.ejs index 7059a92b7..228e44351 100644 --- a/themes/cactus/layout/layout.ejs +++ b/themes/cactus/layout/layout.ejs @@ -5,7 +5,7 @@ <% if (is_post()) { %> <%- partial('_partial/post/actions_desktop') %> <% } %> -