Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 3e9292c

Browse files
authored
Merge pull request #560 from devopsdays/fix-cfp-rss#540
Fix bad printf statement in feed generators
2 parents ccf6eb1 + df15386 commit 3e9292c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

layouts/section/events.rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
{{- if ge (dateFormat "2006-01-02" .enddate) (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) -}}
2424
<item>
2525
<title>devopsdays {{ .city }} {{ .year }}</title>
26-
<link>{{ (printf "events/" .name) | absURL }}</link>
27-
<guid>{{ (printf "events/" .name) | absURL }}</guid>
26+
<link>{{ (printf "events/%s" .name) | absURL }}</link>
27+
<guid>{{ (printf "events/%s" .name) | absURL }}</guid>
2828
<pubDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" now }}</pubDate>
2929
{{ if .description }}
3030
<description>{{.description | markdownify | htmlEscape}}</description>

layouts/section/speaking.rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
{{ if ge (dateFormat "2006-01-02" .cfp_date_end) (dateFormat "2006-01-02" (dateFormat "2006-01-02" now)) }}
2626
<item>
2727
<title>devopsdays {{ .city }} {{ .year }}</title>
28-
<link>{{ (printf "events/" .name) | absURL }}</link>
29-
<guid>{{ (printf "events/" .name) | absURL }}</guid>
28+
<link>{{ (printf "events/%s" .name) | absURL }}</link>
29+
<guid>{{ (printf "events/%s" .name) | absURL }}</guid>
3030
<pubDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" now }}</pubDate>
3131
{{ if .description }}
3232
<description>{{.description }}</description>

0 commit comments

Comments
 (0)