Skip to content

Commit 2933ae5

Browse files
committed
inserted themes
1 parent 096f4fb commit 2933ae5

File tree

229 files changed

+24249
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+24249
-1
lines changed

themes/toha

-1
This file was deleted.

themes/toha/.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
exampleSite/node_modules
3+
exampleSite/public

themes/toha/.eslintrc.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
extends:
5+
- standard
6+
- plugin:no-jquery/all
7+
- prettier
8+
plugins:
9+
- no-jquery
10+
parserOptions:
11+
ecmaVersion: latest
12+
sourceType: module

themes/toha/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.vscode/
2+
node_modules/
3+
.DS_Store
4+
.history/
5+
resources/
6+
public/
7+
.hugo_build.lock

themes/toha/.prettierrc.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
printWidth: 100
2+
tabWidth: 2
3+
semi: false
4+
singleQuote: true
5+
trailingComma: "all"

themes/toha/.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 18.12.1

themes/toha/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Md. Emruz Hossain
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

themes/toha/README.md

+282
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
> [!IMPORTANT]
2+
> If you are migrating from v3 (`git submodule` based) theme to v4 (`hugo modules` based) theme, please read this [migration guide](https://toha-guides.netlify.app/posts/update-v3-to-v4/).
3+
4+
# Toha
5+
6+
[![Netlify Status](https://api.netlify.com/api/v1/badges/b1b93b02-f278-440b-ae1b-304e9f4c4ab5/deploy-status)](https://app.netlify.com/sites/toha/deploys)
7+
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fhugo-toha%2Ftoha%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=main)
8+
![Repository Size](https://img.shields.io/github/repo-size/hugo-toha/toha)
9+
![Lines of Codes](https://img.shields.io/tokei/lines/github.com/hugo-toha/toha)
10+
![Contributor](https://img.shields.io/github/contributors/hugo-toha/toha)
11+
![Latest Release](https://img.shields.io/github/v/release/hugo-toha/toha?include_prereleases)
12+
![Last Commit](https://img.shields.io/github/last-commit/hugo-toha/toha)
13+
![Open Issues](https://img.shields.io/github/issues/hugo-toha/toha?color=important)
14+
![Open Pull Requests](https://img.shields.io/github/issues-pr/hugo-toha/toha?color=yellowgreen)
15+
![License](https://img.shields.io/github/license/hugo-toha/toha)
16+
![Security Headers](https://img.shields.io/security-headers?url=https%3A%2F%2Fhugo-toha.github.io%2F)
17+
[![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/b7cb60ab/hugo-toha.github.io)
18+
19+
A [Hugo](https://gohugo.io/) theme for a personal portfolio with minimalist design and responsiveness.
20+
21+
![Thumbnail](https://raw.githubusercontent.com/hugo-toha/toha/main/images/screenshot.png)
22+
23+
- **Example Site:** [hugo-toha.github.io](https://hugo-toha.github.io)
24+
- **Documentation:** [toha-guides.netlify.app](https://toha-guides.netlify.app/posts)
25+
26+
## Features
27+
28+
- Minimalist Design
29+
- Fully Responsive
30+
- Multiple Language Support
31+
- Carefully Designed Cards
32+
- Experience Timeline
33+
- Achievement Gallery
34+
- Sidebar to Categorize the Posts
35+
- Short Codes
36+
- Analytics Support
37+
- GoatCounter
38+
- counter.dev
39+
- Google Analytics
40+
- Matomo/Piwik
41+
- [Umami](https://umami.is/)
42+
- Comment Support
43+
- [Disqus](https://disqus.com/)
44+
- [Valine](https://valine.js.org/)
45+
- [Uttarances](https://utteranc.es/)
46+
- [Giscus](https://giscus.app/)
47+
48+
For more details about the features please visit [here](https://toha-guides.netlify.app/posts/features/).
49+
50+
## Available Translations
51+
52+
- English
53+
- বাংলা
54+
- Français
55+
- Indonesian
56+
- Deutsch
57+
- Español
58+
- 简体中文
59+
- हिन्दी
60+
- Italiano
61+
- 日本語
62+
- 한국어
63+
- русский
64+
- suomi
65+
- Tiếng Việt
66+
- Turkish
67+
- Arabic (العربية)
68+
- Português Europeu
69+
- Català
70+
- Português Brasileiro
71+
- Nederlands
72+
- Hebrew
73+
74+
To know more about how to translate your site, please visit [here](https://toha-guides.netlify.app/posts/translation/). Follow, the data and post format from this [example site](https://hugo-toha.github.io).
75+
76+
## Screenshots
77+
78+
Here are few screenshots from the [example site](https://hugo-toha.github.io).
79+
80+
##### Home Page Sections
81+
82+
![Home Page Sections](https://raw.githubusercontent.com/hugo-toha/toha/main/images/about.png)
83+
84+
##### List Page
85+
86+
![List Page](https://raw.githubusercontent.com/hugo-toha/toha/main/images/list.png)
87+
88+
##### Reading Page
89+
90+
![Reading Page](https://raw.githubusercontent.com/hugo-toha/toha/main/images/single.png)
91+
92+
## Requirements
93+
94+
- Hugo Version 0.118.0 (extended) or higher
95+
- Go language 1.18 or higher (require for hugo modules)
96+
- Node version v18.x or later and npm 8.x or later.
97+
98+
## Usage
99+
100+
The easiest way to use this theme is to fork [hugo-toha.github.io](https://github.com/hugo-toha/hugo-toha.github.io) sample repo.Then change the configurations according to your need.
101+
102+
If you want to start from scratch, then follow these steps:
103+
104+
##### 1. Initialize Hugo module on you repo
105+
106+
At first, initialize [Hugo modules](https://gohugo.io/hugo-modules/) in your repo. This will create a `go.mod` file.
107+
108+
```bash
109+
hugo mod init github.com/<your username>/<your repo name>
110+
```
111+
112+
##### 2. Add this theme as your module dependency
113+
114+
Now, in your `hugo.yaml` file, add a `module` section.
115+
116+
```yaml
117+
# Use Hugo modules to add theme
118+
module:
119+
imports:
120+
- path: github.com/hugo-toha/toha/v4
121+
```
122+
123+
Check this sample [hugo.yaml](https://github.com/hugo-toha/hugo-toha.github.io/blob/main/hugo.yaml) for further reference.
124+
125+
##### 3. Update your module
126+
127+
Now, run this command to load this theme as your module.
128+
129+
```bash
130+
hugo mod tidy
131+
```
132+
133+
#### Running Locally
134+
135+
Now, you can run your hugo site locally with the following steps:
136+
137+
##### 1. Generate node dependency configuration
138+
139+
Now run the following command to generate node dependency configuration. This will create the a `package.json` file in you repo.
140+
141+
```bash
142+
hugo mod npm pack
143+
```
144+
145+
##### 2. Install dependencies
146+
147+
Install the node dependencies using following command:
148+
```bash
149+
npm install
150+
```
151+
152+
##### 3. Run your site
153+
154+
Now, run you site locally using following command.
155+
156+
```bash
157+
hugo server -w
158+
```
159+
160+
When you run your site for first time, it will start with the default parameters. It should look similar to the [example site](https://hugo-toha.github.io). 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](https://toha-guides.netlify.app/posts/configuration/).
161+
162+
## Shortcodes
163+
164+
Here, are some handy shortcodes you can use with this theme.
165+
166+
- [Alert](https://toha-guides.netlify.app/posts/shortcodes/#alert)
167+
- [Image](https://toha-guides.netlify.app/posts/shortcodes/#image)
168+
- [Split](https://toha-guides.netlify.app/posts/shortcodes/#split)
169+
- [Vertical Space](https://toha-guides.netlify.app/posts/shortcodes/#vertical-space)
170+
- [Video](https://toha-guides.netlify.app/posts/shortcodes/#video)
171+
- [Mermaid](https://hugo-toha.github.io/posts/shortcodes/#mermaid)
172+
173+
## Contributing
174+
175+
You can contribute to this theme in various ways. You can report a [bug](https://github.com/hugo-toha/toha/issues/new?template=bug.md), file an [feature request](https://github.com/hugo-toha/toha/issues/new?template=feature_request.md), send a PR, [share your thoughts](https://github.com/hugo-toha/toha/issues/new?template=question.md) etc.
176+
177+
Pull requests are most welcome and I will be happy to review. Just follow the following principles:
178+
179+
- Keep it simple.
180+
- Keep it consistent with the design.
181+
- Use as few dependencies as possible.
182+
- Have patience.
183+
184+
> 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.
185+
186+
## Local Development
187+
188+
For local development, you can make changes in the theme submodule and test the changes against your own site or this [example site](https://github.com/hugo-toha/hugo-toha.github.io) locally.
189+
190+
### Fork
191+
192+
At first, fork [this repo](https://github.com/hugo-toha/toha). Then, follow the following steps to use the forked theme for local developments,
193+
194+
#### Running the forked theme against the example site
195+
196+
If your want to run your local development against this [example site](https://github.com/hugo-toha/hugo-toha.github.io), follow the following steps:
197+
198+
```bash
199+
# go to exampleSite directory
200+
$ cd exampleSite
201+
# install hugo modules
202+
$ hugo mod tidy
203+
# install dependencies
204+
$ hugo mod npm pack
205+
$ npm install
206+
# run the example site locally
207+
$ hugo server -w
208+
```
209+
210+
Now, you can make change in the theme and they will be reflected immediately on the running site. If you need to change any configuration, you can do that in the `hugo.yaml` file inside `exampleSite` folder. If you need to add any content or data, you can create the respective folder inside `exampleSite` directory and add your desired content or data there.
211+
212+
#### Running the forked theme against your own site
213+
214+
If you want to run your local development against your own site, follow the following steps:
215+
216+
**Replace the theme module:**
217+
218+
Open your site's `go.mod` file and replace the `github.com/hugo-toha/toha/v4` with your forked repo's path. For example, if your forked repo is `github.com/<your-github-user>/toha`, then replace the `github.com/hugo-toha/toha/v4` with `github.com/<your-github-user>/toha/v4`.
219+
220+
```go
221+
module github.com/hugo-toha/hugo-toha.github.io
222+
223+
go 1.19
224+
225+
require github.com/hugo-toha/toha/v4 v4.0.1-0.20231229170427-d3968ca711ef // indirect
226+
227+
replace(
228+
github.com/hugo-toha/toha/v4 => github.com/<your-github-user>/toha/v4 <git branch>
229+
)
230+
```
231+
232+
For interactive development, you can replace the theme with your locally cloned fork. For example, if you have cloned your fork in `/home/my-projects/toha`, then replace the `github.com/hugo-toha/toha/v4` with `/home/my-projects/toha`.
233+
234+
```go
235+
module github.com/hugo-toha/hugo-toha.github.io
236+
237+
go 1.19
238+
239+
require github.com/hugo-toha/toha/v4 v4.0.1-0.20231229170427-d3968ca711ef // indirect
240+
241+
replace(
242+
github.com/hugo-toha/toha/v4 => /home/my-projects/toha
243+
)
244+
```
245+
246+
**Update dependencies:**
247+
248+
```bash
249+
# update hugo modules
250+
$ hugo mod tidy
251+
# install dependencies
252+
$ hugo mod npm pack
253+
$ npm install
254+
```
255+
256+
**Run your site locally:**
257+
258+
```bash
259+
$ hugo server -w
260+
```
261+
262+
From there you can make changes to the source code of the theme while testing with your running Hugo site or the example site.
263+
264+
### Open a PR
265+
266+
When the changes look good, commit and push them to your fork.
267+
268+
```bash
269+
# stage all the changes
270+
$ git add .
271+
# commit the changes with a meaning full commit message
272+
$ git commit -m "A meaningful commit message"
273+
# push the commit to your fork
274+
$ git push my-fork my-feature-branch
275+
```
276+
277+
Then, open a PR against `main` branch of [hugo-toha/toha](https://github.com/hugo-toha/toha) from the `my-feature-branch` branch of your own fork.
278+
279+
## Attribution
280+
281+
- Thanks [Anup Deb](https://dribbble.com/anupdeb) for his design guidance.
282+
- Many of the illustrations have been taken from [iconscout](http://iconscout.com/).

themes/toha/archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
hero: /images/background/sunrise.jpg
3+
author:
4+
name: Md. Emruz Hossain
5+
image: /images/profile-image.jpg
6+
---

themes/toha/assets/images/404.png

108 KB
Loading

themes/toha/assets/images/404.svg

+1
Loading
46.5 KB
Loading
1.13 MB
Loading
69.4 KB
Loading

themes/toha/assets/images/favicon.png

13.3 KB
Loading
+1
Loading
13.3 KB
Loading
5.5 KB
Loading
13.3 KB
Loading

themes/toha/assets/jsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"*": [
6+
"*"
7+
]
8+
}
9+
}
10+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'popper.js'
2+
import 'bootstrap'
3+
import '@fortawesome/fontawesome-free/js/all'
4+
import feather from 'feather-icons'
5+
6+
import './core'
7+
import './features'
8+
import './sections'
9+
import './pages'
10+
11+
feather.replace();

0 commit comments

Comments
 (0)