Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aalfiann opened this issue Dec 21, 2019 · 6 comments
Open

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

aalfiann opened this issue Dec 21, 2019 · 6 comments

Comments

@aalfiann
Copy link

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
Copy link

helmasaur commented Dec 29, 2019

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
Copy link

Soneji commented Jul 26, 2020

+1

I am also looking for a solution

@Soneji
Copy link

Soneji commented Jul 27, 2020

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants