From 4e8cb65e85122239eaf6b0bffc59c53c99615e01 Mon Sep 17 00:00:00 2001 From: 1BL4Z3R Date: Sun, 9 Jul 2023 21:20:08 +0530 Subject: [PATCH] Add Mastodon Icon --- .github/workflows/cd.yml | 41 +++++++++++++++++++++++++++++++++++++++ README.md | 16 +++++++-------- layouts/partials/svg.html | 2 ++ theme.toml | 14 +++++++++---- 4 files changed, 61 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..62f171d --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,41 @@ +name: Build and Deploy Hugo Site +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build-and-deploy-site: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + + - name: Build site with Hugo + run: hugo --minify + + - name: Check HTML + uses: chabad360/htmlproofer@master + with: + directory: "./public" + arguments: --only-4xx --check-favicon --check-html --assume-extension --empty-alt-ignore --disable-external + continue-on-error: true + + - name: Deploy to GitHub Pages + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public + publish_branch: gh-pages \ No newline at end of file diff --git a/README.md b/README.md index c93e88a..ea17c2a 100755 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # Hugo theme Hermit - V2 -Demo - To be added +### Why Am I maintaing a fork? -I am using Hermit theme for my own personal blog; and I am sad to see that that Hermit is not maintained by original author. I will try to keep soul of the theme as-it-is. Feel free to : -- suggest changes -- report bugs to be squashed -- make this theme great again +Initially, when I started my Blog journey, I was enthralled by this very theme and I am using it since. However, original developer has ceased maintaining the theme and it is riddled with many bugs. Hence, I have taken upon myself to maintain this theme. -Please be kind. This is my first venture. I will try my personal best to not let down. -And I will try to read through OG repo issues and fix them in coming weeks. +I fully intend to keep the essence of the theme as-it-is and only add minor updates and squash bugs which may arise. +> Let's make __Hermit__ great again + +DEMO : --- +# Original README follows below Hermit is a minimal and fast theme for Hugo. It's built for bloggers who want a simple and focused website. @@ -77,7 +77,7 @@ The following icons are supported, please make sure the `name` filed is exactly | `stackoverflow` | `telegram` | `twitter` | `youtube` | | `shutterstock` | `freepik` | `adobestock` | `123rf` | | `dreamstime` | `dribbble` | `behance` | `paypal` | -| `twitch` | `qq` | | | +| `twitch` | `qq` | `mastodon` | | If that's not enough, you can see [Overriding templates](#overriding-templates) section. diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 4f07d5a..4efb03f 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -42,6 +42,8 @@ {{- else if (eq .name "qq") -}} +{{- else if (eq .name "mastodon") -}} + {{- else if (eq .name "rss") -}} {{- else -}} diff --git a/theme.toml b/theme.toml index 843956c..bdef272 100644 --- a/theme.toml +++ b/theme.toml @@ -1,18 +1,24 @@ -name = "Hermit" +name = "Hermit-V2" license = "MIT" licenselink = "https://github.com/Track3/hermit/blob/master/LICENSE" description = "A minimal and fast hugo theme for bloggers." -homepage = "https://github.com/Track3/hermit" -tags = ["blog", "minimal", "dark", "responsive"] +homepage = "https://github.com/1bl4z3r/hermit-V2" +demosite = "https://gohugo.io" +tags = ["blog", "minimal", "dark", "responsive", fast] features = [ "single column", "featured image", "social icons", "google analytics", - "disqus" + "disqus", + "customizable" ] min_version = 0.43 [author] + name = "1BL4Z3R" + homepage = "https://1bl4z3r.cyou" +[original] name = "Track3" homepage = "https://www.xxxlbox.com" + repo = "https://github.com/Track3/hermit"