feat: finish CV
This commit is contained in:
parent
941c59b7a7
commit
187900fd5b
16 changed files with 1604 additions and 166 deletions
|
@ -2,13 +2,13 @@
|
|||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = where $pctx.RegularPages "Params.redact" "ne" true -}}
|
||||
{{- $pages = where $pctx.RegularPages "Params.redact" "ne" true -}}
|
||||
{{- else -}}
|
||||
{{- $pages = where $pctx.Pages "Params.redact" "ne" true -}}
|
||||
{{- $pages = where $pctx.Pages "Params.redact" "ne" true -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- $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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue