kishaningithub / hugo-creative-portfolio-theme

Port of the creative portfolio theme to Hugo
https://themes.gohugo.io/hugo-creative-portfolio-theme/
MIT License
446 stars 293 forks source link

How to change url "portfolio/" to "/" #76

Open aalfiann opened 4 years ago

aalfiann commented 4 years ago

Hello,

this theme is so beautiful for my visual project portfolio.

Everything is worked, but I can't to change "portfolio/" to "/".

For example I want my website to be http://domain.com/ than "http://domain.com/portfolio/" .

Is this possible?

Thank you.

helmasaur commented 4 years ago

Have you found a solution? I'm having the same issue. If I find something, I'll write it here.

EDIT: #46 is about this issue.

Soneji commented 4 years ago

+1

I am also looking for a solution

Soneji commented 4 years ago

Solution: config.toml:

  [[params.navlinks]]
  name = "Home"
  url = "/"
  home = true

Themes/hugo-c-p-f-theme/layouts/_default/list.html

{{ define "main" }}
  {{ partial "portfolio.html" . }}
{{ end }}

Remove content/portfolios folder and move all content to content folder

galileo-pkm commented 1 year ago

Solution: config.toml:

  [[params.navlinks]]
  name = "Home"
  url = "/"
  home = true

Themes/hugo-c-p-f-theme/layouts/_default/list.html

{{ define "main" }}
  {{ partial "portfolio.html" . }}
{{ end }}

Remove content/portfolios folder and move all content to content folder

This does not work, it produces a continuous refresh loop.

AJuliette commented 1 year ago

I'm really late to the party but I successfully deleted the '/portfolio' and displayed items on the main page, here is the commit with how to do it: https://github.com/AJuliette/portfolio/commit/2fa8144c3bbd6ac36c6e65490bfe572f21a309d9

Aezhir-Rhery commented 5 months ago

I'm really late to the party but I successfully deleted the '/portfolio' and displayed items on the main page, here is the commit with how to do it: AJuliette/portfolio@2fa8144

I'm done with it! Thank you very much! You can see it here: https://www.cat-fish.net