Adds references to posts
This commit is contained in:
parent
fb57ca43fc
commit
a3de983ff2
5 changed files with 51 additions and 1 deletions
2
data/en/references.yaml
Normal file
2
data/en/references.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
by: by
|
2
data/es/references.yaml
Normal file
2
data/es/references.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
by: por
|
|
@ -179,3 +179,31 @@ figcaption > p {
|
|||
footer a.footerlink {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
content .blog-reference {
|
||||
width: 100% - 20px;
|
||||
border: 1px solid;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
content .blog-reference p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
content .blog-reference p.blog-reference-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
content .blog-reference p.blog-reference-title > a{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
content .blog-reference p.blog-reference-subtitle {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
content .blog-reference p.blog-reference-description {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
|
|
@ -65,7 +65,16 @@
|
|||
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
|
||||
<content:encoded>{{ `<![CDATA[` | safeHTML }}{{ .Content | safeHTML }}{{ `]]>` | safeHTML }}</content:encoded>
|
||||
<content:encoded>{{ `<![CDATA[` | safeHTML }}
|
||||
|
||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
||||
{{ range (.Params.references) }}
|
||||
{{ `<p><a href="` | safeHTML }}{{ .url }}{{ `">` | safeHTML }}{{ .name }}{{ `</a>` | safeHTML }} {{ $data.references.by }} {{ .author }}: {{ .description }}{{ `</p>` | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
{{ .Content | safeHTML }}
|
||||
|
||||
{{ `]]>` | safeHTML }}</content:encoded>
|
||||
</item>
|
||||
{{- end }}
|
||||
</channel>
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
</p>
|
||||
{{ end }}
|
||||
<content>
|
||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
||||
{{ range (.Params.references) }}
|
||||
<div class="blog-reference">
|
||||
<p class="blog-reference-title"><a href="{{ .url }}">{{ .name }}</a></p>
|
||||
<p class="blog-reference-subtitle">{{ $data.references.by }} {{ .author }}</p>
|
||||
<p class="blog-reference-description">{{ .description }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
</content>
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue