Нет описания

Emruz Hossain 69611695e7 Fix search result card layout (#820) 1 год назад
.github acd4f63cda Bump actions/checkout from 4.1.0 to 4.1.1 (#817) 1 год назад
archetypes a2b3c7fda2 Transition to Hugo Image Processing (#173) 4 лет назад
assets fecc0546e6 Fix distorted post card images (issue #808) (#819) 1 год назад
content 69611695e7 Fix search result card layout (#820) 1 год назад
data 5f0aebcf68 Implement proper dark mode (#800) 1 год назад
exampleSite 5f0aebcf68 Implement proper dark mode (#800) 1 год назад
i18n b99f5ada20 Fix italian traslation and uncommented (#736) 2 лет назад
images b9ab0e6f2d [ImgBot] Optimize images (#176) 4 лет назад
layouts bd2181eaca Fix featured post section after update (#807) 1 год назад
static d9eccf58f4 Bundle CSS with Hugo's Sass feature (#705) 2 лет назад
.eslintignore 02db3d3044 Bundling JS with ESBuild (#702) 2 лет назад
.eslintrc.yml 02db3d3044 Bundling JS with ESBuild (#702) 2 лет назад
.gitignore bd10f18553 Added Hugo-Module (#650) 2 лет назад
.prettierrc.yml 02db3d3044 Bundling JS with ESBuild (#702) 2 лет назад
.tool-versions 02db3d3044 Bundling JS with ESBuild (#702) 2 лет назад
LICENSE 482f1b1e2d Initial commit 5 лет назад
README.md 03d263c4a1 Remove re-write warning message (#803) 1 год назад
config.yaml d9eccf58f4 Bundle CSS with Hugo's Sass feature (#705) 2 лет назад
go.mod d3c2c6d1fc Add exampleSite + update module to v4 (#717) 2 лет назад
package-lock.json e35f917370 Bump postcss from 8.4.21 to 8.4.31 (#805) 1 год назад
package.hugo.json 5f0aebcf68 Implement proper dark mode (#800) 1 год назад
package.json e35f917370 Bump postcss from 8.4.21 to 8.4.31 (#805) 1 год назад
theme.toml cefa24409e Update usage guide in README 2 лет назад

README.md

Toha

Netlify Status Build Status Repository Size Lines of Codes Contributor Latest Release Last Commit Open Issues Open Pull Requests License Security Headers This project is using Percy.io for visual regression testing.

A Hugo theme for a personal portfolio with minimalist design and responsiveness.

Thumbnail

Features

  • Minimalist Design
  • Fully Responsive
  • Multiple Language Support
  • Carefully Designed Cards
  • Experience Timeline
  • Achievement Gallery
  • Sidebar to Categorize the Posts
  • Short Codes
  • Analytics Support
    • GoatCounter
    • counter.dev
    • Google Analytics
    • Matomo/Piwik
  • Comment Support

For more details about the features please visit here.

Available Translations

  • English
  • বাংলা
  • Français
  • Indonesian
  • Deutsch
  • Español
  • 简体中文
  • हिन्दी
  • Italiano
  • 日本語
  • 한국어
  • русский
  • suomi
  • Tiếng Việt
  • Turkish
  • Arabic (العربية)
  • Português
  • Català
  • Português Brasileiro

To know more about how to translate your site, please visit here. Follow, the data and post format from this example site.

Screenshots

Here are few screenshots from the example site.

Home Page Sections

Home Page Sections

List Page

List Page

Reading Page

Reading Page

Requirements

  • Hugo Version 0.109.0 (extended) or higher
  • Go language 1.18 or higher (require for hugo modules)
  • Node version v18.x or later and npm 8.x or later.

Usage

The easiest way to use this theme is to fork hugo-toha.github.io sample repo.Then change the configurations according to your need.

If you want to start from scratch, then follow these steps:

1. Initialize Hugo module on you repo

At first, initialize Hugo modules in your repo. This will create a go.mod file.

hugo mod init github.com/<your username>/<your repo name>
2. Add this theme as your module dependency

Now, in your config.yaml file, add a module section.

# Use Hugo modules to add theme
module:
  imports:
  - path: github.com/hugo-toha/toha/v4

Check this sample config.yaml for further reference.

3. Update your module

Now, run this command to load this theme as your module.

hugo mod tidy

Running Locally

Now, you can run your hugo site locally with the following steps:

1. Generate node dependency configuration

Now run the following command to generate node dependency configuration. This will create the a package.json file in you repo.

hugo mod npm pack
2. Install dependencies

Install the node dependencies using following command:

npm install
3. Run your site

Now, run you site locally using following command.

hugo server -w

When you run your site for first time, it will start with the default parameters. It should look similar to the example site. However, it will not have any sections in the homepage as we haven't configured them yet. You can configure your site by following the guides from here.

Shortcodes

Here, are some handy shortcodes you can use with this theme.

Contributing

You can contribute to this theme in various ways. You can report a bug, file an feature request, send a PR, share your thoughts etc.

Pull requests are most welcome and I will be happy to review. Just follow the following principles:

  • Keep it simple.
  • Keep it consistent with the design.
  • Use as few dependencies as possible.
  • Have patience.

I am not a web developer. I have created this theme for my personal needs. So, it is reasonable to have some flaws in the codes. Feel free to open issues and PRs acknowledging the problems.

Local Development

For local development, you can make changes in the theme submodule and test the changes against your own site or this example site locally.

Fork

At first, fork this repo. Then, follow the following steps to use the forked theme for local developments,

Using the forked theme in your own site:

If you want to run your local development against your own site, follow the following steps:

# add the original theme as a submodule of your site if you haven't done already
$ git submodule add https://github.com/hugo-toha/toha.git themes/toha
# navigate into the toha theme folder
$ cd themes/toha
# add your own fork as a remote
$ git remote add my-fork https://github.com/<your-github-user>/toha
# create a new branch for your changes
$ git checkout -b my-feature-branch

Using the forked theme in the example site:

If your want to run your local development against this example site, follow the following steps:

# clone the example site along with the submodules
$ git clone git@github.com:hugo-toha/hugo-toha.github.io.git --recursive
# navigate into the toha theme folder
$ cd themes/toha
# add your own fork as a remote
$ git remote add my-fork https://github.com/<your-github-user>/toha
# create a new branch for your changes
$ git checkout -b my-feature-branch

From there you can make changes to the source code of the theme while testing with your running Hugo site or the example site.

Open a PR

When the changes look good, commit and push them to your fork.

# stage all the changes
$ git add .
# commit the changes with a meaning full commit message
$ git commit -m "A meaningful commit message"
# push the commit to your fork
$ git push my-fork my-feature-branch

Then, open a PR against main branch of hugo-toha/toha from the my-feature-branch branch of your own fork.

Attribution

  • Thanks Anup Deb for his design guidance.
  • Many of the illustrations have been taken from iconscout.