A Hugo theme for a personal portfolio with minimalist design and responsiveness.
Example Site: Toha Example Site
- Minimalist Design
- Fully Responsive
- Carefully designed cards
- Great Experience timeline
- Achievement gallery
- Sidebar to categorize posts
- Short Codes
- Google Analytics Support
- Disqus Comment Support
For more details about the features please visit here.
- Hugo Version 0.68.0 or higher
- Create your site if you haven't already
hugo new site my-site -f=yaml
cd my-site
git init
- Add the theme as git sub-module
git submodule add https://github.com/hossainemruz/toha.git themes/toha
Don't use SSH URL of the theme during adding as git sub-module. Also, don't clone the theme in your
themes
directory usinggit clone
. They don't work well with Github Action or Netlify.
If you want to customize the theme templates, then fork it and use the fork as your theme.
Configure your config.yaml
file of your site as below:
baseURL: http://example.org/
languageCode: en-us
title: "Toha"
theme: "toha"
# Manage languages
# For any more details, you can check the official documentation: https://gohugo.io/content-management/multilingual/
languages:
en:
languageName: English
weight: 1
fr:
languageName: Français
weight: 2
bn:
languageName: বাংলা
weight: 3
# Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
# DefaultContentLanguage: fr
# Allow raw html in markdown file
markup:
goldmark:
renderer:
unsafe: true
tableOfContents:
startLevel: 2
endLevel: 6
ordered: false
# Enable Google Analytics
googleAnalytics: UA-XXXXXXXXX-X
# Enable Disqus forum
disqusShortname: does-not-exist
# Enable global emoji support
enableEmoji: true
# Custom parameters
params:
# background image of the landing page
background: "images/background.jpg"
# Provide logos for your site. The inverted logo will be used in the initial
# transparent navbar and the main logo will be used in the non-transparent navbar.
# It will be default to the theme logos if not provided.
logo:
main: /assets/images/main-logo.png
inverted: /assets/images/inverted-logo.png
favicon: /assets/images/favicon.png
# GitHub repo URL of your site
gitRepo: https://github.com/hossainemruz/toha-example-site
# specify whether you want to write blog post or not
enableBlogPost: true
# specify whether you want to show Table of Contents in reading page
enableTOC: true
# Provide newsletter configuration. This feature hasn't been implemented yet.
# Currently, you can just hide it from the footer.
newsletter:
enable: true
You can just copy the content for config.yaml
files from theme/toha/exampleSite/config.yaml
.
If you want to customize the any of the CSS styles on your site, create a
static/assets/css/style.css
file and add any custom CSS there.
Run your hugo site with this theme.
hugo server -w
When you first run your site, it will start with the default parameters. It should look similar to the example site except it will not have any sections in the homepage. Those sections are added via some data files.
You can configure your site by following the step by step guides from here.
Here, are some handy shortcodes you can use with this theme.
Here, are the current plan and progress of various components of this theme. The components will be prioritized based on users requests.
-
Home
- Configurable Background
- Author Image
- Greeting
- Typing Carousel
-
About
- Name and Designation
- Summary
- Markdown Support
- Social Links
- Font Awesome Support
- Resume Link
- Soft Skills Indicator
-
Skills
- Skill Cards
- Markdown Support
-
Experiences
- Designation
- Timeline
- Company Overview
- Responsibilities
-
Projects
- Category Filter
- Project Card
- Overview
- Markdown Support
- Github Stars
- External URL Support
- Technology Tags
- Overview
-
Recent Posts
-
Publications
- Category Filter
- Card
- Abstract
- Authors
- Tags
- Links
- Gallery
-
Accomplishment / Courses
- Overview
- Certificate
-
Achievements Gallery
- Image
- Summary
- Post Cards
- Sidebar
- Pagination
- Hero Image
- Author Information
- Next & Previous Page Navigation
-
Improve This Page
Button - Disqus Comment
- Option to navigate to list page
- Google Analytics
- Disqus Comment
- Image
- Split Page into Multiple Column
- Vertical space between two sections
- Alert
- Figure & sub-figure
- Tabs
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 just created this theme for my personal needs. So, it is reasonable to have some flaws in the codes. Feel free to open issues and PR acknowledging the problems.
For local development, you can run your own site or the example site locally and make changes in the theme submodule.
Fork this repo and setup your local submodule with the following from the site's folder by running the following
git submodule update --init --recursive --remote
cd themes/toha
git remote add my-fork https://github.com/<your-github-user>/toha
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.
When the changes look good, commit and push them to your fork
git add .
git commit -m "A meaningful commit message"
git push my-fork my-feature-branch
And then open a PR https://github.com/<your-github-user></your-github-user>/toha/pull/new/my-feature-branch