From ae187b6d1b7bb91dbb6179a954283e9c48ff0bcd Mon Sep 17 00:00:00 2001 From: CrepeGoat Date: Wed, 20 Nov 2024 18:45:28 -0700 Subject: [PATCH 1/2] deleted subrepo `themes/hermit-v2` --- .../add-remove-sites-using-hermit-v2.md | 15 - .../.github/ISSUE_TEMPLATE/bug_report.md | 46 - themes/hermit-v2/.gitrepo | 12 - themes/hermit-v2/LICENSE | 20 - themes/hermit-v2/README.md | 176 ---- themes/hermit-v2/archetypes/default.md | 8 - themes/hermit-v2/archetypes/posts.md | 10 - themes/hermit-v2/assets/js/code-copy.js | 60 -- themes/hermit-v2/assets/js/link-share.js | 7 - themes/hermit-v2/assets/js/main.js | 121 --- .../hermit-v2/assets/js/mathjax-assistant.js | 12 - themes/hermit-v2/assets/js/scrollwatcher.js | 1 - themes/hermit-v2/assets/scss/_admonition.scss | 45 - themes/hermit-v2/assets/scss/_animate.scss | 9 - themes/hermit-v2/assets/scss/_colors.scss | 37 - themes/hermit-v2/assets/scss/_fonts.scss | 3 - themes/hermit-v2/assets/scss/_mixins.scss | 17 - themes/hermit-v2/assets/scss/_normalize.scss | 341 ------ themes/hermit-v2/assets/scss/_predefined.scss | 5 - themes/hermit-v2/assets/scss/_scroll.scss | 32 - .../hermit-v2/assets/scss/_socialshare.scss | 34 - themes/hermit-v2/assets/scss/_syntax.scss | 59 -- themes/hermit-v2/assets/scss/_variables.scss | 1 - themes/hermit-v2/assets/scss/style.scss | 994 ------------------ themes/hermit-v2/hugo.toml.example | 146 --- themes/hermit-v2/images/screenshot.jpg | Bin 8306 -> 0 bytes themes/hermit-v2/images/tn.jpg | Bin 7327 -> 0 bytes themes/hermit-v2/layouts/404.html | 13 - .../_markup/render-codeblock-mermaid.html | 5 - themes/hermit-v2/layouts/_default/baseof.html | 54 - themes/hermit-v2/layouts/_default/list.html | 55 - themes/hermit-v2/layouts/_default/single.html | 35 - themes/hermit-v2/layouts/index.html | 32 - .../hermit-v2/layouts/partials/analytics.html | 4 - .../hermit-v2/layouts/partials/brainMade.html | 6 - .../hermit-v2/layouts/partials/comments.html | 4 - themes/hermit-v2/layouts/partials/footer.html | 14 - .../partials/googleTagManager_body.html | 1 - .../partials/googleTagManager_head.html | 1 - themes/hermit-v2/layouts/partials/header.html | 30 - .../layouts/partials/human_made.html | 6 - .../hermit-v2/layouts/partials/mathjax.html | 6 - themes/hermit-v2/layouts/partials/menu.html | 12 - .../hermit-v2/layouts/partials/mermaid.html | 6 - .../layouts/partials/posts_single_info.html | 23 - .../hermit-v2/layouts/partials/readTime.html | 10 - .../layouts/partials/related-posts.html | 11 - .../layouts/partials/scroll-to-top.html | 9 - .../layouts/partials/single-footer.html | 6 - .../hermit-v2/layouts/partials/site-meta.html | 31 - .../layouts/partials/social-icons.html | 3 - .../layouts/partials/social-share.html | 25 - .../layouts/partials/structure-extra.html | 6 - themes/hermit-v2/layouts/partials/svg.html | 506 --------- .../hermit-v2/layouts/partials/webschema.html | 65 -- themes/hermit-v2/layouts/posts/rss.xml | 27 - themes/hermit-v2/layouts/posts/single.html | 78 -- .../layouts/shortcodes/admonition.html | 29 - .../hermit-v2/layouts/shortcodes/figure.html | 103 -- themes/hermit-v2/theme.toml | 28 - 60 files changed, 3455 deletions(-) delete mode 100644 themes/hermit-v2/.github/ISSUE_TEMPLATE/add-remove-sites-using-hermit-v2.md delete mode 100644 themes/hermit-v2/.github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 themes/hermit-v2/.gitrepo delete mode 100644 themes/hermit-v2/LICENSE delete mode 100644 themes/hermit-v2/README.md delete mode 100644 themes/hermit-v2/archetypes/default.md delete mode 100644 themes/hermit-v2/archetypes/posts.md delete mode 100644 themes/hermit-v2/assets/js/code-copy.js delete mode 100644 themes/hermit-v2/assets/js/link-share.js delete mode 100644 themes/hermit-v2/assets/js/main.js delete mode 100644 themes/hermit-v2/assets/js/mathjax-assistant.js delete mode 100644 themes/hermit-v2/assets/js/scrollwatcher.js delete mode 100644 themes/hermit-v2/assets/scss/_admonition.scss delete mode 100644 themes/hermit-v2/assets/scss/_animate.scss delete mode 100644 themes/hermit-v2/assets/scss/_colors.scss delete mode 100644 themes/hermit-v2/assets/scss/_fonts.scss delete mode 100644 themes/hermit-v2/assets/scss/_mixins.scss delete mode 100644 themes/hermit-v2/assets/scss/_normalize.scss delete mode 100644 themes/hermit-v2/assets/scss/_predefined.scss delete mode 100644 themes/hermit-v2/assets/scss/_scroll.scss delete mode 100644 themes/hermit-v2/assets/scss/_socialshare.scss delete mode 100644 themes/hermit-v2/assets/scss/_syntax.scss delete mode 100644 themes/hermit-v2/assets/scss/_variables.scss delete mode 100644 themes/hermit-v2/assets/scss/style.scss delete mode 100644 themes/hermit-v2/hugo.toml.example delete mode 100644 themes/hermit-v2/images/screenshot.jpg delete mode 100644 themes/hermit-v2/images/tn.jpg delete mode 100644 themes/hermit-v2/layouts/404.html delete mode 100644 themes/hermit-v2/layouts/_default/_markup/render-codeblock-mermaid.html delete mode 100644 themes/hermit-v2/layouts/_default/baseof.html delete mode 100644 themes/hermit-v2/layouts/_default/list.html delete mode 100644 themes/hermit-v2/layouts/_default/single.html delete mode 100644 themes/hermit-v2/layouts/index.html delete mode 100644 themes/hermit-v2/layouts/partials/analytics.html delete mode 100644 themes/hermit-v2/layouts/partials/brainMade.html delete mode 100644 themes/hermit-v2/layouts/partials/comments.html delete mode 100644 themes/hermit-v2/layouts/partials/footer.html delete mode 100644 themes/hermit-v2/layouts/partials/googleTagManager_body.html delete mode 100644 themes/hermit-v2/layouts/partials/googleTagManager_head.html delete mode 100644 themes/hermit-v2/layouts/partials/header.html delete mode 100644 themes/hermit-v2/layouts/partials/human_made.html delete mode 100644 themes/hermit-v2/layouts/partials/mathjax.html delete mode 100644 themes/hermit-v2/layouts/partials/menu.html delete mode 100644 themes/hermit-v2/layouts/partials/mermaid.html delete mode 100644 themes/hermit-v2/layouts/partials/posts_single_info.html delete mode 100644 themes/hermit-v2/layouts/partials/readTime.html delete mode 100644 themes/hermit-v2/layouts/partials/related-posts.html delete mode 100644 themes/hermit-v2/layouts/partials/scroll-to-top.html delete mode 100644 themes/hermit-v2/layouts/partials/single-footer.html delete mode 100644 themes/hermit-v2/layouts/partials/site-meta.html delete mode 100644 themes/hermit-v2/layouts/partials/social-icons.html delete mode 100644 themes/hermit-v2/layouts/partials/social-share.html delete mode 100644 themes/hermit-v2/layouts/partials/structure-extra.html delete mode 100644 themes/hermit-v2/layouts/partials/svg.html delete mode 100644 themes/hermit-v2/layouts/partials/webschema.html delete mode 100644 themes/hermit-v2/layouts/posts/rss.xml delete mode 100644 themes/hermit-v2/layouts/posts/single.html delete mode 100644 themes/hermit-v2/layouts/shortcodes/admonition.html delete mode 100644 themes/hermit-v2/layouts/shortcodes/figure.html delete mode 100644 themes/hermit-v2/theme.toml diff --git a/themes/hermit-v2/.github/ISSUE_TEMPLATE/add-remove-sites-using-hermit-v2.md b/themes/hermit-v2/.github/ISSUE_TEMPLATE/add-remove-sites-using-hermit-v2.md deleted file mode 100644 index d7658f8..0000000 --- a/themes/hermit-v2/.github/ISSUE_TEMPLATE/add-remove-sites-using-hermit-v2.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Add/Remove Sites using hermit-V2 -about: Add or remove site to/from Sites using hermit-V2 wiki -title: Add to Sites using hermit-V2 | Remove from Sites using hermit-V2 -labels: hermit-V2 sites -assignees: 1bl4z3r - ---- - -- **Site Name** : [Enter the name for your site] -- **Site URL** : [Enter the url for your site] -- [x] **Add / Edit my site** - _Description_ : [Enter a short description for your site] -- [ ] **Remove my site** - Please remove my site from `Sites using hermit-V2` wiki diff --git a/themes/hermit-v2/.github/ISSUE_TEMPLATE/bug_report.md b/themes/hermit-v2/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 4256337..0000000 --- a/themes/hermit-v2/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Bug report -about: Create a report to help hermit-V2 evolve -title: "[BUG] - " -labels: bug -assignees: 1bl4z3r - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Terminal Output** -Provide terminal output, if applicable. - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Hugo (please complete the following information):** -- Hugo: [e.g. v0.123.8] -- Extended? [e.g. true/yes] -- Latest hermit-V2 theme package? [e.g. true/yes] - -**Additional context** -Add any other context about the problem here. diff --git a/themes/hermit-v2/.gitrepo b/themes/hermit-v2/.gitrepo deleted file mode 100644 index 4342d79..0000000 --- a/themes/hermit-v2/.gitrepo +++ /dev/null @@ -1,12 +0,0 @@ -; DO NOT EDIT (unless you know what you are doing) -; -; This subdirectory is a git "subrepo", and this file is maintained by the -; git-subrepo command. See https://github.com/ingydotnet/git-subrepo#readme -; -[subrepo] - remote = https://github.com/1bl4z3r/hermit-V2 - branch = main - commit = a01afdd69a7dfc2cd5c2813e2b324046f68effe6 - parent = b4d432f7240e51681ec70caccccc997c3965a062 - method = merge - cmdver = 0.4.9 diff --git a/themes/hermit-v2/LICENSE b/themes/hermit-v2/LICENSE deleted file mode 100644 index 518cb07..0000000 --- a/themes/hermit-v2/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Track3 - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/hermit-v2/README.md b/themes/hermit-v2/README.md deleted file mode 100644 index a62d4d1..0000000 --- a/themes/hermit-v2/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Hermit-V2 _- The Minimal Hugo Theme_ - -hermit-V2 is a minimal and fast theme for Hugo, built for bloggers who want a simple and focused website. This is a maintained fork of [Hermit](https://github.com/Track3/hermit), which iterates over the original work to have production-ready experience with bug fixes and new features. - -![](https://raw.githubusercontent.com/1bl4z3r/hermit-V2/main/images/screenshot.jpg) - -## First Impression - -Check out Hermit-V2 : [https://1bl4z3r.github.io/hermit-V2](https://1bl4z3r.github.io/hermit-V2) -This demo also acts as an documentation for the theme, utilizing its powerful features. - -The source for the site is located in [Staging Branch](https://github.com/1bl4z3r/hermit-V2/tree/staging) - -![](https://raw.githubusercontent.com/1bl4z3r/hermit-V2/staging/images/screenshot.gif) - -### Initial Information - -Original theme for Hermit-v2 is, you gussed it, is [Hermit](https://github.com/Track3/hermit). However, it seems [Track3](https://github.com/Track3) isn't maintaining this anymore, which resulted in de-listing from [GoHugo Themes](https://themes.gohugo.io/themes/hermit-v2/) and totally breaks in newer Hugo versions. - -Goal of this project is to keep the essence of theme as-is. We will not diverge too much from the original and keep it as minimal as possible, but include all the tools for you to extend, customize and use this theme as you deem fit. - -### Configuration - -Site Configuration is done through `hugo.toml` or `hugo.yaml` file in root directory of your Hugo Site. To aid you, there is a [hugo.toml.example](https://github.com/1bl4z3r/hermit-V2/blob/main/hugo.toml.example) file located in theme folder. See this configuration for the staging branch [here](https://github.com/1bl4z3r/hermit-V2/blob/staging/hugo.toml). See what each configuration does [here](https://1bl4z3r.github.io/hermit-V2/en/posts/explaining-configs). - -### Installation - -Run this command from the root of your Hugo directory: - -```bash -git clone https://github.com/1bl4z3r/hermit-V2 themes/hermit-v2 -``` - -Or, if your Hugo site is already in git, you can include this repository as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules). This makes it easier to update this theme. For this, you need to run: - -```bash -git submodule add -b main https://github.com/1bl4z3r/hermit-V2 themes/hermit-v2 -``` - -To update submodule and to have the latest version of the theme with your project, run -```bash -git submodule update --remote -``` - -### Sites using hermit-V2 - -__Sites using hermit-V2__ is a user contributed list of all the blogs/pages that is using hermit-V2 in some capacity. It could be any component of the theme from landing page or a partial to full fledged use of the theme. The objective of this section is to : - -- Help new and aspiring bloggers/webmasters to get inspiration from -- Create a sense of community - -You can find currently listed sites from [Sites-using-hermit‐V2](https://github.com/1bl4z3r/hermit-V2/wiki#sites-using-hermit-v2) and you can add your site by raising an [issue](https://github.com/1bl4z3r/hermit-V2/issues/new?assignees=1bl4z3r&labels=hermit-V2+sites&projects=&template=add-remove-sites-using-hermit-v2.md&title=Add+to+Sites+using+hermit-V2). - -## First Use Knowledge - -### Features Inherited from Original Theme - -* A single-column layout and carefully crafted typography offers a great reading experience. -* Navigation and functions are placed in the bottom-bar which will hide when you scroll down. -* Featured image is supported. It will be displayed as a dimmed background of the page. -* Displays all of your posts on a single page, with one section per year, simple and compact. -* Extremely lightweight and load fast. No third party framework, no unnecessary code. -* All code fields feature syntax highlighting and a code-copy function -* Responsive & Retina Ready. Scales gracefully from a big screen all the way down to the smallest mobile phone. Assets in vector format ensures that it looks sharp on high-resolution screens. - -![](https://raw.githubusercontent.com/1bl4z3r/hermit-V2/staging/images/hermit.webp) - -### Custom CSS and JS - -if you feel there is a need to have your own CSS and JS to be added, there is a provision for the same. These custom files should be designed to for a page or few particular pages. E.g. If you make contact form. - -To make use of custom CSS and JS, add the below section to page frontmatter. If there is any folder structure, that should be mentioned as well. - -``` -custom_css = ["custom_css/foo.css","custom_css/bar.css"] -custom_js = ["custom_js/custom-about.js"] -``` - -The files itself will reside in `assets` directory. Refer to [Staging Branch](https://github.com/1bl4z3r/hermit-V2/tree/staging) to have a feel on how [this](https://github.com/1bl4z3r/hermit-V2/blob/staging/content/about-hugo.md) is implemented. - -### Custom styles - -If, for some reason, you want to apply style for the whole theme, which should be seperate from core theme styles, you can add _userstyles.scss_ in `assets/scss/`. If the file exists, it will be imported during build process. - -### Customize theme - -This theme allows to be customized. To customize, copy the respective scss file from the theme to site's `assets/scss/` and edit them to your liking. - -* To customize theme, Scroll to Top button and Admonition colors, copy [__colors.scss_](https://github.com/1bl4z3r/hermit-V2/blob/staging/assets/scss/_colors.scss) -* To customize theme fonts, copy [__fonts.scss_](https://github.com/1bl4z3r/hermit-V2/blob/staging/assets/scss/_fonts.scss) - -### Extend functionality - -Functionality can be extended via layouts. - -Layouts can live in either the project’s (root) or the themes’ layout folders, any template inside the root layout folder will override theme's layout that relative to it, for example: `layouts/_default/baseof.html` will override `themes/hermit-V2/layouts/_default/baseof.html`. So, you can easily customize the theme without edit it directly, which makes updating the theme easier. - -Copy files as required to site's `layouts/partials/` and edit them to fit your needs. - -* To add or modify SVG images used in the theme, copy [_svg.html_](https://github.com/1bl4z3r/hermit-V2/blob/staging/layouts/partials/svg.html) -* To add or modify comment system (default is Disqus), copy [_comments.html_](https://github.com/1bl4z3r/hermit-V2/blob/staging/layouts/partials/comments.html) -* To add or modify custom analytics(default is Google Analytics), copy [_analytics.html_](https://github.com/1bl4z3r/hermit-V2/blob/staging/layouts/partials/analytics.html) -* To inject HTML code to every page's document head or right above the closing body tag ( this makes it easy to add any HTML metadata, custom css/js, DNS-prefetch etc.), create a file at site's _extra-head.html_ or _extra-foot.html_ - -### Favicon - -Use [RealFaviconGenerator](https://realfavicongenerator.net/) to generate these files, put them into your site's `static` folder: - -* android-chrome-192x192.png -* android-chrome-512x512.png -* apple-touch-icon.png -* favicon-16x16.png -* favicon-32x32.png -* favicon.ico -* mstile-150x150.png -* safari-pinned-tab.svg -* site.webmanifest - -#### SVG Favicons - -If your favicon is in SVG format, there are two ways to implement the same in this theme. - -* If you are looking for a clean directory structure, place your favicon as `favicon.svg` in `static` directory. **In this mode, favicon will not be minified by Hugo** -* If you want your generated site to be as light as possible, place your favicon as `favicon.svg` in `assets/images`. **In this mode, favicon will be minified by Hugo** - -### Social icons - -The following icons are supported, please make sure the `name` field is exactly one of these: - -| name | | | | | -|-------------------|--------------|----------------|-----------------|--------------| -| `email` | `codepen` | `facebook` | `github` | `gitlab` | -| `instagram` | `linkedin` | `slack` | `stackoverflow` | `telegram` | -| `twitter (Now X)` | `youtube` | `shutterstock` | `freepik` | `adobestock` | -| `dreamstime` | `dribbble` | `behance` | `123rf` | `paypal` | -| `twitch` | `qq` | `mastodon` | `discord` | `matrix` | -| `etsy` | `tiktok` | `imgur` | `bluesky` | `xmpp` | -| `medium` | `medium old` | `pixelfed` | `ko-fi` | | - - -If that's not enough, you can see [Extend functionality](#extend-functionality) section. - -### Manage content - -* Keep your regular pages in the `content` folder. To create a new page, run `hugo new page-title.md` -* Keep your blog posts in the `content/posts` folder. To create a new post, run `hugo new posts/post-title.md` - -### Customize CSS - -1. **Change predefined colors/effects** - If you'd like to customize theme color or fonts, you can simply override `assets/scss/_predefined.scss`, by simply copy it to site's root (keep the same relative path) then edit those variables. -2. **Change CSS effects limited to single page or few pages** - Add following to your page FrontMatter -`custom_css = ["custom_css/foo.css","custom_css/bar.css"]`, and add the relevant SCSS files in `assets` directory. You may find additional help in [Custom CSS and JS](#custom-css-and-js). -3. **Change css styling sitewide** - If you are unhappy with how the theme looks and feels and want to change some (or all) of it to make it truly your own, you can do so by adding `assets/scss/userstyles.scss` to your site's root and modify Stylesheets to your liking. - -You'll need **Hugo extended version**, which has the ability to rebuild SCSS. You don't have to use extended version in production, but in this case it's necessary to make sure the `resources` folder is committed and "up to date" (by running `hugo` or `hugo server` locally using the extended version). But anyway, always use the extended version if you can. - -### LaTeX in Markdown - -LaTeX is supported by this theme through Mathjax. Please check [explaining-configs](https://1bl4z3r.github.io/hermit-V2/en/posts/explaining-configs/) to learn more. - -### Translations - -This theme is made specifically with translation in mind. Translations of few languages (English, Spanish, French, Italian, German and Chinese Simplified) are provided in [Staging branch](https://github.com/1bl4z3r/hermit-V2/tree/staging/i18n). However, this theme can work without Translation if your content is **English only**. To have translation of your language : - -1. Create translation tables in the i18n directory, naming each file according to RFC 5646. E.g. `i18n/<2-2 Language Code>.toml`. To find your Language code, visit [https://gist.github.com/msikma/8912e62ed866778ff8cd](https://gist.github.com/msikma/8912e62ed866778ff8cd) to get an idea for the code. See [Staging Branch](https://github.com/1bl4z3r/hermit-V2/tree/staging) to see how this is implemented. -2. Copy [English Translation key](https://github.com/1bl4z3r/hermit-V2/blob/staging/i18n/en.toml) and edit to your language. Edit the section `other = ""`. - - -## Acknowledgments - -* [normalize.css](https://necolas.github.io/normalize.css/) - [MIT](https://github.com/necolas/normalize.css/blob/master/LICENSE.md) -* [animate.css](https://daneden.github.io/animate.css/) - [MIT](https://github.com/daneden/animate.css/blob/master/LICENSE) -* [feather](https://feathericons.com/) - [MIT](https://github.com/feathericons/feather/blob/master/LICENSE) -* [code-copy.js](assets/js/code-copy.js) - [Tom Spencer](https://www.fiznool.com/blog/2018/09/14/adding-click-to-copy-buttons-to-a-hugo-powered-blog/) -* [Everyone, who has raised an issue](https://github.com/1bl4z3r/hermit-V2/issues?q=) -* [Everyone, who has submitted a PR](https://github.com/1bl4z3r/hermit-V2/pulls?q=) diff --git a/themes/hermit-v2/archetypes/default.md b/themes/hermit-v2/archetypes/default.md deleted file mode 100644 index 63c1c63..0000000 --- a/themes/hermit-v2/archetypes/default.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true -comments: false -images: ---- - diff --git a/themes/hermit-v2/archetypes/posts.md b/themes/hermit-v2/archetypes/posts.md deleted file mode 100644 index fe05261..0000000 --- a/themes/hermit-v2/archetypes/posts.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true -toc: false -images: -tags: - - untagged ---- - diff --git a/themes/hermit-v2/assets/js/code-copy.js b/themes/hermit-v2/assets/js/code-copy.js deleted file mode 100644 index 5c7db78..0000000 --- a/themes/hermit-v2/assets/js/code-copy.js +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Utils - */ - -// Add code-copy buttons using progressive enhancement -// © 2019. Tom Spencer -// https://www.fiznool.com/blog/2018/09/14/adding-click-to-copy-buttons-to-a-hugo-powered-blog/ -(function() { - 'use strict'; - - if(!document.queryCommandSupported('copy')) { - return; - } - - function flashCopyMessage(el, msg) { - el.textContent = msg; - setTimeout(function() { - el.textContent = "Copy"; - }, 1000); - } - - function selectText(node) { - var selection = window.getSelection(); - var range = document.createRange(); - range.selectNodeContents(node); - selection.removeAllRanges(); - selection.addRange(range); - return selection; - } - - function addCopyButton(containerEl) { - var copyBtn = document.createElement("button"); - copyBtn.className = "highlight-copy-btn"; - copyBtn.textContent = "Copy"; - - var codeEl = containerEl.firstElementChild; - copyBtn.addEventListener('click', function() { - try { - if(codeEl.firstElementChild instanceof HTMLTableElement) { - var selection = selectText(codeEl.firstElementChild.firstElementChild.firstElementChild.lastElementChild); - } else { - var selection = selectText(codeEl); - } - document.execCommand('copy'); - selection.removeAllRanges(); - - flashCopyMessage(copyBtn, 'Copied!') - } catch(e) { - console && console.log(e); - flashCopyMessage(copyBtn, 'Failed :\'(') - } - }); - - containerEl.appendChild(copyBtn); - } - - // Add copy button to code blocks - var highlightBlocks = document.getElementsByClassName('highlight'); - Array.prototype.forEach.call(highlightBlocks, addCopyButton); -})(); diff --git a/themes/hermit-v2/assets/js/link-share.js b/themes/hermit-v2/assets/js/link-share.js deleted file mode 100644 index 674f400..0000000 --- a/themes/hermit-v2/assets/js/link-share.js +++ /dev/null @@ -1,7 +0,0 @@ -async function linkShare(t, u, s){ -let shd = {title: t,text: s,url: u}; -if(typeof navigator.canShare === "function" && navigator.canShare(shd)){ - try {await navigator.share(shd);} catch (er) {console.error(er);} -}else if (navigator?.clipboard?.writeText){ - try {await navigator.clipboard.writeText(u);} catch (err) {console.error(err);} -}else{console.log("Neither WebShare API nor CLipboard API is supported")}} \ No newline at end of file diff --git a/themes/hermit-v2/assets/js/main.js b/themes/hermit-v2/assets/js/main.js deleted file mode 100644 index 8a6feca..0000000 --- a/themes/hermit-v2/assets/js/main.js +++ /dev/null @@ -1,121 +0,0 @@ -// Throttle -// -const throttle = (callback, limit) => { - let timeoutHandler = null; - return () => { - if (timeoutHandler == null) { - timeoutHandler = setTimeout(() => { - callback(); - timeoutHandler = null; - }, limit); - } - }; -}; - -// addEventListener Helper -// -const listen = (ele, e, callback) => { - if (document.querySelector(ele) !== null) { - document.querySelector(ele).addEventListener(e, callback); - } -} - -/** - * Functions - */ - -// Auto Hide Header -// -let header = document.getElementById('site-header'); -let lastScrollPosition = window.pageYOffset; - -const autoHideHeader = () => { - let currentScrollPosition = Math.max(window.pageYOffset, 0); - if (currentScrollPosition > lastScrollPosition) { - header.classList.remove('slideInUp'); - header.classList.add('slideOutDown'); - } else { - header.classList.remove('slideOutDown'); - header.classList.add('slideInUp'); - } - lastScrollPosition = currentScrollPosition; -} - -// Mobile Menu Toggle -// -let mobileMenuVisible = false; - -const toggleMobileMenu = () => { - let mobileMenu = document.getElementById('mobile-menu'); - if (mobileMenuVisible == false) { - mobileMenu.style.animationName = 'bounceInRight'; - mobileMenu.style.webkitAnimationName = 'bounceInRight'; - mobileMenu.style.display = 'block'; - mobileMenuVisible = true; - } else { - mobileMenu.style.animationName = 'bounceOutRight'; - mobileMenu.style.webkitAnimationName = 'bounceOutRight'; - mobileMenu.style.display = 'none'; - mobileMenuVisible = false; - } -} - -// Social Share Toggle -// -let shareMenuVisible = false; -const shareMobileMenu = () => { - let shareMenu = document.getElementById('share-links'); - if (shareMenuVisible == false) { - shareMenu.style.animationName = 'bounceInRight'; - shareMenu.style.webkitAnimationName = 'bounceInRight'; - shareMenu.style.display = 'block'; - shareMenuVisible = true; - } else { - shareMenu.style.animationName = 'bounceOutRight'; - shareMenu.style.webkitAnimationName = 'bounceOutRight'; - shareMenu.style.display = 'none'; - shareMenuVisible = false; - } -} - -// Featured Image Toggle -// -const showImg = () => { - document.querySelector('.bg-img').classList.add('show-bg-img'); -} - -const hideImg = () => { - document.querySelector('.bg-img').classList.remove('show-bg-img'); -} - -// ToC Toggle -// -const toggleToc = () => { - document.getElementById('toc').classList.toggle('show-toc'); -} - - -if (header !== null) { - listen('#menu-btn', "click", toggleMobileMenu); - listen('#share-btn', "click", shareMobileMenu); - listen('#toc-btn', "click", toggleToc); - listen('#img-btn', "click", showImg); - listen('.bg-img', "click", hideImg); - - document.querySelectorAll('.post-year').forEach((ele) => { - ele.addEventListener('click', () => { - window.location.hash = '#' + ele.id; - }); - }); - - window.addEventListener('scroll', throttle(() => { - autoHideHeader(); - - if (mobileMenuVisible == true) { - toggleMobileMenu(); - } - if (shareMenuVisible == true) { - shareMobileMenu(); - } - }, 250)); -} \ No newline at end of file diff --git a/themes/hermit-v2/assets/js/mathjax-assistant.js b/themes/hermit-v2/assets/js/mathjax-assistant.js deleted file mode 100644 index dab8c9e..0000000 --- a/themes/hermit-v2/assets/js/mathjax-assistant.js +++ /dev/null @@ -1,12 +0,0 @@ -MathJax = { - tex: { - displayMath: [['\\[', '\\]'], ['$$', '$$']], // block - inlineMath: [['\\(', '\\)']] // inline - // processEscapes: true, - // processEnvironments: true, - } - // options: { - // skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'], - // enableMenu: false - // } -}; \ No newline at end of file diff --git a/themes/hermit-v2/assets/js/scrollwatcher.js b/themes/hermit-v2/assets/js/scrollwatcher.js deleted file mode 100644 index 3c1aa98..0000000 --- a/themes/hermit-v2/assets/js/scrollwatcher.js +++ /dev/null @@ -1 +0,0 @@ -const scroll=document.querySelector(".scroll-up"),rootElement=document.documentElement;function handleScroll(){rootElement.scrollTop/(rootElement.scrollHeight-rootElement.clientHeight)>.4?(scroll.classList.remove("hide"),scroll.classList.add("show")):(scroll.classList.add("hide"),scroll.classList.remove("show"))}document.addEventListener("scroll",handleScroll); \ No newline at end of file diff --git a/themes/hermit-v2/assets/scss/_admonition.scss b/themes/hermit-v2/assets/scss/_admonition.scss deleted file mode 100644 index d5377f6..0000000 --- a/themes/hermit-v2/assets/scss/_admonition.scss +++ /dev/null @@ -1,45 +0,0 @@ -// Admonition styling -.admonition { - position: relative; - margin: 1rem 0 1.5rem 0; - border-left: 0.25rem solid map-get($admonition-color, "note"); - box-shadow: 5px 5px 10px -5px rgba(0, 0, 0, 0.5); - border-radius: 0 8px 8px 0; - overflow: auto; - .admonition-title { - padding: 0.25rem 0.5rem; - border-bottom: 1px solid map-get($admonition-background, "note"); - background-color: rgba(map-get($admonition-background, "note"), 0.1); - color: map-get($admonition-color, "note"); - .icon { - display: inline-block; - padding: 0 10px 0 0; - font-size: 0.85rem; - color: map-get($admonition-color, "note"); - } - } - .admonition-content { - padding: 0.25rem 0.5rem; - } - @each $type, $color in $admonition-color { - &.#{$type} { - border-left-color: $color; - .admonition-title { - color: $color; - } - .icon { - color: $color; - } - } - } - @each $type, $color in $admonition-background { - &.#{$type} { - background-color: $color; - - .admonition-title { - border-bottom-color: $color; - background-color: rgba($color, 0.1); - } - } - } -} diff --git a/themes/hermit-v2/assets/scss/_animate.scss b/themes/hermit-v2/assets/scss/_animate.scss deleted file mode 100644 index 8856025..0000000 --- a/themes/hermit-v2/assets/scss/_animate.scss +++ /dev/null @@ -1,9 +0,0 @@ - -@charset "UTF-8"; -/*! - * animate.css - https://animate.style/ - * Version - 4.1.0 - * Licensed under the MIT license - http://opensource.org/licenses/MIT - * - * Copyright (c) 2020 Animate.css - */:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{animation-duration:1s;animation-duration:var(--animate-duration);animation-fill-mode:both}.animated.infinite{animation-iteration-count:infinite}.animated.repeat-1{animation-iteration-count:1;animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{animation-iteration-count:2;animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{animation-iteration-count:3;animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{animation-delay:1s;animation-delay:var(--animate-delay)}.animated.delay-2s{animation-delay:2s;animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{animation-delay:3s;animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{animation-delay:4s;animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{animation-delay:5s;animation-delay:calc(var(--animate-delay)*5)}.animated.faster{animation-duration:.5s;animation-duration:calc(var(--animate-duration)/2)}.animated.fast{animation-duration:.8s;animation-duration:calc(var(--animate-duration)*0.8)}.animated.slow{animation-duration:2s;animation-duration:calc(var(--animate-duration)*2)}.animated.slower{animation-duration:3s;animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{animation-duration:1ms!important;transition-duration:1ms!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{animation-name:bounce;transform-origin:center bottom}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}.bounceInRight{animation-name:bounceInRight}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{animation-name:bounceOutRight}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}.slideOutDown{animation-name:slideOutDown} \ No newline at end of file diff --git a/themes/hermit-v2/assets/scss/_colors.scss b/themes/hermit-v2/assets/scss/_colors.scss deleted file mode 100644 index 9f241a1..0000000 --- a/themes/hermit-v2/assets/scss/_colors.scss +++ /dev/null @@ -1,37 +0,0 @@ -// Default Colors -$theme: hsl(172, 99%, 26%) !default; -$text: hsl(204, 28%, 93%) !default; -$light-grey: #494f5c !default; -$dark-grey: #3b3e48 !default; -$highlight-grey: #7d828a !default; -$midnightblue: #2c3e50 !default; -$typewriter: hsl(172, 100%, 36%) !default; -$codebackground: #272822 !default; - -// Scroll to Top Default colors -$stt-stroke: #ccc !default; -$stt-circle: #3b3e48 !default; -$stt-arrow: #018574 !default; - -//Admonition colors -$admonition-background: ( - "note": rgba(68, 138, 255, 0.1), - "info": rgba(0, 184, 212, 0.1), - "tip": rgba(0, 191, 165, 0.1), - "success": rgba(0, 200, 83, 0.1), - "warning": rgba(255, 145, 0, 0.1), - "failure": rgba(255, 82, 82, 0.1), - "danger": rgba(255, 23, 68, 0.1), - "bug": rgba(245, 0, 87, 0.1), - ) !default; - -$admonition-color: ( - "note": #448aff, - "info": #00b8d4, - "tip": #00bfa5, - "success": #00c853, - "warning": #ff9100, - "failure": #ff5252, - "danger": #ff1744, - "bug": #f50057, - ) !default; \ No newline at end of file diff --git a/themes/hermit-v2/assets/scss/_fonts.scss b/themes/hermit-v2/assets/scss/_fonts.scss deleted file mode 100644 index a382984..0000000 --- a/themes/hermit-v2/assets/scss/_fonts.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Default Fonts -$fonts: "Trebuchet MS", Verdana, "Verdana Ref", "Segoe UI", Candara, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif; -$code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, "YaHei Consolas Hybrid", monospace, "Segoe UI Emoji", "PingFang SC", "Microsoft YaHei"; diff --git a/themes/hermit-v2/assets/scss/_mixins.scss b/themes/hermit-v2/assets/scss/_mixins.scss deleted file mode 100644 index 1fe225e..0000000 --- a/themes/hermit-v2/assets/scss/_mixins.scss +++ /dev/null @@ -1,17 +0,0 @@ -@mixin dimmed { - opacity: $dimmed-opacity; -} - -@mixin aTag { - a { - word-wrap: break-word; - border: none; - box-shadow: inset 0 -4px 0 $theme; - transition-property: box-shadow; - transition-duration: 0.1s; - - &:hover { - box-shadow: inset 0 -1em 0 $theme; - } - } -} diff --git a/themes/hermit-v2/assets/scss/_normalize.scss b/themes/hermit-v2/assets/scss/_normalize.scss deleted file mode 100644 index 3d6624c..0000000 --- a/themes/hermit-v2/assets/scss/_normalize.scss +++ /dev/null @@ -1,341 +0,0 @@ -/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ - -/* Document - ========================================================================== */ - -/** - * 1. Correct the line height in all browsers. - * 2. Prevent adjustments of font size after orientation changes in iOS. - */ - -html { - line-height: 1.15; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ -} - -/* Sections - ========================================================================== */ - -/** - * Remove the margin in all browsers. - */ - -body { - margin: 0; -} - -/** - * Correct the font size and margin on `h1` elements within `section` and - * `article` contexts in Chrome, Firefox, and Safari. - */ - -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -/* Grouping content - ========================================================================== */ - -/** - * 1. Add the correct box sizing in Firefox. - * 2. Show the overflow in Edge and IE. - */ - -hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* Text-level semantics - ========================================================================== */ - -/** - * Remove the gray background on active links in IE 10. - */ - -a { - background-color: transparent; -} - -/** - * 1. Remove the bottom border in Chrome 57- - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. - */ - -abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ -} - -/** - * Add the correct font weight in Chrome, Edge, and Safari. - */ - -b, -strong { - font-weight: bolder; -} - -/** - * 1. Correct the inheritance and scaling of font size in all browsers. - * 2. Correct the odd `em` font sizing in all browsers. - */ - -code, -kbd, -samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/** - * Add the correct font size in all browsers. - */ - -small { - font-size: 80%; -} - -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* Embedded content - ========================================================================== */ - -/** - * Remove the border on images inside links in IE 10. - */ - -img { - border-style: none; -} - -/* Forms - ========================================================================== */ - -/** - * 1. Change the font styles in all browsers. - * 2. Remove the margin in Firefox and Safari. - */ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ -} - -/** - * Show the overflow in IE. - * 1. Show the overflow in Edge. - */ - -button, -input { /* 1 */ - overflow: visible; -} - -/** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. - */ - -button, -select { /* 1 */ - text-transform: none; -} - -/** - * Correct the inability to style clickable types in iOS and Safari. - */ - -button, -[type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -/** - * Remove the inner border and padding in Firefox. - */ - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -/** - * Restore the focus styles unset by the previous rule. - */ - -button:-moz-focusring, -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring { - outline: 1px dotted ButtonText; -} - -/** - * Correct the padding in Firefox. - */ - -fieldset { - padding: 0.35em 0.75em 0.625em; -} - -/** - * 1. Correct the text wrapping in Edge and IE. - * 2. Correct the color inheritance from `fieldset` elements in IE. - * 3. Remove the padding so developers are not caught out when they zero out - * `fieldset` elements in all browsers. - */ - -legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ -} - -/** - * Add the correct vertical alignment in Chrome, Firefox, and Opera. - */ - -progress { - vertical-align: baseline; -} - -/** - * Remove the default vertical scrollbar in IE 10+. - */ - -textarea { - overflow: auto; -} - -/** - * 1. Add the correct box sizing in IE 10. - * 2. Remove the padding in IE 10. - */ - -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ -} - -/** - * Correct the cursor style of increment and decrement buttons in Chrome. - */ - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -/** - * 1. Correct the odd appearance in Chrome and Safari. - * 2. Correct the outline style in Safari. - */ - -[type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/** - * Remove the inner padding in Chrome and Safari on macOS. - */ - -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * 1. Correct the inability to style clickable types in iOS and Safari. - * 2. Change font properties to `inherit` in Safari. - */ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* Interactive - ========================================================================== */ - -/* - * Add the correct display in Edge, IE 10+, and Firefox. - */ - -details { - display: block; -} - -/* - * Add the correct display in all browsers. - */ - -summary { - display: list-item; -} - -/* Misc - ========================================================================== */ - -/** - * Add the correct display in IE 10+. - */ - -template { - display: none; -} - -/** - * Add the correct display in IE 10. - */ - -[hidden] { - display: none; -} \ No newline at end of file diff --git a/themes/hermit-v2/assets/scss/_predefined.scss b/themes/hermit-v2/assets/scss/_predefined.scss deleted file mode 100644 index db0bd6b..0000000 --- a/themes/hermit-v2/assets/scss/_predefined.scss +++ /dev/null @@ -1,5 +0,0 @@ -@import "colors"; -@import "fonts"; -@import "admonition"; -@import "variables"; -@import "mixins"; diff --git a/themes/hermit-v2/assets/scss/_scroll.scss b/themes/hermit-v2/assets/scss/_scroll.scss deleted file mode 100644 index 2cb6a05..0000000 --- a/themes/hermit-v2/assets/scss/_scroll.scss +++ /dev/null @@ -1,32 +0,0 @@ -.scroll-up { - .scroll { - #st-ring { - stroke: $stt-stroke; - } - - #st-circle { - fill: $stt-circle; - } - - #st-arrow { - fill: $stt-arrow; - } - } - - position: fixed; - bottom: 10%; - right: 2%; - z-index: 1; - opacity: 0; - transition: all 0.5s ease; -} - -.hide { - opacity: 0; - transform: translateY(20px); -} - -.show { - opacity: 1; - transform: translateY(0); -} diff --git a/themes/hermit-v2/assets/scss/_socialshare.scss b/themes/hermit-v2/assets/scss/_socialshare.scss deleted file mode 100644 index c55f30d..0000000 --- a/themes/hermit-v2/assets/scss/_socialshare.scss +++ /dev/null @@ -1,34 +0,0 @@ -#share-links { - position: fixed; - bottom: 7em; - right: 0.5em; - display: none; - padding: 0.6em 0.5em; - z-index: 1; - box-sizing: border-box; - box-shadow: -1px -2px 3px 0px rgba(0, 0, 0, 0.45); - background-color: $midnightblue; - - ul { - list-style: none; - margin: 0; - padding: 0; - line-height: 2; - font-size: 1.2em; - a { - color: $highlight-grey; - &:hover, - &:active, - &:focus { - color: $text; - } - } - } -} - -@media (max-width: 520px) { - #share-links { - right: 0.2em; - bottom: 8em; - } -} diff --git a/themes/hermit-v2/assets/scss/_syntax.scss b/themes/hermit-v2/assets/scss/_syntax.scss deleted file mode 100644 index a8fee3d..0000000 --- a/themes/hermit-v2/assets/scss/_syntax.scss +++ /dev/null @@ -1,59 +0,0 @@ -/* Background */ .chroma { color: #eee; background-color: $midnightblue } -/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } -/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } -/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } -/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #55595ebb } -/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } -/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } -/* Keyword */ .chroma .k { color: #66d9ef } -/* KeywordConstant */ .chroma .kc { color: #66d9ef } -/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } -/* KeywordNamespace */ .chroma .kn { color: #f92672 } -/* KeywordPseudo */ .chroma .kp { color: #66d9ef } -/* KeywordReserved */ .chroma .kr { color: #66d9ef } -/* KeywordType */ .chroma .kt { color: #66d9ef } -/* NameAttribute */ .chroma .na { color: #a6e22e } -/* NameClass */ .chroma .nc { color: #a6e22e } -/* NameConstant */ .chroma .no { color: #66d9ef } -/* NameDecorator */ .chroma .nd { color: #a6e22e } -/* NameException */ .chroma .ne { color: #a6e22e } -/* NameFunction */ .chroma .nf { color: #a6e22e } -/* NameOther */ .chroma .nx { color: #a6e22e } -/* NameTag */ .chroma .nt { color: #f92672 } -/* Literal */ .chroma .l { color: #ae81ff } -/* LiteralDate */ .chroma .ld { color: #e6db74 } -/* LiteralString */ .chroma .s { color: #e6db74 } -/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } -/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } -/* LiteralStringChar */ .chroma .sc { color: #e6db74 } -/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } -/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } -/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } -/* LiteralStringEscape */ .chroma .se { color: #ae81ff } -/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } -/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } -/* LiteralStringOther */ .chroma .sx { color: #e6db74 } -/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } -/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } -/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } -/* LiteralNumber */ .chroma .m { color: #ae81ff } -/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } -/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } -/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } -/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } -/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } -/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } -/* Operator */ .chroma .o { color: #f92672 } -/* OperatorWord */ .chroma .ow { color: #f92672 } -/* Comment */ .chroma .c { color: #75715e } -/* CommentHashbang */ .chroma .ch { color: #75715e } -/* CommentMultiline */ .chroma .cm { color: #75715e } -/* CommentSingle */ .chroma .c1 { color: #75715e } -/* CommentSpecial */ .chroma .cs { color: #75715e } -/* CommentPreproc */ .chroma .cp { color: #75715e } -/* CommentPreprocFile */ .chroma .cpf { color: #75715e } -/* GenericDeleted */ .chroma .gd { color: #f92672 } -/* GenericEmph */ .chroma .ge { font-style: italic } -/* GenericInserted */ .chroma .gi { color: #a6e22e } -/* GenericStrong */ .chroma .gs { font-weight: bold } -/* GenericSubheading */ .chroma .gu { color: #75715e } diff --git a/themes/hermit-v2/assets/scss/_variables.scss b/themes/hermit-v2/assets/scss/_variables.scss deleted file mode 100644 index 1d20d2b..0000000 --- a/themes/hermit-v2/assets/scss/_variables.scss +++ /dev/null @@ -1 +0,0 @@ -$dimmed-opacity: 0.6 !default; diff --git a/themes/hermit-v2/assets/scss/style.scss b/themes/hermit-v2/assets/scss/style.scss deleted file mode 100644 index 2b65287..0000000 --- a/themes/hermit-v2/assets/scss/style.scss +++ /dev/null @@ -1,994 +0,0 @@ -@import "predefined.scss"; -@import "normalize.scss"; -@import "syntax.scss"; -{{ if ne false .Site.Params.usesAnimation }} -@import "animate.scss"; -{{ end }} -@import "scroll.scss"; -@import "socialshare.scss"; -{{ if (fileExists "assets/scss/userstyles.scss") }} -@import "userstyles.scss"; -{{ end }} - -/* text selection */ -::-moz-selection { - background: $highlight-grey; -} - -::selection { - background: $highlight-grey; -} - -/* Webkit Scrollbar Customize */ -::-webkit-scrollbar { - width: 8px; - height: 8px; - background: $midnightblue; -} - -::-webkit-scrollbar-thumb { - background: #888; - - &:hover { - background: $text; - } -} - -html { - background: $light-grey; - line-height: 1.6; - letter-spacing: .06em; - scroll-behavior: smooth; -} - -body, -button, -input, -select, -textarea { - color: $text; - font-family: $fonts; -} - -pre, -code, -pre tt { - font-family: $code-fonts; -} - -pre { - padding: .7em 1.1em; - font-size: .9em; - line-height: 1.5; - letter-spacing: normal; - white-space: pre; - color: #eee; - background: $midnightblue; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - &.mermaid { - background: $codebackground; - } - code { - padding: 0; - margin: 0; - color: #eee; - background: transparent; - } -} - -code { - color: hsl(0, 1%, 67%); - background: $dark-grey; - border-radius: 3px; - padding: 0 3px; - margin: 0 4px; - word-wrap: break-word; - letter-spacing: normal; -} - -blockquote { - border-left: .25em solid; - margin: 1em; - padding: 0 1em; - font-style: italic; - - cite { - font-weight: bold; - font-style: normal; - - &::before { - content: "—— "; - } - } -} - -a { - color: $text; - text-decoration: none; - border: none; - transition-property: color; - transition-duration: .4s; - transition-timing-function: ease-out; - - &:hover { - color: #fff; - text-shadow: 0 0 1px #fff; - } -} - -hr { - opacity: .2; - border-width: 0 0 5px 0; - border-style: dashed; - background: transparent; - width: 50%; - margin: 1.8em auto; -} - -table { - border-collapse: collapse; - border-spacing: 0; - empty-cells: show; - width: 100%; - max-width: 100%; - - th, - td { - padding: 1.5%; - border: 1px solid; - } - - th { - font-weight: 700; - vertical-align: bottom; - } -} - -.section-inner { - margin: 0 auto; - max-width: 1200px; - width: 93%; -} - -.thin { - max-width: 720px; - margin: auto; -} - -.feather { - display: inline-block; - vertical-align: -.125em; - width: 1em; - height: 1em; -} - -.sub-menu { - font-size: .7em; -} - -.desktop-only, .desktop-only-ib { - display: none; -} - -// Code copy buttons -// - -.highlight { - position: relative; -} - -.highlight div, -.highlight pre { - overflow-x: auto; - border-radius: 4px; - -webkit-overflow-scrolling: touch; -} - -.highlight-copy-btn { - position: absolute; - bottom: 7px; - right: 7px; - border: 0; - border-radius: 4px; - padding: 1px; - font-size: 0.7em; - line-height: 1.8; - color: #fff; - background-color: #777; - opacity: 0.6; - min-width: 55px; - text-align: center; -} - -.highlight-copy-btn:hover { - background-color: #666; -} - -// Accessibility -// -.screen-reader-text { - border: 0; - clip: rect(1px, 1px, 1px, 1px); - clip-path: inset(50%); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute !important; - width: 1px; - word-wrap: normal !important; -} - -.screen-reader-text:focus { - background-color: #f1f1f1; - border-radius: 3px; - box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); - clip: auto !important; - clip-path: none; - color: #21759b; - display: block; - font-size: 0.875rem; - font-weight: bold; - height: auto; - left: 5px; - line-height: normal; - padding: 15px 23px 14px; - text-decoration: none; - top: 5px; - width: auto; - z-index: 100000; -} - -// Header & Footer -// -#site-header { - position: fixed; - z-index: 1; - bottom: 0; - width: 100%; - box-sizing: border-box; - box-shadow: -1px -2px 3px rgba(0, 0, 0, 0.45); - background-color: $dark-grey; - animation-duration: .3s; -} - -.hdr-wrapper { - display: flex; - justify-content: space-between; - align-items: center; - padding: .5em 0; - font-size: 1.2rem; - - .site-branding { - display: inline-block; - margin-right: .8em; - font-size: 1.2em; - } - - .site-nav { - display: inline-block; - font-size: 1.1em; - opacity: .8; - - .has-children { - padding-right: .5em; - border-right: 2px solid $highlight-grey; - } - - .sub-menu > a{ - margin-left: .3em; - } - - a { - margin-left: .8em; - } - } -} - -.hdr-icons { - font-size: 1.2em; -} - -.hdr-links { - display: inline-block; - margin-left: .6em; - - &>a { - margin-left: .4em; - } -} - -.hdr-btn { - border: none; - background: none; - padding: 0; - margin-left: .4em; - cursor: pointer; -} - -#menu-btn { - display: none; - margin-left: .6em; - cursor: pointer; -} - -#mobile-menu { - position: fixed; - bottom: 4.8em; - right: 4.5em; - display: none; - padding: .6em 1.8em; - z-index: 1; - box-sizing: border-box; - box-shadow: -1px -2px 3px 0px rgba(0, 0, 0, 0.45); - background-color: $dark-grey; - - ul { - list-style: none; - margin: 0; - padding: 0; - line-height: 2; - font-size: 1.2em; - } -} - -#site-footer { - text-align: center; - font-size: .9em; - margin-bottom: 96px; - margin-top: 64px; - - p { - margin: 0; - } -} - -// Spotlight -// -#spotlight { - display: flex; - min-height: 100vh; - flex-direction: column; - align-items: center; - justify-content: center; - max-width: 93%; - margin: auto; - font-size: 1.5rem; - - &.error-404 { - flex-direction: row; - line-height: normal; - } -} - -p.img-404 { - margin: 0; - - svg { - width: 180px; - max-width: 100%; - height: auto; - } -} - -.banner-404 { - margin-left: 2em; - - h1 { - font-size: 3em; - margin: .5rem 0; - } - - p { - margin-top: 0; - } - - .btn-404 { - font-size: .8em; - - a { - display: inline-block; - border: 2px solid $text; - border-radius: 5px; - padding: 5px; - transition-property: color, border-color; - - &:first-child { - margin-right: 1em; - } - - &:hover { - border-color: #fff; - } - - svg { - margin-right: .5em; - } - } - } -} - -#home-center { - display: flex; - flex-grow: 1; - flex-direction: column; - justify-content: center; -} - -#home-title { - margin: 0; - text-align: center; -} - -#home-subtitle { - margin-top: 0; - margin-bottom: 1.5em; - text-align: center; - line-height: normal; - font-size: .7em; - font-style: italic; - opacity: .9; -} - -#home-links { - font-size: 1.4em; - text-align: center; - opacity: .8; - - a { - margin: 0 .2em; - } -} - -#home-nav { - opacity: .8; - - a { - display: block; - text-align: center; - margin-top: .5em; - } -} - -#home-footer { - text-align: center; - font-size: .6em; - line-height: normal; - @include dimmed; - - p { - margin-top: 0; - } -} - -// list.html -// -.posts-group { - display: flex; - margin-bottom: 1.9em; - line-height: normal; - - .post-year { - padding-top: 6px; - margin-right: 1.8em; - font-size: 1.6em; - @include dimmed; - - &:hover { - cursor: pointer; - } - } - - .posts-list { - flex-grow: 1; - margin: 0; - padding: 0; - list-style: none; - } - - .post-item { - border-bottom: 1px $highlight-grey dashed; - - a { - display: flex; - justify-content: space-between; - align-items: baseline; - padding: 12px 0; - } - } - - .post-day { - flex-shrink: 0; - margin-left: 1em; - @include dimmed; - } - .post-description { - font-size:x-small; - flex-shrink: 0; - @include dimmed; - } -} - -.pinned-posts-group { - display: flex; - margin-bottom: 1.9em; - line-height: normal; - border-bottom: 2px $highlight-grey solid; - - .pinned-posts-list { - flex-grow: 1; - margin: 0; - padding: 0; - list-style: none; - } - - .pinned-post-item { - display: flex; - justify-content: start; - align-items: baseline; - padding: 12px 0; - - a { - padding-left: 12px; - } - } -} - -// single.html -// -.bg-img { - width: 100vw; - height: 100vh; - opacity: .03; - z-index: -1; - position: fixed; - top: 0; - background-attachment: fixed; - background-repeat: no-repeat; - background-size: cover; - background-position: center; - transition: opacity .5s; -} - -.show-bg-img { - z-index: 100; - opacity: 1; - cursor: pointer; -} - -.post-header { - margin-top: 1.2em; - line-height: normal; - - .post-meta { - font-size: .9em; - letter-spacing: normal; - @include dimmed; - } - - h1 { - margin-top: .1em; - } -} - -hr.post-end { - width: 50%; - margin-top: 1.6em; - margin-bottom: .8em; - margin-left: 0; - border-style: solid; - border-bottom-width: 4px; -} - -.content { - {{- with .Site.Params.justifyContent }} - text-align: justify; - text-justify: inter-ideograph; //For IE/Edge - {{- end }} - - @include aTag; - - figure { - max-width: 100%; - height: auto; - margin: 0; - text-align: center; - - p { - font-size: .8em; - font-style: italic; - @include dimmed; - } - } - - figure.left { - float: left; - margin-right: 1.5em; - max-width: 50%; - } - - figure.right { - float: right; - margin-left: 1.5em; - max-width: 50%; - } - - figure.big { - max-width: 100vw; - } - - img { - display: block; - max-width: 100%; - height: auto; - margin: auto; - border-radius: 4px; - } - - ul, - ol { - padding: 0; - margin-left: 1.8em; - } - - a.anchor { - float: left; - margin-left: -20px; - padding-right: 6px; - box-shadow: none; - opacity: .8; - &:hover { - background: none; - color: $theme; - opacity: 1; - } - - svg { - display: inline-block; - width: 14px; - height: 14px; - vertical-align: baseline; - visibility: hidden; - } - &:focus svg { - visibility: visible; - } - } - - h1:hover a.anchor svg, - h2:hover a.anchor svg, - h3:hover a.anchor svg, - h4:hover a.anchor svg, - h5:hover a.anchor svg, - h6:hover a.anchor svg { - visibility: visible; - } -} - -.footnotes { - font-size: .85em; - - a { - box-shadow: none; - text-decoration: underline; - transition-property: color; - - &:hover { - background: transparent; - } - - &.footnote-backref { - text-decoration: none; - } - } - - ol { - line-height: 1.8; - } -} - -a.footnote-ref { - box-shadow: none; - text-decoration: none; - padding: 2px; - border-radius: 2px; - background-color: $midnightblue; - - &:hover{ - box-shadow: none; - background-color: $theme; - transition-property: background-color; - } -} - -.post-info { - font-size: .8rem; - line-height: normal; - @include dimmed; - - p { - margin: .8em 0; - } - - a:hover { - border-bottom: 1px solid $theme; - } - - svg { - margin-right: .8em; - } - - .tag { - margin-right: .5em; - - &::before { - {{- with .Site.Params.tagSymbol | default "#" -}}content: "{{ . }}"{{- end -}} - } - } - .category { - margin-right: .5em; - - &::before { - {{- with .Site.Params.categorySymbol | default "⊲" -}}content: "{{ . }}"{{- end -}} - } - } -} - -#toc { - position: fixed; - left: 50%; - top: 0; - display: none; -} - -.toc-title { - margin-left: 1em; - margin-bottom: .5em; - font-size: .8em; - font-weight: bold; -} - -#TableOfContents { - font-size: .8em; - @include dimmed; - - ul { - padding-left: 1em; - margin: 0; - } - - &>ul { - list-style-type: none; - - ul ul { - font-size: .9em; - } - } - - a:hover { - border-bottom: $theme 1px solid; - } -} - - -.post-nav { - display: flex; - justify-content: space-between; - margin-top: 1.5em; - margin-bottom: 2.5em; - font-size: 1.2em; - - a { - flex-basis: 50%; - flex-grow: 1; - } - - .next-post {text-align: left; padding-right: 5px;} - .prev-post {text-align: right; padding-left: 5px;} - - .post-nav-label { - font-size: .8em; - opacity: .8; - text-transform: uppercase; - } -} - -.related-posts { - padding: .8em; - margin-top: 1.5em; - font-size: .8rem; - border: 3px dashed rgba(255, 255, 255, .2); - border-radius: 5px; - - h2{ - margin: 0; - line-height: normal; - } - - ul { - margin-top: .5em; - margin-bottom: 0; - } -} - - -// Media Queries -// -@media (min-width: 800px) { - .site-main { - margin-top: 3em; - } - - hr.post-end { - width: 40%; - } -} - -@media (min-width: 960px) { - .site-main { - margin-top: 6em; - } -} - -@media (min-width: 1300px) { - .site-main { - margin-top: 8em; - } - - .desktop-only, - #toc.show-toc { - display: block; - } - - .desktop-only-ib { - display: inline-block; - } - - figure.left { - margin-left: -240px; - p { - text-align: left; - } - } - - figure.right { - margin-right: -240px; - p { - text-align: right; - } - } - - figure.big { - width: 1200px; - margin-left: -240px; - } - - hr.post-end { - width: 30%; - } - - #toc { - top: 13em; - margin-left: 370px; - max-width: 220px; - } -} - -@media (min-width: 1800px) { - .site-main { - margin-top: 10em; - } - - .section-inner { - max-width: 1600px; - } - - .thin { - max-width: 960px; - } - - figure.left { - max-width: 75%; - margin-left: -320px; - } - - figure.right { - max-width: 75%; - margin-right: -320px; - } - - figure.big { - width: 1600px; - margin-left: -320px; - } - - hr.post-end { - width: 30%; - } - - #toc { - top: 15em; - margin-left: 490px; - max-width: 300px; - } -} - -@media (max-width: 760px) { - - .hide-in-mobile, - .site-nav.hide-in-mobile { - display: none; - } - - #menu-btn { - display: inline-block; - } - - .posts-group { - display: block; - - .post-year { - margin: -6px 0 4px; - } - } - - #spotlight.error-404 { - flex-direction: column; - text-align: center; - - .banner-404 { - margin: 0; - } - } -} - -@media (max-width: 520px) { - - .content figure.left, - .content figure.right { - float: unset; - max-width: 100%; - margin: 0; - } - - hr.post-end { - width: 60%; - } - - #mobile-menu { - right: 4.2em; - } - #home-subtitle { - font-size: 0.5em; - } -} - -.human{ - display: flex; - justify-content: flex-end; -} - -// If homeSubtitlePrinter is true -{{ if .Site.Params.homeSubtitlePrinter }} - #home-subtitle{ - overflow: hidden; /* Ensures the content is not revealed until the animation */ - border-right: .5em solid $typewriter; /* The typwriter cursor */ - white-space: nowrap; /* Keeps the content on a single line */ - margin: 0 auto 1.5em auto; /* Gives that scrolling effect as the typing happens */ - // letter-spacing: .100em; /* Adjust as needed */ - animation: typing 5s steps({{ strings.RuneCount .Site.Params.homeSubtitle }}, end),blink-caret .75s linear 5.1s infinite; - } - - /* The typing effect */ - @keyframes typing { - from {max-width: 0;} - to {max-width: 100%;} - } - - /* The typewriter cursor effect */ - @keyframes blink-caret { - from, to { border-color: transparent } - 50% { border-color: $typewriter} - } -{{ end }} diff --git a/themes/hermit-v2/hugo.toml.example b/themes/hermit-v2/hugo.toml.example deleted file mode 100644 index 0ee7054..0000000 --- a/themes/hermit-v2/hugo.toml.example +++ /dev/null @@ -1,146 +0,0 @@ -# THIS IS AN EXAMPLE ON HOW YOU SHOULD CONFIGURE YOUR hugo.toml -# See this hugo.toml in action at https://github.com/1bl4z3r/hermit-V2/blob/staging/hugo.toml -# Example Site is Staging branch, acessible at https://github.com/1bl4z3r/hermit-V2/tree/staging -# To see what each config does, refer to https://1bl4z3r.github.io/hermit-V2/en/posts/explaining-configs/ -# Open Issue or Pull Request at https://github.com/1bl4z3r/hermit-V2 - -baseURL = "CHANGE BASE URL" -defaultContentLanguage = "en" -defaultContentLanguageInSubdir = true -#theme = "hermit-v2" - -#[languages] -# [languages.en] -# title = 'CHANGE ME' -# [languages.en.params] -# homeSubtitle = "CHANGE ME" -# weight = 1 -# [languages.fr] -# title = 'CHANGE ME(FR)' -# [languages.fr.params] -# homeSubtitle = "CHANGE ME" -# weight = 2 -# [languages.it] -# title = 'CHANGE ME(IT)' -# [languages.it.params] -# homeSubtitle = "CHANGE ME" -# weight = 3 - -languageCode = "en-us" - -# title = "CHANGE ME" -# enableGitInfo = true - -pygmentsCodefences = true -pygmentsUseClasses = true -#hasCJKLanguage = true - -rssLimit = 10 - -copyright = "CHANGE ME" -enableEmoji = true - -#[services] -# [services.disqus] -# shortname = '' -# [services.googleAnalytics] -# id = '' - -[frontmatter] -date = ["date", "publishDate", "lastmod"] -lastmod = ["lastmod", ":git", "date", "publishDate"] -publishDate = ["publishDate", "date"] -expiryDate = ["expiryDate"] - - -[params.author] - name = "CHANGE SITE AUTHOR" - about = "CHANGE SITE AUTHOR ABOUT" - -[blackfriday] - # hrefTargetBlank = true - # noreferrerLinks = true - # nofollowLinks = true - -[taxonomies] - tag = "tags" - # Categories are disabled by default. - # category = "categories" - -# Enable to get proper Mathjax support -#[markup] -# [markup.goldmark] -# [markup.goldmark.extensions] -# [markup.goldmark.extensions.passthrough] -# enable = true -# [markup.goldmark.extensions.passthrough.delimiters] -# block = [['\[', '\]'], ['$$', '$$']] -# inline = [['\(', '\)']] - - -[params] - dateform = "Jan 2, 2006" - dateformShort = "Jan 2" - dateformNum = "2006-01-02" - dateformNumTime = "2006-01-02 15:04 -0700" - - # description = "CHANGE ME SITE DESCRIPTION" - # images = [""] - themeColor = "#494f5c" - - #homeSubtitle = "CHANGE ME HOME SUBTITLE" - footerCopyright = "CHANGE ME FOOTER COPYRIGHT" - # footerHideThemeName = false - # bgImg = "" - # gitUrl = "https://github.com/1bl4z3r/hermit-V2/tree/staging" - - justifyContent = false - - relatedPosts = true - code_copy_button = true - - homeSubtitlePrinter = true - scrollToTop = true - global_mathjax = false - readTime = true - readTimeSeparator = "CHANGE ME READ TIME" - # legacyLayout = false - shareSocial = true - # googleTagManager = "GTM-XXXXXXXX" - # tagSymbol = "#" - # categorySymbol = "⊲" - # pinned = "Pinned Posts" - # pinnedSVGname = "pin" - # descriptionInPosts= true - # initialPublish = "Initally Posted on: " - # human = ["single","posts"] - # noIndex = false - # denyRobots = "noindex, nofollow, noarchive" - # allowRobots = "index, follow" - # siteNoIndex = false - # noIndexPages = ["404 Page not found"] - # usesAnimation = true - - [[params.socialLinks]] - name = "mastodon" - url = "https://joinmastodon.org/" - - [[params.socialLinks]] - name = "x" - url = "https://twitter.com/" - - [[params.socialLinks]] - name = "github" - url = "https://github.com/1bl4z3r/hermit-V2/tree/staging" - -[menu] - - [[menu.main]] - name = "Posts" - url = "posts/" - weight = 10 - - [[menu.main]] - name = "About" - url = "about-hugo/" - weight = 20 \ No newline at end of file diff --git a/themes/hermit-v2/images/screenshot.jpg b/themes/hermit-v2/images/screenshot.jpg deleted file mode 100644 index 1d9d4b577a4712e31b59467569edf7e76809ba6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8306 zcmeHMWmHvL*WQOtIfqVZq#Fcj>6AKjcOxaz0#ec`B^`(6c<2&o5Ghgmkcxze2uDhI zx%aI*zCZ6BzTc1U8{^Kkf6TGgeCB%g9DD6O=iJxx*J}V+O-WS=0D;f|)|&xbF9A;h z@Qpyg#H6IeR5X+{RIE(&^h~T`>|8fP3@Rcma&tk|P1O|DOx0stEG%4N@*{&I^Si66 zx(_xEuCK2_|E+`TJ^+G)mVpUH2QdL?5D+>9bUgqF0w4el9RvdYEf|;}G;}O%(BI|X z^8g490~7sv5gVzObY?w%x`qYLG@{ zlykZt2Pij|b6T_*uOo9u4pEmsShbO=oO{x7A6+s4DZbp!EY`58@1C{N&d0uIU#F%0j=7xpBt7(Qca8=!k1lDi@+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SK{V&rLJX(9{nmyPjo)EQO=HH}KtdQS& zLYNpgy`g^!2!h547L>D^CKkAF%@AIc@_Q!;4Fr+_F3I$^0vOx+RGZRN4XxW$jNqLQ zN`6WYyC-CvP#14Yrjv)2)DIf#80bSY$?TP4ZTh=8g6N`xx)bVHZk@V{?O>%wwDvKM z5-Y95yW3}819~Eh%W|&=Xq7jEZpd)nkO9!Ju`&Ni<+mo406LgK?!Jx{282=2t7uv{ zJR;@g?~HE#waWneoIXkvHs@2djCMA5gT?0kA03F-kBY%>Q+^*8IrHfu7?N2r9b;>1 lRW53p#X2*umDb${JCn_Mn$8!AlJ^ecM?W=4<*i;X{0)CLrSkv) diff --git a/themes/hermit-v2/images/tn.jpg b/themes/hermit-v2/images/tn.jpg deleted file mode 100644 index 9e0cf82aac9dfc6ad094f68194e84d51cd707045..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7327 zcmeHMcQoAXm;W-15|J6qXqmz2gcv0ef>A>B-b)yLlo%y?LIk4|C5Ya8?;%J;PxKl= zv>-%8jTGyBf4{T){_*bFJ-hqQp56O>&iUT+x%WQzx%d9_InQ%Gd%g@nR1}pJ0U{#c zA9DU4cmhB!1PY;{qoZMDW?*LIM6s}-IK_GRFFtX7F=?@jrLStLa!18fH5_MQfeX(F z2?)vPC@t;yvhwBp{G8~&yTSP@07_2m2{Hu{p#Wki5eQ0j-UA2$L;#5BLjHNyiyw%D z6iiG+_6PVE^ujKLp48))bq4MMvC#5H}4`#R;HMT;6!$GQ&pk+yP^Wiwjq1S z)*&@}?%;UY;r07UVoHb9cRcO{Ni3=ssWEt4K64^-N|$8tr5;`h*t9P(`kRijt<|zcP;8KDzv*-B9+Y@hRyh@7Vyb0*45~XZfj|NRAUrUP}dM|u~*T0 zyEoK-n{!QV@2L{zZ%#sHIQWykK}cz_I2pnITxl^MR8$R@THRRoY#-9C*vP>c$|q|1 zZ?#&!??Hq~ONbWt>e@3ns>X{+uU|Gshb8;vS9gtIv;dcZAm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cv{gdStAdW!c&_2k&Em+cI=Oe_0YGPX~kdlB{{~^sbOEG_Q|aZXuU_*k9F7C$;Q!q>$Nl64Evzi zo9EcO>6a~N2M+HQ1#HY;08 z0h_f*ikvswU4E&8b*cgfN{n>#Z(K0PR}vCvzl=WhiV^aDSaDMGw`2gwBYl znJL}*(e+i0M8nV2AvVaf5+_~#-i~V+*nDYHXPlvWpwb+|?vQp)V9##a-kQC+5E`I0&A<0tUmj7I1j1y2{U3ew&2O$O?>dk8J0nD?OsoOm#*Rp}li zL@9wU)hO9I@q;kGpQn3KK99hh?!cC3XV_+!EX$prDzA5uyAGE-S5`@pT#lpBJYcFo zbtQvo#q^sjj2vFEwP)nBhe&Ux&R?6T-jdk{DjdV?RPS$m5=&2;9S9fc+_Y{a*CtN` z68g-rX|(4T3@NI4zqNd&VZ7M*W?-!w=(8k21O?-0mfTxM5Rub8c8U#qb835w1h+cm zb7z!)`+*pQ#{Z<2d~|k_1tqx}={3&WCY-GZ<~P0_VyXyhT{zf6V0yth8ozW$ftMe9 zC<=GLh{B`H9F=S#@r!nKUhpMeC~$FU1R^FS{nx7}B4P-X4J|AyryWd#!N(`CTDb-N zgB%eP5y=3@DW9P9(D{(MWLsk?b3((pmK-Gb zAg(2q3T#W3sSvyil0&VGwG4P(hL!VCE;UH`BLdZbt9M?h$i>Sj|xo#v>JG z+G=%awznf~lZJlM{fM-klc#5Mr%M__Qr0e)BPk1g_uTD*3G bJoeu*eK?*EemK%%-TzI-?bF)L^SOTk-Ryw! diff --git a/themes/hermit-v2/layouts/404.html b/themes/hermit-v2/layouts/404.html deleted file mode 100644 index 9fbeae3..0000000 --- a/themes/hermit-v2/layouts/404.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ define "main" }} -
-

