Coder Social home page Coder Social logo

hugo-toha / hugo-toha.github.io Goto Github PK

View Code? Open in Web Editor NEW
103.0 6.0 553.0 43.61 MB

An example hugo static site with Toha theme.

Home Page: https://hugo-toha.github.io

License: MIT License

hactoberfest hugo hugo-site portfolio portfolio-website blog personal-website

hugo-toha.github.io's Introduction

hugo-toha.github.io's People

Contributors

bernatbc avatar d-huck avatar daviddavo avatar dependabot[bot] avatar dietervansteenwegen avatar gilcrest avatar github-actions[bot] avatar hossainemruz avatar imgbotapp avatar jsduenass avatar ravikothari510 avatar tcarreira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hugo-toha.github.io's Issues

Posts' Table of Contents dosen't work with .rmd files

Hello, I struggle with posts' Table of Contents.

As long as I use the standard .md format, everything works perfectly. But, when the same file is saved as .Rmd (R markdown, R is a programming language) and then render it as an .html file, the table of contents stops working, ie it does not recognize the document headers.

.html file rendered from the .rmd

image

.md file (same content as in the previous one)

image

btw Many thanks for the awesome theme!

adding chatbot

How to customize the theme to add a personal chatbot ? is it supported?

Hugo Local Build Failing

Resynced my fork after many months and rebased and squashed my changes to make the commit tree neater.
Now I cannot build after npm install

hugo mod tidy and hugo server -w gives the following error:

go: github.com/hugo-toha/toha/[email protected]: invalid version: git ls-remote -q origin in C:\Users\Raj P\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\cache\vcs\3cb566cfd171305ed51f5847660e8d04cf501c2ca92f1cf32f2336acf1eb47a2: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
hugo: collected modules in 931 ms
Error: failed to load modules: failed to download modules: failed to execute 'go [mod download -modcacherw]': failed to execute binary "go" with args [mod download -modcacherw]: go: github.com/hugo-toha/toha/[email protected]: invalid version: git ls-remote -q origin in C:\Users\Raj P\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\cache\vcs\3cb566cfd171305ed51f5847660e8d04cf501c2ca92f1cf32f2336acf1eb47a2: exit status 128:
        fatal: 'origin' does not appear to be a git repository
        fatal: Could not read from remote repository.

        Please make sure you have the correct access rights
        and the repository exists.
 *errors.errorString

Here's the content of my go.mod file

module github.com/raj-patra/raj-patra.github.io

go 1.21

require github.com/hugo-toha/toha/v4 v4.5.1-0.20240601184722-8599c634e39f // indirect

// replace(
//     github.com/hugo-toha/toha/v4 => ../toha
// )

Any help is appreciated.

Not able to find a proper repo to use as a template.

I am interested to create a portfolio website for myself so I tried cloning this repo everything was fine later realized I can't customize the footer as this repo doesn't have layouts/paritals/footer.html.

So I cloned another repo where I was able to find footer.html but if I use this repo I get a sample site where it only has home section other sections like education, skills are not enabled as given in the below image kindly help how to enable this section in this repo

Test

FYI @hossainemruz

hugo server -w fails because themes submodule is removed

Hello, beautiful theme, thanks for all the hard work on it!

Trying to preview the site using hugo server -w fails now that the folder at themes/toha is removed in this commit 994b971

Is there a way to preview the site locally now that the submodule has been removed?

Application.js error 404 javascript not working because of fingerprinting

The site works locally but JavaScript does not work not when pushed on a static site: (no animations, console errors).

After

there is:

