mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-30 21:34:23 +01:00
Compare commits
No commits in common. "10bb8b5578530af8274aa0f0dcb299aa925e09de" and "8a56acab670e949152919c8201b837eca1300996" have entirely different histories.
10bb8b5578
...
8a56acab67
5 changed files with 20 additions and 28 deletions
|
@ -1,15 +1,14 @@
|
||||||
<article class="col-sm-6 col-lg-4 mb-4 clearfix" data-wow-duration="500ms">
|
<article class="col-sm-6 col-lg-4 mb-4 clearfix" data-wow-duration="500ms">
|
||||||
<div class="card post-block border-glow-2">
|
<div class="card post-block border-glow-2">
|
||||||
<div class="card-img">
|
<div class="card-img">
|
||||||
<img class="img-fluid" src="{{ .Params.Image_webp | absURL }}" alt="{{ .Params.image_alt }}">
|
<img class="img-fluid" src="{{ .Params.Image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .Params.image | absURL }}'">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "get_tags.html" . }}
|
{{ partial "get_tags.html" . }}
|
||||||
|
|
||||||
<div class="content pt-0">
|
<div class="content pt-0">
|
||||||
<small>{{ .Params.Date | time.Format "2006-01-02" }}</small>
|
|
||||||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||||
<p>{{ .Plain | htmlUnescape | truncate 256 }}</p>
|
<p>{{ .Summary }}</p>
|
||||||
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
|
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,37 +9,30 @@
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row bg-one">
|
<div class="row bg-one">
|
||||||
|
|
||||||
<div class="col-lg-8 offset-lg-2 text-center">
|
<div class="col-lg-8 offset-lg-2 text-center">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
<img class="mt-4 mb-2 lozad rounded-3 img-fluid" src="{{ .Params.Image | absURL }}" alt="blog-image">
|
<ul class="list-inline mb-50">
|
||||||
|
|
||||||
<ul class="list-inline my-4 text-center">
|
|
||||||
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
|
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
|
||||||
<li class="list-inline-item">Published Date: {{ with site.Params.dateFormat | default "2006-01-02" | .Date.Format }} {{ . }} {{ end }}</li>
|
<li class="list-inline-item">Published Date: {{ with site.Params.dateFormat | default "2006-01-02" | .Date.Format }} {{ . }} {{ end }}</li>
|
||||||
<li class="list-inline-item">Last Modified: {{ with site.Params.dateFormat | default "2006-01-02" | .Lastmod.Format }} {{ . }} {{ end }}</li>
|
<li class="list-inline-item">Last Modified: {{ with site.Params.dateFormat | default "2006-01-02" | .Lastmod.Format }} {{ . }} {{ end }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<img class="img-fluid mb-50 lozad" src="{{ .Params.Image | absURL }}" alt="blog-image">
|
||||||
|
|
||||||
{{ partial "get_tags.html" . }}
|
{{ partial "get_tags.html" . }}
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h1 class="text-center mx-50 px-lg-5 px-md-5">{{ .Title }}</h1>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
<div class="col-lg-8 offset-lg-2">
|
<div class="col-lg-8 offset-lg-2">
|
||||||
|
<div class="post-single-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
{{ if site.Params.post_share }}
|
||||||
|
{{ partial "post_share.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-single-content">
|
<!-- comments -->
|
||||||
{{ .Content }}
|
{{ if site.Params.comments }}
|
||||||
</div>
|
{{ partial "comments.html" . }}
|
||||||
{{ if site.Params.post_share }}
|
{{ end }}
|
||||||
{{ partial "post_share.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- comments -->
|
|
||||||
{{ if site.Params.comments }}
|
|
||||||
{{ partial "comments.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="tagContainer">
|
<div class="tagContainer">
|
||||||
{{ range $index, $tag := (. | sort) }}
|
{{ range $index, $tag := (. | sort) }}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" "tags" $tag) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" "tags" $tag) }}
|
||||||
<a class="tags" href="{{ .Permalink }}/">#{{ $tag | urlize }}</a>
|
<a class="tags" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $tagCount $min) $fontStep) ) }}
|
{{ $currentFontSize := (add $smallestFontSize (mul (sub $tagCount $min) $fontStep) ) }}
|
||||||
{{ $weight := div (sub (math.Log $tagCount) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
|
{{ $weight := div (sub (math.Log $tagCount) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
|
||||||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weight)) }}
|
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weight)) }}
|
||||||
<a href="{{ "/tags/" | relURL }}{{ $name | urlize }}/"
|
<a href="{{ "/tags/" | relURL }}{{ $name | urlize }}"
|
||||||
class="tagcloud-item" style="font-size: {{ $currentFontSize }}rem;">
|
class="tagcloud-item" style="font-size: {{ $currentFontSize }}rem;">
|
||||||
{{ $name }}<sup>{{ $tagCount }}</sup>
|
{{ $name }}<sup>{{ $tagCount }}</sup>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}/">{{ $tag | urlize }}</a>
|
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{- end -}} {{- end -}}
|
{{- end -}} {{- end -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue