diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2aa433e..8b9f8af 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,8 @@ You can report mistakes or errors, add suggestions, additions, updates or improv # How can I add a post to the blog? +This blog exists to showcase the tidyomics ecosystem. Possible posts include analysis which make use of the tidyomics ecosystem or the sharing of new features in our packages. + We are using Hugo and BlogDown to build our blog. These tools take care of most of the work for us, so that adding a new blog post is quick to do. If you would like more information about Hugo and BlogDown you can find the documentation here: https://bookdown.org/yihui/blogdown/hugo.html. In brief, the process to add a post is: diff --git a/DESCRIPTION b/DESCRIPTION index 4212a17..c79e5ba 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: tidyomicsBlog Title: The tidyomics blog -Version: 1.2.1 +Version: 1.2.2 Authors@R: c( person("Stefano", "Mangiola", email="mangiola.s@wehi.edu.au", role = c("aut","cre"), diff --git a/blog/config.yaml b/blog/config.yaml index 8fd1dc5..cb8a8fa 100644 --- a/blog/config.yaml +++ b/blog/config.yaml @@ -36,10 +36,6 @@ menu: name: Tags url: /tags/ weight: 30 - - identifier: categories - name: Categories - url: /categories/ - weight: 40 params: archivePaginate: 50 autoCollapseToc: no diff --git a/blog/content/about.md b/blog/content/about.md index c787d34..8dc23a8 100644 --- a/blog/content/about.md +++ b/blog/content/about.md @@ -6,15 +6,8 @@ title: About weight: 50 --- -Hugo is a static site engine written in Go. +This is the blog of the tidyomics ecosystem. In it, we hope to share exciting updates on the development and use of our ecosystem. +You can find out more at our [homepage](https://github.com/tidyomics). -It makes use of a variety of open source projects including: - -* [Cobra](https://github.com/spf13/cobra) -* [Viper](https://github.com/spf13/viper) -* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman) -* [Cast](https://github.com/spf13/cast) - -Learn more and contribute on [GitHub](https://github.com/gohugoio). - +This blog is part of [R-Bloggers](https://www.r-bloggers.com). diff --git a/blog/layouts/rss.xml b/blog/layouts/rss.xml new file mode 100644 index 0000000..fe6933f --- /dev/null +++ b/blog/layouts/rss.xml @@ -0,0 +1,71 @@ +{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- else }} + {{- with site.Author.email }} + {{- $authorEmail = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} + {{- end }} +{{- end }} + +{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- else }} + {{- with site.Author.name }} + {{- $authorName = . }} + {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} +{{- $pages = $pctx.RegularPages }} +{{- else }} +{{- $pages = $pctx.Pages }} +{{- end }} +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} +{{- $pages = $pages | first $limit }} +{{- end }} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io + {{ site.Language.LanguageCode }}{{ with $authorEmail }} + {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} + {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} + {{ . }}{{ end }}{{ if not .Date.IsZero }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} + {{ .Permalink }} + {{ .Content | html }} + + {{- end }} + + \ No newline at end of file