{{- partial "svg.html" (dict "context" . "name" "404-lighthouse") -}}

-
-
-{{ end }} diff --git a/themes/hermit-v2/layouts/_default/_markup/render-codeblock-mermaid.html b/themes/hermit-v2/layouts/_default/_markup/render-codeblock-mermaid.html deleted file mode 100644 index a4ac44a..0000000 --- a/themes/hermit-v2/layouts/_default/_markup/render-codeblock-mermaid.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ .Page.Store.Set "hasMermaid" true -}} - -
-  {{- .Inner | safeHTML }}
-
\ No newline at end of file diff --git a/themes/hermit-v2/layouts/_default/baseof.html b/themes/hermit-v2/layouts/_default/baseof.html deleted file mode 100644 index 52acb4c..0000000 --- a/themes/hermit-v2/layouts/_default/baseof.html +++ /dev/null @@ -1,54 +0,0 @@ -{{ $rootCtx := . }} - - - - -{{- if .Site.Params.googleTagManager -}}{{- partial "googleTagManager_head.html" . -}}{{- end -}} -{{- partial "analytics.html" . -}} -{{- partial "site-meta.html" . -}} -{{ $author := (.Params.author | default .Site.Params.author.name) -}} -{{- with .Page.Params.description | default .Site.Params.description -}}{{- end -}} -{{- partial "structure-extra.html" . -}} -{{- partial "webschema.html" . -}} -{{.Title}} -{{ range .AlternativeOutputFormats -}} -{{ printf `` .Rel .MediaType.Type .Permalink $.Title | safeHTML }} -{{ end -}} -{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} - -{{- range .Params.custom_css -}} -{{ $c_css := resources.Get . | resources.ExecuteAsTemplate "css/style.css" $rootCtx | toCSS | minify | fingerprint -}} - -{{- end -}} -{{- block "head" . -}}{{- end -}} -{{- if templates.Exists "partials/extra-head.html" -}}{{- partial "extra-head.html" . -}}{{- end -}} - - -{{- if .Site.Params.googleTagManager -}}{{- partial "googleTagManager_body.html" . -}}{{- end -}} -{{- block "header" . -}}{{ end -}} -{{- block "main" . -}}{{ end -}} -{{- block "footer" . -}}{{ end }} -{{- partial "scroll-to-top.html" . }} -{{- $main := resources.Get "js/main.js" -}} -{{- if .Site.Params.code_copy_button | default true -}} - {{ $codeCopy := resources.Get "js/code-copy.js" -}} - {{ $script := slice $main $codeCopy | resources.Concat "js/bundle.js" | minify | fingerprint -}} - -{{- else -}} - {{ $script := $main | minify | fingerprint -}} - -{{- end -}} -{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}} -{{ $linkshare := resources.Get "js/link-share.js" | minify | fingerprint -}} - -{{- end -}} -{{- range .Params.custom_js -}} -{{ $c_js := resources.Get . | minify | fingerprint -}} - -{{- end }} -{{- partial "mathjax.html" . -}} -{{- partial "mermaid.html" . -}} -{{- if templates.Exists "partials/extra-foot.html" -}}{{- partial "extra-foot.html" . -}}{{- end }} - - - diff --git a/themes/hermit-v2/layouts/_default/list.html b/themes/hermit-v2/layouts/_default/list.html deleted file mode 100644 index 926f101..0000000 --- a/themes/hermit-v2/layouts/_default/list.html +++ /dev/null @@ -1,55 +0,0 @@ -{{ define "header" }} -{{ partialCached "header.html" . }} -{{ end }} - -{{ define "main" }} -
-

{{ .Title }}

- {{- if .Content }} -
- {{ .Content }} -
- {{- end }} - - {{- if and (ge (len (where .Site.Pages ".Params.pin" true)) 1) (.Site.Params.pinned) (not (in .Page.RelPermalink (or "tags" "categories"))) -}} -

{{- .Site.Params.pinned -}}

- {{$pin_name := .Site.Params.pinnedSVGname | default "pin" }} -
-
    - {{- range where .Site.Pages ".Params.pin" true }} -
  • - {{- partial "svg.html" (dict "context" . "name" $pin_name) }} - {{.Title}} -
  • - {{- end }} -
-
- {{- end -}} - {{- range .Data.Pages.GroupByDate "2006" }} - {{ $pages := len (.Pages) }} - {{ $pages_pin := len ( where .Pages ".Params.pin" "eq" true) }} - {{- if gt $pages $pages_pin -}} -
-
{{ .Key }}
- -
- {{- end -}} - {{- end }} -
-{{ end }} - -{{ define "footer" }} -{{ partialCached "footer.html" . }} -{{ end }} diff --git a/themes/hermit-v2/layouts/_default/single.html b/themes/hermit-v2/layouts/_default/single.html deleted file mode 100644 index 34be2d1..0000000 --- a/themes/hermit-v2/layouts/_default/single.html +++ /dev/null @@ -1,35 +0,0 @@ -{{ define "head" }} - {{ if .Params.featuredImg -}} - - {{- else if .Params.images -}} - {{- range first 1 .Params.images -}} - - {{- end -}} - {{- end -}} -{{ end }} - -{{ define "header" }} -{{ partial "header.html" . }} -{{ end }} - -{{ define "main" }} - {{- if (or .Params.images .Params.featuredImg) }} -
- {{- end }} -
-

