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

Add commonly used elements to footer #349

Open
peter-jerry-ye opened this issue Oct 6, 2020 · 4 comments
Open

Add commonly used elements to footer #349

peter-jerry-ye opened this issue Oct 6, 2020 · 4 comments

Comments

@peter-jerry-ye
Copy link
Contributor

peter-jerry-ye commented Oct 6, 2020

It seems to me that there are something quite common for footer. For example, for tech blogs, many people choose a creative common license for the content and one of the many licenses for the code. It is also quite common to pay tribute to Hugo and a service provider such as Netlify, and you, of course.

While I can totally do it by myself by copying the site-footer.html and make these changes, I think it might be more practical if we could have these options in configuration files. And since I'm no expert in design, I prefer a more or less official solution so that it integrates better with the whole theme.

Thank you.

@budparr
Copy link
Member

budparr commented Oct 6, 2020

Hi @peter-jerry-ye This is a good idea. We'd have to think about how to do it that can be left vague enough for people to put in whatever they want. Not sure how quickly we'd do this, so for the moment it would be best for you to put a copy of https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/layouts/partials/site-footer.html in your layouts/partials folder and adding what you like there.

@oefe
Copy link

oefe commented Dec 30, 2024

The page header uses Hugo's menu system to allow adding links to additional pages. Couldn't we use this also for the footer, with a different menu?

@davidsneighbour
Copy link
Collaborator

We could. But it goes

What I want to implement next is my own hook system where you can add "stuff" at certain places by using layouts/partials/hooks/footer-left.html for instance to fill the left side of the footer. Using that it will be very easy to add your own menu items without interfering in the general layout. Designwise there is not much space in the footer IMHO and it might be larger task to change that. With the hooks system we can let people play/test/develop around and see what they come up with before we implement it into the theme itself (which might be unwanted or breaking for the individual users).

I will add the hooks system in January and from there we go?

@oefe
Copy link

oefe commented Dec 31, 2024

This would work for me. I'm currently adding just one link to the footer, so I wouldn't need a full menu system anyway.
I also override the copyright text to include the start year, similar to #517. I think this could also work well with the hook system.

Designwise there is not much space in the footer IMHO and it might be larger task to change that.
I see this has been discussed in #449

@davidsneighbour davidsneighbour self-assigned this Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants