《简爱》单本源
This commit is contained in:
parent
04415f4989
commit
ff96c256e7
3 changed files with 54 additions and 0 deletions
13
config.yaml
13
config.yaml
|
@ -112,6 +112,14 @@ Params:
|
|||
SSQRSummary: >
|
||||
这世上真是嘛人都有:有的对别人下狠手表示厉害,也有人对自己下狠手显威风,有的把伤藏起来,以为耻辱,有的就挂在脸上,成了光荣的标记。<br /><br />
|
||||
网址:<a href="https://shufang.org">shufang.org</a>
|
||||
# 简爱
|
||||
JATitle: 简爱 - 一个人的书房
|
||||
JASubtitle: 我想你会喜欢爱尔兰的
|
||||
JAReader: 西子
|
||||
JACover: https://shufang.org/images/books/ja.png
|
||||
JASummary: >
|
||||
我右侧,绯红色窗幔的皱褶挡住了我的视线;左侧,明亮的玻璃窗庇护着我,使我既免受十一月阴沉天气的侵害,又不与外面的世界隔绝。<br /><br />
|
||||
网址:<a href="https://shufang.org">shufang.org</a>
|
||||
|
||||
menu:
|
||||
main:
|
||||
|
@ -181,6 +189,10 @@ outputFormats:
|
|||
mediaType: "application/rss+xml"
|
||||
baseName: "ssqr"
|
||||
isPlainText: true
|
||||
ja-xml:
|
||||
mediaType: "application/rss+xml"
|
||||
baseName: "ja"
|
||||
isPlainText: true
|
||||
|
||||
outputs:
|
||||
home:
|
||||
|
@ -195,3 +207,4 @@ outputs:
|
|||
- "jdsyr-xml"
|
||||
- "gdby-xml"
|
||||
- "ssqr-xml"
|
||||
- "ja-xml"
|
||||
|
|
41
layouts/_default/index.ja-xml.xml
Normal file
41
layouts/_default/index.ja-xml.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
{{- $rssHeader := partial "single-book-rss-header.xml" . -}}
|
||||
{{- htmlUnescape $rssHeader -}}
|
||||
|
||||
<title>{{ .Site.Params.JATitle }}</title>
|
||||
<description><![CDATA[{{ .Site.Params.JASummary }}]]></description>
|
||||
<copyright>{{ .Site.Params.podcastLicense }} 2012-{{ now.Format "2006"}} {{ .Site.Params.JATitle }}</copyright>
|
||||
|
||||
<image>
|
||||
<link>{{ .Site.Params.baseURL }}</link>
|
||||
<url>{{ .Site.Params.logo }}</url>
|
||||
<title>{{ .Site.Params.JATitle }}</title>
|
||||
</image>
|
||||
|
||||
<itunes:author>{{ .Site.Params.JAReader }}</itunes:author>
|
||||
<itunes:image href="{{ .Site.Params.JACover }}"/>
|
||||
<itunes:subtitle>{{ .Site.Params.JASubtitle }}</itunes:subtitle>
|
||||
<itunes:summary><![CDATA[{{ .Site.Params.JASummary }}]]></itunes:summary>
|
||||
|
||||
<itunes:owner>
|
||||
<itunes:name>{{ .Site.Params.JAReader }}</itunes:name>
|
||||
<itunes:email>{{ .Site.Params.email }}</itunes:email>
|
||||
</itunes:owner>
|
||||
|
||||
{{- partial "single-book-rss-itunes.xml" . -}}
|
||||
|
||||
{{- range (.Site.RegularPages.ByParam "date").Reverse -}}
|
||||
{{- if in .Params.books "ja" -}}
|
||||
<item>
|
||||
<itunes:author>{{ .Site.Params.JAReader }}</itunes:author>
|
||||
<itunes:image href="{{- if and (ne .Params.image nil) (ne .Params.image "") -}}
|
||||
{{ .Site.Params.baseURL }}{{ .Params.image }}
|
||||
{{ else }}
|
||||
{{- .Site.Params.JACover -}}
|
||||
{{- end -}}" />
|
||||
{{- partial "single-book-rss-content.xml" . -}}
|
||||
</item>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
</channel>
|
||||
</rss>
|
BIN
static/images/books/ja.png
Normal file
BIN
static/images/books/ja.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 773 KiB |
Loading…
Reference in a new issue