Browse Source

updates for post

pull/141/head
abhidj0090 4 years ago
parent
commit
96a8a5a6df
2 changed files with 7 additions and 2 deletions
  1. 5
    1
      layouts/_default/single.html
  2. 2
    1
      layouts/lectures/single.html

+ 5
- 1
layouts/_default/single.html View File

@@ -8,7 +8,8 @@
<div class="col-lg-8 offset-lg-2 text-center">
<h1>{{ .Title }}</h1>
<ul class="list-inline mb-50">
<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">{{ .Params.author.name }}</li>
<li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
</ul>
<img class="img-fluid mb-50 lozad" data-src="{{ .Params.Image | absURL }}" alt="blog-image">
@@ -17,6 +18,9 @@
<div class="post-single-content">
{{ .Content }}
</div>
<div class="mt-2">
{{ .Params.author.short_bio }}
</div>
{{ if site.Params.post_share }}
{{ partial "post-share.html" . }}
{{ end }}

+ 2
- 1
layouts/lectures/single.html View File

@@ -8,7 +8,8 @@
<div class="col-lg-8 offset-lg-2 text-center">
<h1>{{ .Title }}</h1>
<ul class="list-inline mb-50">
<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">{{ .Params.Author }}</li>
<li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
</ul>
<img class="img-fluid mb-50 lozad" data-src="{{ .Params.Image | absURL }}" alt="blog-image">

Loading…
Cancel
Save