awesome-ipfs icon indicating copy to clipboard operation
awesome-ipfs copied to clipboard

Label existing projects

Open victorb opened this issue 6 years ago • 6 comments

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.

victorb avatar Jul 18 '18 09:07 victorb

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).

hacdias avatar Jul 18 '18 09:07 hacdias

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?

victorb avatar Jul 18 '18 09:07 victorb

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 😄

hacdias avatar Jul 18 '18 09:07 hacdias

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.

victorb avatar Jul 18 '18 10:07 victorb

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.

hacdias avatar Jul 18 '18 10:07 hacdias

Is this still intended? /cc @koalalorenzo @olizilla

hacdias avatar Jul 05 '19 15:07 hacdias

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

2color avatar Sep 21 '23 13:09 2color