-
Notifications
You must be signed in to change notification settings - Fork 188
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
Make tag breadcrumb href value dynamic #95
base: master
Are you sure you want to change the base?
Conversation
This allows customizing the relative url used for linking to the "blog" page.
c54ca53
to
fdc78bc
Compare
Hey @miketmoore ! Glad you're enjoying the project. This a useful change. Hardcoded urls in a theme should definitely be avoided. My only concern is that we aren't defining
I'd also prefer to use camel casing, so What do you think? |
Thanks for the response @jakewies - I agree with you on all points! I'll make the updates. Thanks! |
Will this change break existing sites until people add the field to their config file? |
@RLesser I believe existing sites running this theme won't receive the change unless they pull in changes. But I could be wrong. I'm not too familiar with using a Hugo theme since I technically don't use one. |
@@ -7,7 +7,7 @@ | |||
|
|||
<div class="post-list__container"> | |||
<div class="tag__header"> | |||
<a href="/blog">All posts</a><span class="separator">/</span> | |||
<a href="{{ .Site.Params.blogurl }}">All posts</a><span class="separator">/</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's have a default option here so that this doesn't break sites that don't have that param specified.
<a href="{{ .Site.Params.blogurl | relURL | default `/blog` }}">All posts</a><span class="separator">/</span>
Thanks for the feedback everybody. I haven't forgotten about this but have been very busy. I'll try to get to it sooner than later. |
Hey @miketmoore , just pinging to see if there is any update on this 😄 |
Should this also include a change for
|
Hi @jakewies - I really like your theme and I made this change in my fork since I have a different URL for my blog.