File tree Expand file tree Collapse file tree 4 files changed +25
-7
lines changed
exampleSite/content/quote
layouts/partials/content-type Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : " {{ replace .Name " -" " " | title }}"
3+ date : {{ .Date }}
4+ draft : true
5+
6+ author : " "
7+ quoteAuthor : " "
8+ quoteAuthorLink : " "
9+ categories : []
10+ tags : []
11+ ---
Original file line number Diff line number Diff line change 22title : " Edward Snowden About Privacy"
33date : 2021-11-01T13:01:14+01:00
44
5- author : " Edward Snowden"
5+ author : " Lednerb"
6+ quoteAuthor : " Edward Snowden"
7+ quoteAuthorLink : " https://en.wikipedia.org/wiki/Edward_Snowden"
68categories : ['Privacy', 'Society']
79tags : ['free speech']
810---
Original file line number Diff line number Diff line change 22title : " Albert Einstein - Sinn Des Lebens"
33date : 2021-11-01T14:40:32+01:00
44
5+ author : " Lednerb"
6+ quoteAuthor : " Albert Einstein"
7+ quoteAuthorLink : " https://de.wikipedia.org/wiki/Albert_Einstein"
58categories : ['Zitate']
6- author : " Albert Einstein"
79---
810Der Sinn des Lebens besteht nicht darin ein erfolgreicher Mensch zu sein, sondern ein wertvoller.
Original file line number Diff line number Diff line change 99
1010 < blockquote >
1111 {{ .ctx.Content }}
12- {{ $urlValue := replace .ctx.Params.author " " "-" | lower}}
1312 < cite >
14- < a href ="{{ (print "/author/" $urlValue) | relLangURL }}">
15- {{ .ctx.Params.author }}
16- </ a >
13+ {{ if .ctx.Params.quoteAuthorLink }}
14+ < a href ="{{ .ctx.Params.quoteAuthorLink }} " target ="_blank " rel ="noopener noreferrer ">
15+ {{ .ctx.Params.quoteAuthor }}
16+ </ a >
17+ {{ else }}
18+ {{ .ctx.Params.quoteAuthor }}
19+ {{ end }}
1720 </ cite >
1821 </ blockquote >
19- </ article >
22+ </ article >
You can’t perform that action at this time.
0 commit comments