awesome-ipfs
awesome-ipfs copied to clipboard
Label existing projects
Now we have a website! But many of the awesome projects don't have any labels. We should try to come up with a taxonomy and label all of them, then make sure the search and navigation between labels work.
It could be tags, for example. We just need to add them to the .yaml files and render them into the cards. Everything else will just work (navigation included).
Ah, yeah, tags/labels. As long as the labeling works the same way as the categories does (static pages with rendered content). Is that true already?
Yes, yes. Just need to add the array of tags to each thing on the data files and add print them (with links) on the cards. Everything else will just work 😄
So, going /tags/app/
works and renders the right items. What's missing is a way of going to that URL without knowing it beforehand.
Adding:
{{ $base := .Site.BaseURL }}
{{- if isset .Params "tags" }}
<div class="mt2 flex">
{{ range .Params.tags }}
<a class="mr1 no-underline monospace charcoal bg-snow dib f7 pa2 br1" href="{{ $base }}/tags/{{ . }}">
{{- . -}}
</a>
{{ end }}
</div>
{{ end }}
To line 56 on ./src/layout/partials/list.html will render a list of the tags and they'll look like badges.
Is this still intended? /cc @koalalorenzo @olizilla
Closing this in an effort to reboot this list while keeping the maintainer overhead as low as possible while still making sure the list is awesome! Thanks for your suggestion @victorb