Skip to content

Commit

Permalink
Merges rss branch into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
amandafrench committed Dec 19, 2024
2 parents 795c534 + d948411 commit 3c035bd
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ thumb = "https://assets.crossref.org/logo/crossref-logo-200.svg"
images = ['/img/crossref-social.png']
author = "Amanda French, Ginny Hendricks, Rachael Lammey, Fabienne Michaud, Maria Gould"
description = "Crossref has announced a long-term plan to deprecate the Open Funder Registry and merge it with ROR in order to make workflows more efficient for all concerned. ROR and Crossref are working closely together on this important initiative."
aliases = [ "/blog/2023-09-07-open-funder-registry-transition-ror-cross-post" ]
aliases = [ '/blog/2023-09-07-open-funder-registry-transition-ror-cross-post/' ]
+++

Crossref has announced a long-term plan to deprecate the Open Funder Registry and merge it with ROR in order to make workflows more efficient for all concerned. ROR and Crossref are working closely together on this important initiative, and we're happy to answer any questions that users of the Funder Registry may have. Feel free to write [email protected], [book a meeting with Amanda French](https://calendly.com/ror-chat), or attend a [ROR event](/events) if you'd like to learn more.
Expand Down
8 changes: 6 additions & 2 deletions dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ style = "turquoise"
theme = "hugo-ror"
pluralizelisttitles = "false"
summaryLength = 20
buildFuture = true
copyright = "All ROR IDs and metadata are provided under the Creative Commons CC0 1.0 Universal Public Domain Dedication https://creativecommons.org/publicdomain/zero/1.0/. All other content on ror.org is licensed under the Creative Commons Attribution 4.0 International License https://creativecommons.org/licenses/by/4.0/."

[params]
date_format = "January 2, 2006"
CSSVersion = 3
description = 'The Research Organization Registry (ROR) is a global, community-led registry of open persistent identifiers for research organizations. ROR aims to provide a persistent identifier (PID) for every research organization in the world, just as ORCID provides persistent identifiers for researchers and DOIs provide persistent identifiers for research outputs. All ROR data is open on the web and public domain via CC0, and the ROR dataset and API are free to use.'
title = 'Research Organization Registry (ROR)'
images = ['/img/ror-logo-800.png']


[params.author]
email = '[email protected]'
name = 'Research Organization Registry (ROR)'

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand Down
6 changes: 5 additions & 1 deletion live.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ style = "turquoise"
theme = "hugo-ror"
pluralizelisttitles = "false"
summaryLength = 20
copyright = "All ROR IDs and metadata are provided under the Creative Commons CC0 1.0 Universal Public Domain Dedication https://creativecommons.org/publicdomain/zero/1.0/. All other content on ror.org is licensed under the Creative Commons Attribution 4.0 International License https://creativecommons.org/licenses/by/4.0/."

[params]
date_format = "January 2, 2006"
Expand All @@ -13,6 +14,10 @@ summaryLength = 20
title = 'Research Organization Registry (ROR)'
images = ['/img/ror-logo-800.png']

[params.author]
email = '[email protected]'
name = 'Research Organization Registry (ROR)'

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand All @@ -29,7 +34,6 @@ summaryLength = 20
tags = true
archives = true


[params.carousel]
enable = false

Expand Down
9 changes: 7 additions & 2 deletions localhost.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ style = "turquoise"
theme = "hugo-ror"
pluralizelisttitles = "false"
summaryLength = 20
copyright = "All ROR IDs and metadata are provided under the Creative Commons CC0 1.0 Universal Public Domain Dedication https://creativecommons.org/publicdomain/zero/1.0/. All other content on ror.org is licensed under the Creative Commons Attribution 4.0 International License https://creativecommons.org/licenses/by/4.0/."

[params]
date_format = "January 2, 2006"
CSSVersion = 3
description = 'The Research Organization Registry (ROR) is a global, community-led registry of open persistent identifiers for research organizations. ROR aims to provide a persistent identifier (PID) for every research organization in the world, just as ORCID provides persistent identifiers for researchers and DOIs provide persistent identifiers for research outputs. All ROR data is open on the web and public domain via CC0, and the ROR dataset and API are free to use.'
title = 'Research Organization Registry (ROR)'
images = ['/img/ror-logo-800.png']


[params.author]
email = '[email protected]'
name = 'Research Organization Registry (ROR)'

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand All @@ -21,7 +26,7 @@ summaryLength = 20
[markup.tableOfContents]
endLevel = 2
ordered = false
startLevel = 2
startLevel = 2

[params.widgets]
search = true
Expand Down
5 changes: 5 additions & 0 deletions staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ style = "turquoise"
theme = "hugo-ror"
pluralizelisttitles = "false"
summaryLength = 20
copyright = "All ROR IDs and metadata are provided under the Creative Commons CC0 1.0 Universal Public Domain Dedication https://creativecommons.org/publicdomain/zero/1.0/. All other content on ror.org is licensed under the Creative Commons Attribution 4.0 International License https://creativecommons.org/licenses/by/4.0/."

[params]
date_format = "January 2, 2006"
Expand All @@ -13,6 +14,10 @@ summaryLength = 20
title = 'Research Organization Registry (ROR)'
images = ['/img/ror-logo-800.png']

[params.author]
email = '[email protected]'
name = 'Research Organization Registry (ROR)'

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand Down
42 changes: 42 additions & 0 deletions themes/hugo-ror/layouts/_default/blog.rss.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = (where (where $pctx.RegularPages ".Section" "blog") "Kind" "page") -}}
{{- else -}}
{{- $pages = (where (where $pctx.Pages ".Section" "blog") "Kind" "page") -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}
{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
{{ with .Site.Params.Author.email }}
<author>{{.}}</author>{{end}}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<author>{{ .Params.Author }}</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Description | html }}</description>
<content:encoded>{{ .Content | html }}></content:encoded>
</item>
{{ end }}
</channel>
</rss>
2 changes: 2 additions & 0 deletions themes/hugo-ror/layouts/partials/widgets/rss-feed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div class="card card-plain">
<h3 class="card-title"><a href="/blog/index.xml"><i class="fa-solid fa-rss" aria-hidden="true"></i> <span>RSS Feed</span></a></h3>

0 comments on commit 3c035bd

Please sign in to comment.