hugo-creative-portfolio-theme icon indicating copy to clipboard operation
hugo-creative-portfolio-theme copied to clipboard

How to change url "portfolio/" to "/"

Open aalfiann opened this issue 5 years ago • 6 comments

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.

aalfiann avatar Dec 21 '19 06:12 aalfiann

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.

helmasaur avatar Dec 29 '19 14:12 helmasaur

+1

I am also looking for a solution

Soneji avatar Jul 26 '20 13:07 Soneji

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

Soneji avatar Jul 27 '20 10:07 Soneji

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.

galileo-pkm avatar Dec 11 '22 04:12 galileo-pkm

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

AJuliette avatar Oct 10 '23 21:10 AJuliette

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

Aezhir-Rhery avatar Apr 24 '24 07:04 Aezhir-Rhery