Monday, June 28, 2021

[fedora-websites] Issue #1079: Banner on community sites to promote Community Survey

asamalik added a new comment to an issue you are following:
``
## How to add/remove the Docs.fp.o banner

See [this PR that added the banner](https://pagure.io/fedora-docs/docs-fp-o/pull-request/164). It did two things:

1. Added the image itself to a specific place
2. Put HTML code in a specific file

That's all that's needed to add a banner.

So, writing it as instructions that can be reused as documentation elsewhere:

### Adding a banner

All changes are done in the [docs-fp-o repository](https://pagure.io/fedora-docs/docs-fp-o/).

If your banner is an image, add it to `supplemental-ui/img/image-name.png` within the repository.

Then add any HTML code to the `supplemental-ui/partials/announcement.hbs` file.

You can now run the usual `./build.sh && ./preview.sh` in the repo to see your change locally.

### Removing the banner

Remove all HTML code from the `supplemental-ui/partials/announcement.hbs` file. Do not delete the file itself, otherwise the build will fail.

If there was an image you no longer need (that would be in the `supplemental-ui/img/` directory), you can remove it.

You can now run the usual `./build.sh && ./preview.sh` in the repo to see your change locally.

``

To reply, visit the link below or just reply to this email
https://pagure.io/fedora-websites/issue/1079
_______________________________________________
websites mailing list -- websites@lists.fedoraproject.org
To unsubscribe send an email to websites-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/websites@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

No comments:

Post a Comment