Pārlūkot izejas kodu

Add translation for blog

tags/v1.0.0
hawkeye116477 pirms 6 gadiem
vecāks
revīzija
a5c5ba29d0
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 0
- 2
exampleSite/data/blog.yml Parādīt failu

enable : true enable : true
heading : Latest
headingSpan : Posts
sharing : true sharing : true
staticmanComments: staticmanComments:
enable: false enable: false

+ 2
- 0
exampleSite/data/en/blog.yml Parādīt failu

heading : Latest
headingSpan : Posts

+ 2
- 0
exampleSite/data/pl/blog.yml Parādīt failu

heading : Najnowsze
headingSpan : wpisy

+ 7
- 1
i18n/en.yaml Parādīt failu

- id: commentNotify - id: commentNotify
translation: Notify me of new comments on this post translation: Notify me of new comments on this post
- id: addComment - id: addComment
translation: Add comment
translation: Add comments
- id: readMore
translation: Read more
- id: viewAllPost
translation: View All Post
- id: share
translation: Share

+ 6
- 0
i18n/pl.yaml Parādīt failu

translation: Powiadom mnie o nowych komentarzach do tego wpisu translation: Powiadom mnie o nowych komentarzach do tego wpisu
- id: addComment - id: addComment
translation: Dodaj komentarz translation: Dodaj komentarz
- id: readMore
translation: Czytaj więcej
- id: viewAllPost
translation: Wyświetl wszystkie wpisy
- id: share
translation: Podziel się

+ 1
- 1
layouts/_default/list.html Parādīt failu

<div class="content"> <div class="content">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p>{{ .Summary }}</p> <p>{{ .Summary }}</p>
<a class="btn btn-transparent" href="{{ .Permalink }}">Read more</a>
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
</div> </div>
</div> </div>
</article> </article>

+ 5
- 4
layouts/partials/blog.html Parādīt failu

{{ if .Site.Data.blog.enable}} {{ if .Site.Data.blog.enable}}
{{"<!-- Start Blog Section -->" | safeHTML}} {{"<!-- Start Blog Section -->" | safeHTML}}
{{ $data := index .Site.Data .Site.Language.Lang }}
<section id="blog" class="section"> <section id="blog" class="section">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
{{"<!-- section title -->" | safeHTML}} {{"<!-- section title -->" | safeHTML}}
<div class="title text-center wow fadeInDown"> <div class="title text-center wow fadeInDown">
<h2> {{ with .Site.Data.blog.heading }} {{ . }} {{ end }} <span class="color"> {{ with .Site.Data.blog.headingSpan }} {{ . }} {{ end }} </span></h2>
<h2> {{ with $data.blog.heading }} {{ . }} {{ end }} <span class="color"> {{ with $data.blog.headingSpan }} {{ . }} {{ end }} </span></h2>
<div class="border-meghna"></div> <div class="border-meghna"></div>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3> <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p>{{ .Summary }}</p> <p>{{ .Summary }}</p>
<a class="btn btn-transparent" href="{{ .Permalink }}">Read more</a>
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
</div> </div>
</div> </div>
</article> </article>
{{ end }} {{ end }}


<div class="all-post text-center col-lg-12"> <div class="all-post text-center col-lg-12">
<a class="btn btn-main" href="/blog">View All Post</a>
<a class="btn btn-main" href="/blog">{{ i18n "viewAllPost" }}</a>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{{"<!-- /blog -->" | safeHTML}} {{"<!-- /blog -->" | safeHTML}}
{{ end }}
{{ end }}

+ 1
- 1
layouts/partials/share_post.html Parādīt failu

{{ $url := printf "%s" .Permalink | absLangURL }} {{ $url := printf "%s" .Permalink | absLangURL }}
<!-- Sharingbutton Facebook --> <!-- Sharingbutton Facebook -->
<div class="social-share pt-4"> <div class="social-share pt-4">
<h4>Share:</h4>
<h4>{{ i18n "share" }}:</h4>
<!-- Sharingbutton Facebook --> <!-- Sharingbutton Facebook -->
<a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ $url }}" target="_blank" rel="noopener" aria-label=""> <a class="resp-sharing-button__link" href="https://facebook.com/sharer/sharer.php?u={{ $url }}" target="_blank" rel="noopener" aria-label="">
<div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid"> <div class="resp-sharing-button resp-sharing-button--facebook resp-sharing-button--small"><div aria-hidden="true" class="resp-sharing-button__icon resp-sharing-button__icon--solid">

Notiek ielāde…
Atcelt
Saglabāt