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

hide nonactive groups from group directory #136

Open
samanthasunne opened this issue Nov 29, 2021 · 4 comments
Open

hide nonactive groups from group directory #136

samanthasunne opened this issue Nov 29, 2021 · 4 comments
Assignees

Comments

@samanthasunne
Copy link
Collaborator

for groups that don't have a link, like Abidjan, hide them (but don't delete) from the groups page. I tried turning the .yml files into .bak but that didn't work

@ludstuen90
Copy link
Collaborator

One way we could handle this is to create another folder inside of the data/groups folder called "deactivated." And then, to disable any group from the page, we could just copy the file into that deactivated folder.

Example:
groups/abidjan.yml > groups/deactivated/abidjan.yml

While doing this, the group disappears from the homepage, and the rest of the site, but the file contents (ie: coordinates) are preserved in the file located in the deactivated folder.

Example: https://github.com/ludstuen90/hackshackers-hugo/blob/136-deactivate/content/data/groups/deactivated/abidjan.yml

If this sounds OK, let me know, and I can document the procedure. @samanthasunne

@samanthasunne
Copy link
Collaborator Author

Instead of "deactivate" let's call the folder "inactive". But otherwise yes, please do it!

@ludstuen90
Copy link
Collaborator

@samanthasunne Where would you like the instructions posted? My sense is these are not instructions that we should post on the live website, no? They're more of internal instructions that would go best in the README.md file.

I have the steps documented.

@samanthasunne
Copy link
Collaborator Author

What instructions are you referring to? I don't see them here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants