Add authors taxonomy for blog posts (#435)
* Add authors taxonomy and layout
* Add my name to contributors file
* Add authors to front matter post archetypes
* Add author to i18n for en
* Add authors taxonomy to exampleSite config
* Add some author names to exampleSite for demo
* Tested authors on pt-br and externally-linked post
* Also ran make release again
* Resources
Deleted resources in exampleSite and added resources in root
10 files modified
1 files added
| | |
| | | - [Rabin Adhikari](https://github.com/rabinadk1/) |
| | | - [Hussaini Zulkifli](https://github.com/hussaini/) |
| | | - [Ellison Leão](https://github.com/ellisonleao) |
| | | - [Lucas de Oliveira](https://github.com/lucas-dOliveira) |
| | | - [Lucas de Oliveira](https://github.com/lucas-dOliveira) |
| | | - [earnest ma](https://github.com/earnestma) |
| | |
| | | date = {{ .Date }} |
| | | title = "" |
| | | description = "" |
| | | slug = "" |
| | | slug = "" |
| | | authors = [] |
| | | tags = [] |
| | | categories = [] |
| | | externalLink = "" |
| | |
| | | category = "categories" |
| | | series = "series" |
| | | tag = "tags" |
| | | author = "authors" |
| | | |
| | | [[params.social]] |
| | | name = "Github" |
| | |
| | | +++ |
| | | date = "2014-09-28" |
| | | title = "Creating a New Theme" |
| | | slug = "creating-a-new-theme" |
| | | slug = "creating-a-new-theme" |
| | | tags = [] |
| | | categories = [] |
| | | series = ["Theme", "Hugo"] |
| | | authors = ["John Doe"] |
| | | +++ |
| | | |
| | | ## Introduction |
| | |
| | | slug = "dummy" |
| | | tags = ["hugo", "i18n"] |
| | | categories = ["blog"] |
| | | authors = ["Translation test"] |
| | | +++ |
| | | |
| | | Nada para ver aqui! |
| | |
| | | ] |
| | | externalLink = "https://github.com/luizdepra/hugo-coder/wiki" |
| | | series = ["Hugo"] |
| | | authors = ["External link test"] |
| | | +++ |
| | |
| | | "golang", |
| | | ] |
| | | series = ["Getting Started", "Hugo"] |
| | | authors = ["Jane Smith"] |
| | | +++ |
| | | |
| | | Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for |
| | |
| | | images = ["/images/N90.jpg"] |
| | | math = true |
| | | series = ["Theme", "Hugo"] |
| | | authors = ["John Doe", "Jane Smith"] |
| | | +++ |
| | | |
| | | ## Style Demo |
| | |
| | | [series] |
| | | other = "series" |
| | | |
| | | [author] |
| | | other = "author" |
| | | |
| | | [reading_time] |
| | | one = "One-minute read" |
| | | other = "{{ .Count }}-minute read" |
| New file |
| | |
| | | <div class="authors"> |
| | | <i class="fa fa-user" aria-hidden="true"></i> |
| | | {{- range $index, $el := . -}} |
| | | {{- if gt $index 0 }} |
| | | <span class="separator">•</span> |
| | | {{- end }} |
| | | <a href="{{ ( printf "authors/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a> |
| | | {{- end -}} |
| | | </div> |
| | |
| | | {{ i18n "reading_time" .ReadingTime }} |
| | | </span> |
| | | </div> |
| | | {{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }} |
| | | {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} |
| | | {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} |
| | | </div> |