Skip to content

Commit 69a2075

Browse files
Merge pull request #46 from tidyomics/improve-blog-structure
Improve blog structure
2 parents 1125b69 + 8bde91e commit 69a2075

File tree

5 files changed

+77
-15
lines changed

5 files changed

+77
-15
lines changed

CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ You can report mistakes or errors, add suggestions, additions, updates or improv
2828

2929
# How can I add a post to the blog?
3030

31+
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.
32+
3133
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.
3234

3335
In brief, the process to add a post is:

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tidyomicsBlog
22
Title: The tidyomics blog
3-
Version: 1.2.1
3+
Version: 1.2.2
44
Authors@R: c(
55
person("Stefano", "Mangiola", email="[email protected]",
66
role = c("aut","cre"),

blog/config.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ menu:
3636
name: Tags
3737
url: /tags/
3838
weight: 30
39-
- identifier: categories
40-
name: Categories
41-
url: /categories/
42-
weight: 40
4339
params:
4440
archivePaginate: 50
4541
autoCollapseToc: no

blog/content/about.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,8 @@ title: About
66
weight: 50
77
---
88

9-
Hugo is a static site engine written in Go.
9+
This is the blog of the tidyomics ecosystem. In it, we hope to share exciting updates on the development and use of our ecosystem.
1010

11+
You can find out more at our [homepage](https://github.com/tidyomics).
1112

12-
It makes use of a variety of open source projects including:
13-
14-
* [Cobra](https://github.com/spf13/cobra)
15-
* [Viper](https://github.com/spf13/viper)
16-
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
17-
* [Cast](https://github.com/spf13/cast)
18-
19-
Learn more and contribute on [GitHub](https://github.com/gohugoio).
20-
13+
This blog is part of [R-Bloggers](https://www.r-bloggers.com).

blog/layouts/rss.xml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}}
2+
{{- $authorEmail := "" }}
3+
{{- with site.Params.author }}
4+
{{- if reflect.IsMap . }}
5+
{{- with .email }}
6+
{{- $authorEmail = . }}
7+
{{- end }}
8+
{{- end }}
9+
{{- else }}
10+
{{- with site.Author.email }}
11+
{{- $authorEmail = . }}
12+
{{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }}
13+
{{- end }}
14+
{{- end }}
15+
16+
{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}}
17+
{{- $authorName := "" }}
18+
{{- with site.Params.author }}
19+
{{- if reflect.IsMap . }}
20+
{{- with .name }}
21+
{{- $authorName = . }}
22+
{{- end }}
23+
{{- else }}
24+
{{- $authorName = . }}
25+
{{- end }}
26+
{{- else }}
27+
{{- with site.Author.name }}
28+
{{- $authorName = . }}
29+
{{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }}
30+
{{- end }}
31+
{{- end }}
32+
33+
{{- $pctx := . }}
34+
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
35+
{{- $pages := slice }}
36+
{{- if or $.IsHome $.IsSection }}
37+
{{- $pages = $pctx.RegularPages }}
38+
{{- else }}
39+
{{- $pages = $pctx.Pages }}
40+
{{- end }}
41+
{{- $limit := .Site.Config.Services.RSS.Limit }}
42+
{{- if ge $limit 1 }}
43+
{{- $pages = $pages | first $limit }}
44+
{{- end }}
45+
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
46+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
47+
<channel>
48+
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title>
49+
<link>{{ .Permalink }}</link>
50+
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
51+
<generator>Hugo -- gohugo.io</generator>
52+
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
53+
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
54+
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
55+
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
56+
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
57+
{{- with .OutputFormats.Get "RSS" }}
58+
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
59+
{{- end }}
60+
{{- range $pages }}
61+
<item>
62+
<title>{{ .Title }}</title>
63+
<link>{{ .Permalink }}</link>
64+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
65+
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
66+
<guid>{{ .Permalink }}</guid>
67+
<description>{{ .Content | html }}</description>
68+
</item>
69+
{{- end }}
70+
</channel>
71+
</rss>

0 commit comments

Comments
 (0)