<script src=[/scripts/application.js](https://www.lifeslittlelab.vip/scripts/application.js) integrity defer></script>

In other words, there is a reference to application.js without fingerprinting
the application.js file does not exist in public/scripts because there is only the file with fingerprinting

the browser console shows two error lines:

Failed to load resource: the server responded with a status of 404 ()

www.lifeslittlelab.vip/:1 Refused to execute script from 'https://www.lifeslittlelab.vip/scripts/application.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

I am deploying on render.com

render.com runs Hugo automatically when it sees a new commit on github
but even when I run Hugo locally, inside public, I only see the application.css and application.js don't exist as files because there are their versions with fingerprinting. funny thing is that application.css is correctly referenced with fingerprinting but application.js is not referenced with fingerprinting.

Partials/sections/home.html image naming inconsistent

The names of the images(background, avatar,hero) in the home.html file do not include "default-". This is causing the sites not to render on my end. Additionally if I make changes it destroys my repository when I need to commit . I added it as a submodule ,as stated in the prepare files, and any changes made are still documented in my git status so if I attempt to add all(which is now broken because of the .gitmodules file) it doesn't work. I know of at least 40 lines of green new file every time I check status or try to add and these files won't update and can't be used unless I have them updated. Circular.

Skills icons are not showing on skills cards

I have followed the instructions here and here on how to add a skills section. I have saved the icon images under the /assets/images/sections/skills directory. Unfortunately, no icon is shown when I serve the site locally.

Expected behiavour:
image

Current behiavour:
image

[doc/bug] darklogo should be darkLogo

Achievements gallery size

hello,
Would it be possible to modify the gallery size for achievements section? I want to change the layout?

Change /icons Directory Path

Hello,
Could you change the icons directory from /icons to something else, or make it configurable? I am self hosting on apache2, and apache2 comes with default behavior that rewrites requests to/icons/.. to something else.

The behavior is defined in alias.conf, in /etc/apache2/mods-available/alias.conf

I tried disabling the module but the site basically fails to load at all for me without it. Unfortunately I am not experienced enough with apache config to know what I need to do to fix that behavior.

If there is an easy way to configure the directory to be different I would be interested in that solution also

<IfModule alias_module>
	# Aliases: Add here as many aliases as you need (with no limit). The format is
	# Alias fakename realname
	#
	# Note that if you include a trailing / on fakename then the server will
	# require it to be present in the URL.  So "/icons" isn't aliased in this
	# example, only "/icons/".  If the fakename is slash-terminated, then the
	# realname must also be slash terminated, and if the fakename omits the
	# trailing slash, the realname must also omit it.
	#
	# We include the /icons/ alias for FancyIndexed directory listings.  If
	# you do not use FancyIndexing, you may comment this out.

	Alias /icons/ "/usr/share/apache2/icons/"

	<Directory "/usr/share/apache2/icons">
		Options FollowSymlinks
		AllowOverride None
		Require all granted
	</Directory>

</IfModule>

unmarshal of format "" is not supported

Hi, thank you for creating the theme. But I encounted a problem when I am initing the theme following: https://toha-guides.netlify.app/posts/getting-started/prepare-site/. I am using the macOS Catalina 10.15.7. The version of hugo is: hugo v0.104.3

The problem showed after I added an image file in data/en/images/author/ path. When I ran the command hugo server -t toha -w, I got an error called Error: Error building site: failed to load data: failed to load data: "/Users/xxx/Desktop/xxx/xxx.github.io/data/en/images/author/tn2.png:1:1": unmarshal of format "" is not supported.

Could you help me to solve it? Thank you.

deployment failed in netlify

10:14:54 AM: Build ready to start 10:14:56 AM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0 10:14:56 AM: build-image tag: v4.3.0 10:14:56 AM: buildbot version: d2795bf5a96b85e585e90944f15f15381ce164a7 10:14:56 AM: Fetching cached dependencies 10:14:56 AM: Failed to fetch cache, continuing with build 10:14:56 AM: Starting to prepare the repo for build 10:14:56 AM: No cached dependencies found. Cloning fresh repo 10:14:56 AM: git clone https://github.com/Ashwath-Shetty/toha_source 10:14:58 AM: Preparing Git Reference refs/heads/main 10:14:59 AM: Parsing package.json dependencies 10:15:00 AM: Starting build script 10:15:00 AM: Installing dependencies 10:15:00 AM: Python version set to 2.7 10:15:01 AM: Downloading and installing node v16.8.0... 10:15:01 AM: Downloading https://nodejs.org/dist/v16.8.0/node-v16.8.0-linux-x64.tar.xz... 10:15:01 AM: Computing checksum with sha256sum 10:15:01 AM: Checksums matched! 10:15:05 AM: Now using node v16.8.0 (npm v7.21.0) 10:15:05 AM: Started restoring cached build plugins 10:15:05 AM: Finished restoring cached build plugins 10:15:05 AM: Attempting ruby version 2.7.2, read from environment 10:15:06 AM: Using ruby version 2.7.2 10:15:07 AM: Using PHP version 8.0 10:15:07 AM: Installing Hugo 0.87.0 10:15:08 AM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio 10:15:08 AM: Started restoring cached go cache 10:15:08 AM: Finished restoring cached go cache 10:15:08 AM: go version go1.16.5 linux/amd64 10:15:08 AM: go version go1.16.5 linux/amd64 10:15:08 AM: Installing missing commands 10:15:08 AM: Verify run directory 10:15:09 AM: ​ 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: Netlify Build 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: ​ 10:15:09 AM: ❯ Version 10:15:09 AM: @netlify/build 18.5.0 10:15:09 AM: ​ 10:15:09 AM: ❯ Flags 10:15:09 AM: baseRelDir: true 10:15:09 AM: buildId: 61271c4682d9c500088aab6a 10:15:09 AM: deployId: 61271c4682d9c500088aab6c 10:15:09 AM: ​ 10:15:09 AM: ❯ Current directory 10:15:09 AM: /opt/build/repo 10:15:09 AM: ​ 10:15:09 AM: ❯ Config file 10:15:09 AM: /opt/build/repo/netlify.toml 10:15:09 AM: ​ 10:15:09 AM: ❯ Context 10:15:09 AM: production 10:15:09 AM: ​ 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: 1. build.command from netlify.toml 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: ​ 10:15:09 AM: $ hugo --gc --minify 10:15:09 AM: Start building sites … 10:15:09 AM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio 10:15:09 AM: ERROR 2021/08/26 04:45:09 render of "page" failed: execute of template failed: template: notes/single.html:6:8: executing "notes/single.html" at <partial "header.html" .>: error calling partial: "/opt/build/repo/themes/toha/layouts/partials/header.html:23:33": execute of template failed: template: partials/header.html:23:33: executing "partials/header.html" at <$favicon.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType 10:15:09 AM: ERROR 2021/08/26 04:45:09 render of "page" failed: execute of template failed: template: notes/single.html:6:8: executing "notes/single.html" at <partial "header.html" .>: error calling partial: "/opt/build/repo/themes/toha/layouts/partials/header.html:23:33": execute of template failed: template: partials/header.html:23:33: executing "partials/header.html" at <$favicon.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType 10:15:09 AM: ERROR 2021/08/26 04:45:09 render of "page" failed: execute of template failed: template: notes/single.html:6:8: executing "notes/single.html" at <partial "header.html" .>: error calling partial: "/opt/build/repo/themes/toha/layouts/partials/header.html:23:33": execute of template failed: template: partials/header.html:23:33: executing "partials/header.html" at <$favicon.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType 10:15:09 AM: ERROR 2021/08/26 04:45:09 render of "page" failed: execute of template failed: template: notes/single.html:6:8: executing "notes/single.html" at <partial "header.html" .>: error calling partial: "/opt/build/repo/themes/toha/layouts/partials/header.html:23:33": execute of template failed: template: partials/header.html:23:33: executing "partials/header.html" at <$favicon.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType 10:15:09 AM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: notes/single.html:6:8: executing "notes/single.html" at <partial "header.html" .>: error calling partial: "/opt/build/repo/themes/toha/layouts/partials/header.html:23:33": execute of template failed: template: partials/header.html:23:33: executing "partials/header.html" at <$favicon.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType 10:15:09 AM: Total in 126 ms 10:15:09 AM: ​ 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: "build.command" failed 10:15:09 AM: ──────────────────────────────────────────────────────────────── 10:15:09 AM: ​ 10:15:09 AM: Error message 10:15:09 AM: Command failed with exit code 255: hugo --gc --minify 10:15:09 AM: ​ 10:15:09 AM: Error location 10:15:09 AM: In build.command from netlify.toml: 10:15:09 AM: hugo --gc --minify 10:15:09 AM: ​ 10:15:09 AM: Resolved config 10:15:09 AM: build: 10:15:09 AM: command: hugo --gc --minify 10:15:09 AM: commandOrigin: config 10:15:09 AM: environment: 10:15:09 AM: - HUGO_ENABLEGITINFO 10:15:09 AM: - HUGO_ENV 10:15:09 AM: - HUGO_THEME 10:15:09 AM: - HUGO_VERSION 10:15:09 AM: publish: /opt/build/repo/public 10:15:09 AM: publishOrigin: config 10:15:10 AM: Caching artifacts 10:15:10 AM: Started saving build plugins 10:15:10 AM: Finished saving build plugins 10:15:10 AM: Started saving pip cache 10:15:10 AM: Finished saving pip cache 10:15:10 AM: Started saving emacs cask dependencies 10:15:10 AM: Finished saving emacs cask dependencies 10:15:10 AM: Started saving maven dependencies 10:15:10 AM: Finished saving maven dependencies 10:15:10 AM: Started saving boot dependencies 10:15:10 AM: Finished saving boot dependencies 10:15:10 AM: Started saving rust rustup cache 10:15:10 AM: Finished saving rust rustup cache 10:15:10 AM: Started saving go dependencies 10:15:10 AM: Finished saving go dependencies 10:15:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2 10:15:13 AM: Creating deploy upload records 10:15:13 AM: Failing build: Failed to build site 10:15:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:15:13 AM: Finished processing build request in 17.053034415s

i tried to deploy my portfolio with your theme but I got the above error when I deploy it in netlify. it works fine in localhost though, I'm not sure where to contact you for help, can you please have a look at it and help me fix it, I really liked your template and I want this to work badly to see my portfolio in this template.
here is my repo link https://github.com/Ashwath-Shetty/toha_source
here you go for cleaner representation of deploy log https://answers.netlify.com/t/deployment-failed-for-a-hugo-theme/43111

How to make notes contents as list without sub-directory

Hello All,

I found notes contents must within a sub-directory. how could I make notes contents as list without directory? example below

root-content-notes
                   -_index.md
                   -aaa.md
                   -bbb.md
                   -ccc.md

Current default:

root-content-notes
                   - _index.md
                   - a-directory
                                     - _index.md
                                     - aaa.md
                   - b-directory
                                     - _index.md
                                     - bbb.md

Thanks

Can't build the example site when there are files under content folder.

Current Behaviour

When I try to build the website, this is the error that I get.

Start building sites …
hugo v0.102.1-e9c3ce16abc391ee5be38f88b0499d0e8e19104c+extended windows/amd64 BuildDate=2022-08-29T12:58:13Z VendorInfo=gohugoio
Error: Error building site: "hugo-toha.github.io-main\content\notes\bash\basic\index.bn.md:13:1": failed to extract shortcode: template for shortcode "note" not found

When I remove the notes folder, this is the error that I get

Start building sites …
hugo v0.102.1-e9c3ce16abc391ee5be38f88b0499d0e8e19104c+extended windows/amd64 BuildDate=2022-08-29T12:58:13Z VendorInfo=gohugoio
Error: Error building site: "hugo-toha.github.io-main\content\posts\shortcodes\index.md:23:1": failed to extract shortcode: template for shortcode "alert" not found
Built in 22 ms

When I remove both the folders, then I'm able to build the website without any issue.
But the website that is built shows just an empty white page. On Firefox, Chrome and Edge.

Missing shortcodes [bug]

This seems to be missing the layouts/shortcodes?

When I clone and run hugo it gives:

user@home:~/projects/hugo-toha.github.io$ hugo
Start building sites … 
Total in 19 ms
Error: Error building site: "/home/user/projects/hugo-toha.github.io/content/notes/bash/basic/index.bn.md:13:1": failed to extract shortcode: template for shortcode "note" not found

Error when I try to put a background

Hi,

First of all, thanks for this good theme for hugo ! Great work !

I've a problem when I try to put a background. I've a background.jpg picture in my /resources/_gen/images directory.

Here is the params section of my config.yaml file :

# Site parameters
params:
  background: "images/background.jpg"
  gitRepo: https://github.com/t-benedet/blog.git
  enableBlogPost: true
  enableTOC: true
  newsletter:
    enable: false
~                  

But on my workflow I've this error :

Run hugo --minify
Start building sites … 
Total in 102 ms
Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:49:8: executing "index.html" at <partial "sections/home.html" .>: error calling partial: "/home/runner/work/blog/blog/themes/toha/layouts/partials/sections/home.html:46:16": execute of template failed: template: partials/sections/home.html:46:16: executing "partials/sections/home.html" at <$src.Resize>: nil pointer evaluating resource.Resource.Resize
Error: Process completed with exit code 255.

My repo => https://github.com/t-benedet/blog

Can you tell me what where is my mistake ?

Thanks a lot !

I can not build the website.

When I try to build this by running it locally using " hugo server -w" in the CLI I get the following output:
Start building sites …
hugo v0.88.1-5BC54738 linux/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
Error: Error building site: "/home/guzmanr/Desktop/LastWebsite/hugo-toha.github.io/content/posts/category/sub-category/rich-content/index.md:30:1": failed to render shortcode "tweet": failed to process shortcode: template: _internal/shortcodes/tweet.html:6:82: executing "_internal/shortcodes/tweet.html" at <index .Params 0>: error calling index: value has type int; should be string
Built in 3742 ms

The only changes that I have made to the original code would be the repository name to the forked one and the baseURL. I've tried to remove the error by disabling the flag for twitter but that does not help the situation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.