{{ .Title }}

-
- {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }} -
- {{ partial "brainMade.html" . }} - {{- if .Params.comments }} -
- {{ partial "comments.html" . }} -
- {{- end }} -
-{{ end }} - -{{ define "footer" }} -{{ partialCached "footer.html" . }} -{{ end }} diff --git a/themes/hermit-v2/layouts/index.html b/themes/hermit-v2/layouts/index.html deleted file mode 100644 index cd2912b..0000000 --- a/themes/hermit-v2/layouts/index.html +++ /dev/null @@ -1,32 +0,0 @@ -{{ define "head" }} - {{ if .Site.Params.bgImg -}} - - {{- else if .Site.Params.images -}} - {{- range first 1 .Site.Params.images -}} - - {{- end -}} - {{- end -}} -{{ end }} - -{{ define "main" }} - {{- if (or .Site.Params.images .Site.Params.bgImg) }} -
- {{- end }} -
-
-

{{ .Site.Title }}

- {{- with .Site.Params.homeSubtitle }} -

{{.}}

- {{- end }} - {{- with .Site.Params.socialLinks }} - - {{- end }} - -
- -
-{{ end }} diff --git a/themes/hermit-v2/layouts/partials/analytics.html b/themes/hermit-v2/layouts/partials/analytics.html deleted file mode 100644 index 69c969b..0000000 --- a/themes/hermit-v2/layouts/partials/analytics.html +++ /dev/null @@ -1,4 +0,0 @@ -{{/* Google Analytics 4, use UA-PROPERTY_ID */}} -{{- if .Site.Config.Services.GoogleAnalytics.ID -}} -{{ template "_internal/google_analytics.html" . }} -{{- end -}} diff --git a/themes/hermit-v2/layouts/partials/brainMade.html b/themes/hermit-v2/layouts/partials/brainMade.html deleted file mode 100644 index 0eb2d73..0000000 --- a/themes/hermit-v2/layouts/partials/brainMade.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- if (and (in .Site.Params.human "single") (ne .Type "posts")) -}} -
{{- partial "svg.html" (dict "context" . "name" "brainMade") -}}
-{{- end -}} -{{- if (and (in .Site.Params.human "posts") (eq .Type "posts")) -}} -
{{- partial "svg.html" (dict "context" . "name" "brainMade") -}}
-{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/comments.html b/themes/hermit-v2/layouts/partials/comments.html deleted file mode 100644 index cfe8ea5..0000000 --- a/themes/hermit-v2/layouts/partials/comments.html +++ /dev/null @@ -1,4 +0,0 @@ -{{- if .Site.Config.Services.Disqus.Shortname -}} -{{ template "_internal/disqus.html" . }} -{{- end -}} - diff --git a/themes/hermit-v2/layouts/partials/footer.html b/themes/hermit-v2/layouts/partials/footer.html deleted file mode 100644 index 359aaa7..0000000 --- a/themes/hermit-v2/layouts/partials/footer.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/googleTagManager_body.html b/themes/hermit-v2/layouts/partials/googleTagManager_body.html deleted file mode 100644 index 0031b45..0000000 --- a/themes/hermit-v2/layouts/partials/googleTagManager_body.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/googleTagManager_head.html b/themes/hermit-v2/layouts/partials/googleTagManager_head.html deleted file mode 100644 index 8648b01..0000000 --- a/themes/hermit-v2/layouts/partials/googleTagManager_head.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/header.html b/themes/hermit-v2/layouts/partials/header.html deleted file mode 100644 index 68c435b..0000000 --- a/themes/hermit-v2/layouts/partials/header.html +++ /dev/null @@ -1,30 +0,0 @@ - -
- -
diff --git a/themes/hermit-v2/layouts/partials/human_made.html b/themes/hermit-v2/layouts/partials/human_made.html deleted file mode 100644 index 0eb2d73..0000000 --- a/themes/hermit-v2/layouts/partials/human_made.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- if (and (in .Site.Params.human "single") (ne .Type "posts")) -}} -
{{- partial "svg.html" (dict "context" . "name" "brainMade") -}}
-{{- end -}} -{{- if (and (in .Site.Params.human "posts") (eq .Type "posts")) -}} -
{{- partial "svg.html" (dict "context" . "name" "brainMade") -}}
-{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/mathjax.html b/themes/hermit-v2/layouts/partials/mathjax.html deleted file mode 100644 index 503933b..0000000 --- a/themes/hermit-v2/layouts/partials/mathjax.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ if or (.Site.Params.global_mathjax) (.Params.mathjax) }} - -{{ $mathjaxa := resources.Get "js/mathjax-assistant.js"}} -{{ $mathjaxscript := slice $mathjaxa | resources.Concat "js/mathjaxs.js" | minify | fingerprint -}} - -{{ end }} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/menu.html b/themes/hermit-v2/layouts/partials/menu.html deleted file mode 100644 index 690d2b7..0000000 --- a/themes/hermit-v2/layouts/partials/menu.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- range .Site.Menus.main -}} - {{- if .HasChildren -}} - {{ .Name }} - - {{- range .Children -}} - {{ .Name }} - {{- end -}} - - {{- else -}} - {{ .Name }} - {{- end -}} -{{- end -}} diff --git a/themes/hermit-v2/layouts/partials/mermaid.html b/themes/hermit-v2/layouts/partials/mermaid.html deleted file mode 100644 index 2208d0a..0000000 --- a/themes/hermit-v2/layouts/partials/mermaid.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- if .Page.Store.Get "hasMermaid" -}} - -{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/posts_single_info.html b/themes/hermit-v2/layouts/partials/posts_single_info.html deleted file mode 100644 index 292c598..0000000 --- a/themes/hermit-v2/layouts/partials/posts_single_info.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- with .Params.description }}

{{.}}

{{- end }} -{{- if and .Params.author .Params.authorLink}}{{ $relreflink := relref . .Params.authorLink }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Params.author }}

-{{- else if .Params.author }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Params.author }}

-{{- else }}{{ $relreflink := relref . .Site.Params.author.about }}

{{ partial "svg.html" (dict "context" . "name" "author") }}{{ .Site.Params.author.name }}

-{{- end }} -{{- with .Params.tags }} -

{{- partial "svg.html" (dict "context" . "name" "posts_single_tags") -}}{{- range . -}}{{.}}{{- end }}

-{{- end }} -{{- with .Params.categories }} -

{{- partial "svg.html" (dict "context" . "name" "posts_single_categories") -}}{{- range . -}}{{.}}{{- end }}

-{{- end }} -

{{- partial "svg.html" (dict "context" . "name" "posts_single_wordcount") }}{{ .WordCount }} {{ if fileExists "i18n" -}} {{ i18n "wordCount" . -}} {{- else -}} Words {{- end -}} {{- partial "readTime.html" . -}}

-

{{- partial "svg.html" (dict "context" . "name" "posts_single_date") }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local -}} - {{- if and (not (eq .Page.Params.ShowLastmod nil)) (.Page.Params.ShowLastmod) -}} - {{- if and .GitInfo .Site.Params.gitUrl -}} - [{{- partial "svg.html" (dict "context" . "name" "posts_single_git_commit") -}}{{ .GitInfo.AbbreviatedHash -}} @ {{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local -}}] - {{- else if not (eq .Lastmod .Date ) -}} -  [{{.Site.Params.initialPublish | default "Initial Published on : "}} {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local -}}] - {{- else -}} - {{ errorf "Lastmod is not found in Page Frontmatter or Lastmod is same as Date" }} - {{- end -}} - {{- end -}} -

\ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/readTime.html b/themes/hermit-v2/layouts/partials/readTime.html deleted file mode 100644 index 1881f15..0000000 --- a/themes/hermit-v2/layouts/partials/readTime.html +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Site.Params.readTime }} - {{ .Site.Params.readTimeSeparator }} - {{ $rT := mul (div (.WordCount) 220.0) 60 }} - {{ $rTH := math.Floor (div $rT 3600) }} - {{ $rTM := math.Floor (div (mod $rT 3600) 60) }} - {{ $rTS := mod (mod $rT 3600) 60 }} - {{- if gt $rTH 0 }}{{ $rTH }}{{- cond (gt $rTH 1) " Hours" " Hour" -}}{{- end -}} - {{- if gt $rTM 0 }}{{- cond (gt $rTH 0) ", " "" -}}{{ $rTM }}{{- cond (gt $rTM 1) " Minutes" " Minute" -}}{{- end -}} - {{- if gt $rTS 0 }}{{- cond (gt $rTM 0) ", " "" -}}{{ $rTS }}{{- cond (gt $rTS 1) " Seconds" " Second" -}}{{- end -}} -{{- end }} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/related-posts.html b/themes/hermit-v2/layouts/partials/related-posts.html deleted file mode 100644 index 1ab1f27..0000000 --- a/themes/hermit-v2/layouts/partials/related-posts.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- $related := .Site.RegularPages.Related . | first 5 }} -{{ with $related }} - -{{ end -}} diff --git a/themes/hermit-v2/layouts/partials/scroll-to-top.html b/themes/hermit-v2/layouts/partials/scroll-to-top.html deleted file mode 100644 index 80a5ff9..0000000 --- a/themes/hermit-v2/layouts/partials/scroll-to-top.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ if and (.Site.Params.scrollToTop) (.Params.scrolltotop) }} - - -{{ $scrollwatcher := resources.Get "js/scrollwatcher.js" -}} -{{ $script := $scrollwatcher | minify | fingerprint -}} - -{{ end }} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/single-footer.html b/themes/hermit-v2/layouts/partials/single-footer.html deleted file mode 100644 index f3a3d31..0000000 --- a/themes/hermit-v2/layouts/partials/single-footer.html +++ /dev/null @@ -1,6 +0,0 @@ -

- © {{ now.Format "2006" }} {{ .Site.Params.author.name }} · {{ .Site.Params.footerCopyright | safeHTML }} - {{- with .OutputFormats.Get "RSS" }} - · {{- partial "svg.html" (dict "context" . "name" "rss") -}} - {{- end -}} -

\ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/site-meta.html b/themes/hermit-v2/layouts/partials/site-meta.html deleted file mode 100644 index 4fce7cd..0000000 --- a/themes/hermit-v2/layouts/partials/site-meta.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - -{{- if (or (in .Page.RelPermalink "404") (or .Site.Params.siteNoIndex .Params.noIndex) (in .Site.Params.noIndexPages .Title)) -}} - -{{- else -}} - -{{- end -}} - - -{{- if (fileExists "static/favicon.ico") -}} - -{{- end -}} -{{ $favicon := "images/favicon.svg" }} -{{- if (fileExists (printf "assets/%s" $favicon)) -}} -{{- with resources.Get $favicon | minify -}} - -{{- end -}} -{{- else if (fileExists "static/favicon.svg") -}} - -{{- end -}} - - - - -{{ with .Site.Params.themeColor -}} - - - -{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/social-icons.html b/themes/hermit-v2/layouts/partials/social-icons.html deleted file mode 100644 index b89f265..0000000 --- a/themes/hermit-v2/layouts/partials/social-icons.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ range . -}} -{{ partial "svg.html" . }} -{{- end -}} diff --git a/themes/hermit-v2/layouts/partials/social-share.html b/themes/hermit-v2/layouts/partials/social-share.html deleted file mode 100644 index 06384f9..0000000 --- a/themes/hermit-v2/layouts/partials/social-share.html +++ /dev/null @@ -1,25 +0,0 @@ - - - \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/structure-extra.html b/themes/hermit-v2/layouts/partials/structure-extra.html deleted file mode 100644 index 5693634..0000000 --- a/themes/hermit-v2/layouts/partials/structure-extra.html +++ /dev/null @@ -1,6 +0,0 @@ -{{/* We use some Hugo built-in templates, you can find their source here: */}} -{{/* https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} - -{{- template "_internal/schema.html" . -}} -{{- template "_internal/opengraph.html" . -}} -{{- template "_internal/twitter_cards.html" . -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/svg.html b/themes/hermit-v2/layouts/partials/svg.html deleted file mode 100644 index 274ff00..0000000 --- a/themes/hermit-v2/layouts/partials/svg.html +++ /dev/null @@ -1,506 +0,0 @@ -{{- if (eq .name "codepen") -}} - - - - - - - -{{- else if (eq .name "facebook") -}} - - - -{{- else if (eq .name "pixelfed") -}} - - - - -{{- else if (eq .name "matrix") -}} - - - -{{- else if (eq .name "xmpp") -}} - - - -{{- else if (eq .name "github") -}} - - - - -{{- else if (eq .name "gitlab") -}} - - - - -{{- else if (eq .name "instagram") -}} - - - - - -{{- else if (eq .name "linkedin") -}} - - - - - -{{- else if (eq .name "slack") -}} - - - - - - - -{{- else if (eq .name "stackoverflow") -}} - - - -{{- else if (eq .name "telegram") -}} - - - -{{- else if (eq .name "twitch") -}} - - - -{{- else if (eq .name "twitter") -}} - - - - -{{- else if (eq .name "x") -}} - - - -{{- else if (eq .name "youtube") -}} - - - - - -{{- else if (eq .name "email") -}} - - - - -{{- else if (eq .name "dribbble") -}} - - - - - -{{- else if (eq .name "behance") -}} - - - -{{- else if (eq .name "freepik") -}} - - - - - - -{{- else if (eq .name "adobestock") -}} - - - - -{{- else if (eq .name "shutterstock") -}} - - - - -{{- else if (eq .name "123rf") -}} - - - - -{{- else if (eq .name "dreamstime") -}} - - - -{{- else if (eq .name "paypal") -}} - - - -{{- else if (eq .name "qq") -}} - - - - -{{- else if (eq .name "mastodon") -}} - - - - - -{{- else if (eq .name "rss") -}} - - - - - -{{- else if (eq .name "author") -}} - - - - - -{{- else if (eq .name "scrollup") -}} - - - - - - - - -{{- else if (eq .name "discord") -}} - - - - -{{- else if (eq .name "etsy") -}} - - - -{{- else if (eq .name "tiktok") -}} - - - -{{- else if (eq .name "imgur") -}} - - - -{{- else if (eq .name "bluesky") -}} - - - -{{- else if (eq .name "ko-fi") -}} - - - - - -{{- else if (eq .name "medium") -}} - - - {{- else if (eq .name "medium_alt") -}} - - - - - {{- else if (eq .name "admonition_note") -}} - - - - {{- else if (eq .name "admonition_info") -}} - - - - - - {{- else if (eq .name "admonition_tip") -}} - - - - - - - - - - - - {{- else if (eq .name "admonition_success") -}} - - - - - {{- else if (eq .name "admonition_warning") -}} - - - - - - {{- else if (eq .name "admonition_failure") -}} - - - - - - {{- else if (eq .name "admonition_danger") -}} - - - - - - {{- else if (eq .name "admonition_bug") -}} - - - - - - {{- else if (eq .name "posts_single_wordcount") -}} - - - - - - - - {{- else if (eq .name "posts_single_date") -}} - - - - - - - {{- else if (eq .name "posts_single_git_commit") -}} - - - - - - {{- else if (eq .name "posts_single_categories") -}} - - - - {{- else if (eq .name "posts_single_tags") -}} - - - - - {{- else if (eq .name "share") -}} - - - - - - - - {{- else if (eq .name "share_2") -}} - - - - - {{- else if (eq .name "toc") -}} - - - - - - - - - {{- else if (eq .name "featuredImg") -}} - - - - - - {{- else if (eq .name "menuBtn") -}} - - - - - - {{- else if (eq .name "content-anchor") -}} - - - - - {{- else if (eq .name "next") -}} - - - - - {{- else if (eq .name "previous") -}} - - - - - {{- else if (eq .name "pin") -}} - > - - - {{- else if (eq .name "tool") -}} - - - - - {{- else if (eq .name "404-lighthouse") -}} - - 404-lighthouse - - - - - - - - - - - - - - - - - - - - - - {{- else if (eq .name "404-home") -}} - - - - - {{- else if (eq .name "404-archive") -}} - - - - - - {{- else if (eq .name "brainMade") -}} - - - - - {{- else -}} - - - - - {{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/partials/webschema.html b/themes/hermit-v2/layouts/partials/webschema.html deleted file mode 100644 index faf8fd9..0000000 --- a/themes/hermit-v2/layouts/partials/webschema.html +++ /dev/null @@ -1,65 +0,0 @@ -{{- if .IsHome -}} - -{{- else if .IsPage }} - -{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/posts/rss.xml b/themes/hermit-v2/layouts/posts/rss.xml deleted file mode 100644 index c215c54..0000000 --- a/themes/hermit-v2/layouts/posts/rss.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Params.author.email }} - {{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.author.email }} - {{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{ with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end -}} - {{ range .Pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Params.author.email }}{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{ printf `%s` .Page.Params.description | safeHTML }} - {{ printf `%s` .Content | safeHTML }} - - {{ end }} - - diff --git a/themes/hermit-v2/layouts/posts/single.html b/themes/hermit-v2/layouts/posts/single.html deleted file mode 100644 index e313325..0000000 --- a/themes/hermit-v2/layouts/posts/single.html +++ /dev/null @@ -1,78 +0,0 @@ -{{ define "head" }} - {{ if .Params.featuredImg -}} - - {{- else if .Params.images -}} - {{- range first 1 .Params.images -}} - - {{- end -}} - {{- end -}} -{{ end }} - -{{ define "header" }} -{{ partial "header.html" . }} -{{ end }} - -{{ define "main" }} - {{- if (or .Params.images .Params.featuredImg) }} -
- {{- end }} -
- {{- if and (not (eq .Site.Params.legacyLayout nil)) (.Site.Params.legacyLayout) -}} -
-
- -

{{ .Title }}

-
-
- {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }} -
- {{- if .Site.Params.relatedPosts }} - {{- partial "related-posts.html" . -}} - {{- end }} -
-
{{- partial "posts_single_info.html" . -}}
-
- {{- else -}} -
-
- -

{{ .Title }}

-
- -
-
- {{ .Content | replaceRE "()" `${1}${3}` | safeHTML }} -
- {{ partial "brainMade.html" . }} - {{- if .Site.Params.relatedPosts }} - {{- partial "related-posts.html" . -}} - {{- end }} -
- {{- end -}} - {{- if .Params.toc }} - - {{- end }} -
- {{- with .NextInSection }} - - {{- end }} - {{- with .PrevInSection }} - - {{- end }} -
-
- {{- partial "comments.html" . -}} -
-
-{{ end }} - -{{ define "footer" }} -{{ partialCached "footer.html" . }} -{{ end }} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/shortcodes/admonition.html b/themes/hermit-v2/layouts/shortcodes/admonition.html deleted file mode 100644 index 91bed99..0000000 --- a/themes/hermit-v2/layouts/shortcodes/admonition.html +++ /dev/null @@ -1,29 +0,0 @@ -{{- $inner := .Inner | .Page.RenderString -}} - -{{- if .IsNamedParams -}} - {{- $type := .Get "type" | default "note" -}} - {{ $admonition_name := print "admonition_" $type }} - -{{- else -}} - {{- $type := .Get 0 | default "note" -}} - {{ $admonition_name := print "admonition_" $type }} - -{{- end -}} \ No newline at end of file diff --git a/themes/hermit-v2/layouts/shortcodes/figure.html b/themes/hermit-v2/layouts/shortcodes/figure.html deleted file mode 100644 index 7512c50..0000000 --- a/themes/hermit-v2/layouts/shortcodes/figure.html +++ /dev/null @@ -1,103 +0,0 @@ -{{/* Extending upon [https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html] */}} -{{/* Help from [https://discourse.gohugo.io/t/has-anyone-a-webp-shortcode/35391] */}} -{{- $path := .Get "src" -}} -{{- $link := .Get "link" -}} -{{- $target := .Get "target" -}} -{{- $rel := .Get "rel" -}} -{{- $class := .Get "class" -}} -{{- $alt := .Get "alt" -}} -{{- $attr := .Get "attr" -}} -{{- $attrlink := .Get "attrlink" -}} -{{- $title := .Get "title" -}} -{{- $width := .Get "width" -}} -{{- $height := .Get "height" -}} -{{- $caption := .Get "caption" -}} -{{- $loading := .Get "loading" -}} -{{- $jpg := "" -}} -{{- $webp := "" -}} -{{- $fitOptionstojpg := printf "%vx%v jpg" $width $height -}} -{{- $fitOptionstowebp := printf "%vx%v webp" $width $height -}} - -{{- $msg1 := "The %q shortcode requires a parameter named %q. See %s" -}} -{{- $msg2 := "The resource %q passed to the %q shortcode is not an image. See %s" -}} -{{- $msg3 := "The resource %q passed to the %q shortcode could not be found. See %s" -}} - -{{- if not (findRE `http[s]{0,1}://` $path 1) -}} - - {{ if not $path }} - {{ errorf $msg1 .Name "path" .Position }} - {{ end }} - - - {{- with $i := resources.Get $path -}} - {{- if eq $i.MediaType.MainType "image" -}} - {{- if not $width -}}{{- $width = $i.Width -}}{{- end -}} - {{- if not $height -}}{{- $height = $i.Height -}}{{- end -}} - {{- if eq $i.MediaType "image/webp" -}} - {{- $jpg = $i.Fit $fitOptionstojpg -}} - {{- $webp = $i -}} - {{- else if eq $i.MediaType "image/jpeg" -}} - {{- $webp = $i.Fit $fitOptionstowebp -}} - {{- $jpg = $i -}} - {{- else -}} - {{- $fitOptions := printf "%vx%v jpg" $width $height -}}{{- $jpg = $i.Fit $fitOptions -}} - {{- $fitOptions = printf "%vx%v webp" $width $height -}}{{- $webp = $i.Fit $fitOptions -}} - {{- end -}} - - - {{- if $link -}} - - {{- end -}} - - - - {{ with $alt }}{{ . }}{{ else }}{{ $caption | markdownify| plainify }}{{ end }} - - {{- if $link }}{{ end -}} - {{- if or (or $title $caption) $attr -}} -
- {{ with $title -}}

{{ . }}

{{- end -}} - {{- if or $caption $attr -}}

- {{- $caption | markdownify -}} - {{- with $attrlink }}{{- end -}} - {{- $attr | markdownify -}} - {{- if $attrlink }}{{ end }}

- {{- end }} -
- {{- end -}} - - {{- else -}} - {{- errorf $msg2 $path $.Name $.Position -}} - {{- end -}} - {{- else -}} - {{- errorf $msg3 $path .Name .Position -}} - {{- end -}} - -{{- else -}} - - {{- if $link -}}{{- end -}} - {{ with $alt }}{{ . }}{{ else }}{{ $caption | markdownify| plainify }}{{ end }} - {{- if $link }}{{ end -}} - {{- if or (or $title $caption) $attr -}} -
- {{ with $title -}}

{{ . }}

{{- end -}} - {{- if or $caption $attr -}}

- {{- $caption | markdownify -}} - {{- with $attrlink }}{{- end -}} - {{- $attr | markdownify -}} - {{- if $attrlink }}{{ end }}

- {{- end }} -
- {{- end -}} - - -{{- end -}} diff --git a/themes/hermit-v2/theme.toml b/themes/hermit-v2/theme.toml deleted file mode 100644 index 611c846..0000000 --- a/themes/hermit-v2/theme.toml +++ /dev/null @@ -1,28 +0,0 @@ -name = "Hermit-V2" -license = "MIT" -licenselink = "https://github.com/1bl4z3r/hermit-V2/blob/main/LICENSE" -description = "Continuing Hermit's legacy to be minimal and fast theme" -homepage = "https://github.com/1bl4z3r/hermit-V2" -demosite = "https://1bl4z3r.github.io/hermit-V2/" -tags = ["blog", "minimal", "dark", "responsive", "landing", "dark mode"] -features = [ - "single column", - "featured image", - "social icons", - "google analytics", - "disqus", - "customizable" -] - -[module] - [module.hugoVersion] - extended = true - min = '0.43' - - -[author] - name = "BLZR" - homepage = "https://blzr.sbs" -[original] - name = "Track3" - repo = "https://github.com/Track3/hermit" From ba1fbfd981611ca85e76813ebad1b12b56130bd2 Mon Sep 17 00:00:00 2001 From: CrepeGoat Date: Wed, 20 Nov 2024 18:48:22 -0700 Subject: [PATCH 2/2] added submodule `themes/hermit-v2` --- .gitmodules | 4 ++++ themes/hermit-v2 | 1 + 2 files changed, 5 insertions(+) create mode 100644 .gitmodules create mode 160000 themes/hermit-v2 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9aa6663 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "themes/hermit-v2"] + path = themes/hermit-v2 + url = https://github.com/1bl4z3r/hermit-V2 + branch = main diff --git a/themes/hermit-v2 b/themes/hermit-v2 new file mode 160000 index 0000000..881a5b1 --- /dev/null +++ b/themes/hermit-v2 @@ -0,0 +1 @@ +Subproject commit 881a5b145dfdbb093b60132f03662f8aafb611cc