mathematicalmichael / slumlords

0 stars 0 forks source link

Category and Tag Formatting #2

Open mathematicalmichael opened 5 years ago

mathematicalmichael commented 5 years ago

Example tags (which I think make sense)

tags = [
    "mice",
    "roaches",
    "lead",
    "noise",
    "construction",
    "unresponsive"
]

Currently, categories can easily hold both company names and neighborhoods. If you click on the category, it shows all posts linked to that.

Assess what the benefit of having a company name and neighborhood attribute are. What types of things would it allow for that we don't have now?

If we use them, it frees up the category section for something else. What is that something? Company/Neighborhood are single-attribute properties. I think every post should have at least one category, and no more than three. Potential answers:

mathematicalmichael commented 5 years ago

NOTE: use all lowercase for tags/categories/etc in front-matter of posts, stylize/perform formatting in Go using pipes to process the data: e.g.,

{{ $name | title }} where title is a built-in type. as is lowercase...

{{ $term | humanize | title }}

I did this for the category pages and listing of relevant pages. humanize takes away dashes in data, allowing for the use of spaces.