summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-05-24 12:01:13 -0600
committermo khan <mo@mokhan.ca>2024-05-24 12:01:13 -0600
commit92bcab3bea62f01fb2d0f82354a167ff13cc824f (patch)
tree9dc6f3a07efe7d72cbfb676ad85640d289251388 /templates
parent51e2a04b9bd3c915d8e824f7c6885c2ef3b6c29b (diff)
Exclude non-residential and add link to each community readme
Diffstat (limited to 'templates')
-rw-r--r--templates/communities.md.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/communities.md.erb b/templates/communities.md.erb
index 55d17d3..d60b9f2 100644
--- a/templates/communities.md.erb
+++ b/templates/communities.md.erb
@@ -3,5 +3,9 @@
| Name | Total | Male | Female | Non-binary | Dogs | Cats |
| ---- | ----- | ---- | ------ | ---------- | ---- | ---- |
<%- self.sort.each do |community| -%>
-| <%= community.name %> | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> | <%= community[:female_cnt] %> | <%= community[:other_cnt] %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> |
+| [<%= community.name %>][<%= community.name.parameterize %>] | <%= community[:res_cnt] %> | <%= community[:male_cnt] %> | <%= community[:female_cnt] %> | <%= community[:other_cnt] %> | <%= community[:dog_cnt] %> | <%= community[:cat_cnt] %> |
+<%- end -%>
+
+<%- self.sort.each do |community| -%>
+[<%= community.name.parameterize %>]: ./<%= community.name.parameterize %>/README.md
<%- end -%>