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 Blog link text bold (just like e.g. Shortcodes
)
#441
Comments
I'd use CSS for that.
Not at all. In general, users have an expection about the UX of links. Historically, they're blue. Making them bold would obscure that they're a link to many users. I for one would expect bold text to be an empasis, not a link. So if you want it, you should use CSS for your site. |
Makes sense, but yeah, I don't know, it's really a section unlike all others, so it would make sense to highlight it somehow. At the very least from my perspective.
Any idea what part of the CSS I should modify? I assume I'd need to derive the class which is currently used and then edit one of the HTML files to make sure it selects that class. I was able to make sense of much of the theme over the past few days, but I wasn't able to track down where this element is styled. |
Shortcodes
)
Hi! And some docs: https://gohugo.io/content-management/menus/
|
@alex-shpak thanks. Still getting to grips with hugo. The following code basically gave me what I needed: [menu]
[[menu.after]]
identifier = 'blog'
name = 'Blog'
pre = "<b>"
url = '/posts/'
post = "</b>"
weight = -110 Not sure whether Is there any place where I can have my own CSS classes auto-added to the defaults (like as a separate file I can track independently)? Ideally I would like to avoid editing the standard hugo files with anything you'd be unwilling to pull, because there's only so long that my diffs will be valid. Eventually |
for full CSS control we perhaps can add |
Hi! Example
|
Just a note to new people looking into this cuz i had to search a bit, for local stuff you have to specify [[menu.after]]
identifier = "blog"
pageRef= "/posts/"
name = "Blog"
weight = -110
[menu.after.params]
class = "bold" apologies for necrobump |
I have tried to make the link to the Blog section bold, similarly to the “Example Site” and “Shortcodes” sections here:
Any ideas how I can make it bold? It seems neither markdown nor HTML code will work in the title section, and I was unable to track down the point in the code where I can selectively disable this neutralization.
Additionally, I'm thinking maybe it would be better for the default to make it bold? It is basically a section on its own, more distinct from “Example Site” and “Shortcodes” than they are from each other.
The text was updated successfully, but these errors were encountered: