From 4e0fdeace78f310d3d60b004e2e06f825e3c233e Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sat, 11 Apr 2020 13:26:45 +0530 Subject: [PATCH] Remove markdown from description. Fix RSS. --- content/posts/React-Native-with-Gitlab-CI.md | 6 +-- layouts/_default/rss.xml | 39 ++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 layouts/_default/rss.xml diff --git a/content/posts/React-Native-with-Gitlab-CI.md b/content/posts/React-Native-with-Gitlab-CI.md index 4202dd2..4355613 100644 --- a/content/posts/React-Native-with-Gitlab-CI.md +++ b/content/posts/React-Native-with-Gitlab-CI.md @@ -6,7 +6,7 @@ authorTwitter = "" #do not include @ cover = "" tags = ["react-native", "javascript", "gitlab"] keywords = ["react-native", "javascript", "gitlab", "ci", "cd"] -description = "Recently, I decided to set up automated builds for [Sonzai](https://gitlab.com/ceda_ei/sonzai.git)." +description = "Recently, I decided to set up automated builds for Sonzai" showFullContent = false aliases = [ "/2020/04/06/React-Native-with-Gitlab-CI.html" @@ -16,8 +16,8 @@ aliases = [ ## Introduction The aim of setting up CI/CD is to automatically build the app on every commit -and send the APK. I looked into Gitlab CI/CD for this purpose since my [project -repository](https://gitlab.com/ceda_ei/sonzai/) is already hosted on Gitlab. +and send the APK. I looked into Gitlab CI/CD for this purpose since +[Sonzai](https://gitlab.com/ceda_ei/sonzai/) is already hosted on Gitlab. ## Build Stage diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..ea5fd95 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,39 @@ +{{- $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{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.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 .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + +