-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Change "post/" to "blog/" #356
Comments
Refer to permalinks in the documentation. |
You can try something like adding the following near the top of your
|
Thanks for the quick response! Sorry I wasn't more clear in the issue. Yes, I've got the permalinks option set to
|
|
I did the renaming in my private fork since very beginning when I switched to this template, by renaming the related files and modifying some htmls listed in Never had any problem with Also don't forget the 404 page. |
Note that the permalink method of adding the following just above
can work with archive pages too if you add I didn't mention it earlier as it will redirect |
Doing only this gave me the error when I tried to run hugo:
Changing |
post.html does not need to be changed to blog.html, and index.html/widget_page.html do not need to be altered. I meant change Also, you'll want to specify |
Ahh, my mistake. (Also, incidentally, thanks for being so responsive, sorry getting this right is taking such effort). I've reverted the stuff in the theme, and changed back to I think it's close. The one outstanding thing is that the link from the widget "more posts" links to '/post/'. But when I build and push the site, there's nothing at If I remove the |
To attempt to fix your More Posts link, you can add Hopefully, Hugo team will implement gohugoio/hugo#3354 soon and then this URL customization process will be much simpler. |
The alias thing worked - awesome! Thanks a bunch. Incidentally, the styling of the |
Ideally, you would be able to specify You can attempt to work around this by copying |
Yeah, I actually did try this and noticed it didn't work. I'll avoid messing around in the theme so as not to mess with future updates. The functionality I have now is great - thanks for making such a great theme! |
It seems that the upstream enhancement that you referred to is working, yet when I add |
Just for record: |
Is it a tradition that blogs must be put together in |
I have
and the following menu entry in config file:
And I don't see any side effects. Keeping |
I'd like to use the
Posts
widget, but change its name (and url) to "blog" instead. Is there a way to make this work?I tried simply changing the folder path to
blog/
instead ofpost/
, but this broke it, and I started to try using the custom widget but realized I'd lose all of the functionality. I'd be grateful to be pointed along the right path.The text was updated successfully, but these errors were encountered: