Merge pull request #202 from igorkulman/related-posts
Showing related posts
This commit is contained in:
commit
f5db9161c0
@ -25,6 +25,7 @@ pygmentsCodefencesGuessSyntax = true
|
|||||||
readingTime = true
|
readingTime = true
|
||||||
useHLJS = true
|
useHLJS = true
|
||||||
socialShare = true
|
socialShare = true
|
||||||
|
showRelatedPosts = true
|
||||||
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
|
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
|
||||||
|
|
||||||
#[[Params.bigimg]]
|
#[[Params.bigimg]]
|
||||||
|
@ -62,3 +62,7 @@
|
|||||||
translation: "Seu email"
|
translation: "Seu email"
|
||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Seu website"
|
translation: "Seu website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Veja também"
|
@ -63,4 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Siehe auch"
|
@ -63,4 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "See also"
|
@ -62,3 +62,7 @@
|
|||||||
translation: "Via retpoŝtadreso"
|
translation: "Via retpoŝtadreso"
|
||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Via retpaĝaro"
|
translation: "Via retpaĝaro"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Vidu ankaŭ"
|
@ -63,5 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Ver también"
|
@ -62,3 +62,7 @@
|
|||||||
translation: "Votre addresse mail"
|
translation: "Votre addresse mail"
|
||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Votre site web"
|
translation: "Votre site web"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Voir également"
|
@ -63,4 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Il tuo website"
|
translation: "Il tuo website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Guarda anche"
|
@ -63,6 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "も参照してください"
|
@ -63,4 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Din webside"
|
translation: "Din webside"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Se også"
|
@ -62,3 +62,7 @@
|
|||||||
translation: "Jouw e-mailadres"
|
translation: "Jouw e-mailadres"
|
||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "Jouw website"
|
translation: "Jouw website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Zie ook"
|
@ -63,5 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Zobacz też"
|
@ -63,6 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Смотрите также"
|
@ -63,5 +63,6 @@
|
|||||||
- id: yourWebsite
|
- id: yourWebsite
|
||||||
translation: "You website"
|
translation: "You website"
|
||||||
|
|
||||||
|
# Related posts
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "也可以看看"
|
@ -21,6 +21,18 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .Site.Params.showRelatedPosts }}
|
||||||
|
{{ $related := .Site.RegularPages.Related . | first 3 }}
|
||||||
|
{{ with $related }}
|
||||||
|
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
||||||
|
<ul>
|
||||||
|
{{ range . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ if ne .Type "page" }}
|
{{ if ne .Type "page" }}
|
||||||
|
@ -742,3 +742,8 @@ div.splitbox div.right {
|
|||||||
display:inline-block;
|
display:inline-block;
|
||||||
float:left;}
|
float:left;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Related posts */
|
||||||
|
h4.see-also {
|
||||||
|
margin-top: 20px
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user