google / docsy

A set of Hugo doc templates for launching open source content.
https://docsy.dev
Apache License 2.0
2.63k stars 905 forks source link

Custom html elements in the right sidebar #2060

Open fekete-robert opened 3 months ago

fekete-robert commented 3 months ago

This PR adds hooks and placeholder files to include custom HTML elements in the right sidebar. For example, it can be used to show images or banners for events like here:

Screenshot 2024-08-03 at 10 21 34

To use it, add your HTML code to the layouts/partials/hooks/custom-right-sidebar-elements-top.html or layouts/partials/hooks/custom-right-sidebar-elements-bottom.html file in your project directory.

(I haven't updated the userguide yet because I wasn't sure where to add this info.)

google-cla[bot] commented 3 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.