feat(rss): add rssFullText param for RSS (#301)

This commit is contained in:
Dillon
2020-05-01 23:29:24 +08:00
committed by GitHub
parent 5b689bf29b
commit e3e3bdf9ee
32 changed files with 113 additions and 127 deletions

View File

@@ -1,5 +1,5 @@
{{- $content := .Inner | transform.Unmarshal | jsonify -}}
{{- $id := partial "function/id.html" (dict "content" $content "scratch" .Page.Scratch) -}}
{{- $id := dict "content" $content "scratch" .Page.Scratch | partial "function/id.html" -}}
{{- $width := cond .IsNamedParams (.Get "width") (.Get 0) | default "100%" -}}
{{- $height := cond .IsNamedParams (.Get "height") (.Get 1) | default "30rem" -}}
<div class="echarts" id="{{ $id }}" style="width: {{ $width }}; height: {{ $height }};"></div>