Allow . and # in Categories and Tags
Closes #163
| | |
| | | {{ else }} {{.Date.Format "Mon, Jan 2, 2006"}} |
| | | {{ end }}</span> |
| | | {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} |
| | | {{ with .Params.tags }} |
| | | {{- range $index, $el := . -}} |
| | | <a class="tag" |
| | | href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a> |
| | | {{- end -}} |
| | | {{ end }} |
| | | {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <span class="separator"> |
| | | {{- range $index, $el := . -}} |
| | | <a class="category" href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a> |
| | | {{- end -}} |
| | | </span> |
| | | {{- range $index, $el := . -}} |
| | | {{- $category := replace . "#" "%23" -}} |
| | | {{- $category = replace $category "." "%2e" -}} |
| | | <a class="category" href="{{ ( printf "categories/%s/" ( $category | urlize ) ) | relLangURL }}">{{ . }}</a> |
| | | {{- end -}} |
| | | </span> |
| | |
| | | <span class="separator"> |
| | | {{- range $index, $el := . -}} |
| | | <a class="tag" href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a> |
| | | {{- end -}} |
| | | </span> |
| | | {{- range $index, $el := . -}} |
| | | {{- $tag := replace . "#" "%23" -}} |
| | | {{- $tag = replace $tag "." "%2e" -}} |
| | | <a class="tag" href="{{ ( printf "tags/%s/" ( $tag | urlize ) ) | relLangURL }}">{{- . -}}</a> |
| | | {{- end -}} |
| | | </span> |