forked from themefisher/meghna-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add page with informations about posts authors
- Loading branch information
1 parent
f2d7830
commit 2069277
Showing
14 changed files
with
205 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Jamica Jock | ||
email: [email protected] | ||
github: example | ||
--- | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin eu magna arcu. Vivamus id hendrerit dui, in elementum ante. Aenean euismod ipsum sed sagittis accumsan. Ut ultrices tincidunt viverra. Mauris eu nisl urna. Proin finibus feugiat tortor ut interdum. Curabitur. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: John Doe | ||
email: [email protected] | ||
github: example | ||
--- | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam pulvinar turpis ac est vulputate egestas at vitae nunc. Praesent vestibulum nulla at ligula rutrum, quis cursus tellus tempus. Proin faucibus dapibus auctor. Mauris faucibus imperdiet metus, eget consectetur eros porttitor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Somrat | ||
email: [email protected] | ||
github: example | ||
--- | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet vulputate augue. Duis auctor lacus id vehicula gravida. Nam suscipit vitae purus et laoreet. Donec nisi dolor, consequat vel pretium id, auctor in dui. Nam iaculis, neque ac ullamcorper. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
<article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp" data-wow-duration="500ms"> | ||
<div class="post-block"> | ||
<div class="media-wrapper"> | ||
{{ with .Params.image }}<img src="{{ . | absURL }}" alt="post-image" class="img-fluid">{{ end }} | ||
</div> | ||
|
||
<div class="content"> | ||
<h3><a href="{{ .Permalink }}">{{ with .Params.name}}{{.}}{{else}}{{ .Title }}{{end}}</a></h3> | ||
<p>{{ .Summary }}</p> | ||
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a> | ||
</div> | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{{ define "main" }} | ||
|
||
{{ partial "navigation.html" . }} | ||
{{ if .Content}} | ||
<section class="section section-bg"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<div class="title text-center"> | ||
<h2> {{ with i18n "aboutAuthor" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> {{ with i18n "aboutAuthor" }} {{ index (split . " ") 1 }} {{ end }} </span></h2> | ||
<div class="border-meghna"></div> | ||
</div> | ||
<div class="content text-center"> | ||
{{ partial "author-figure" . }} | ||
<hr> | ||
{{ .Content }} | ||
<hr> | ||
<div class="list-group"> | ||
{{ with .Params.github }} | ||
<div> | ||
<i class="tf-ion-social-github-outline mr-1"></i> | ||
<span>GitHub: <a href="https://github.com/{{.}}">github.com/{{.}}</a> | ||
</span> | ||
</div> | ||
{{ end }} | ||
|
||
{{ with .Params.facebook }} | ||
<div> | ||
<i class="tf-ion-social-facebook-outline mr-1"></i> | ||
<span>Facebook: <a href="https://facebook.com/{{.}}">facebook.com/{{.}}</a> | ||
</span> | ||
</div> | ||
{{ end }} | ||
|
||
{{ with .Params.twitter }} | ||
<div> | ||
<i class="tf-ion-social-twitter-outline mr-1"></i> | ||
<span>Twitter: <a href="https://twitter.com/{{.}}">twitter.com/{{.}}</a> | ||
</span> | ||
</div> | ||
{{ end }} | ||
|
||
{{ with .Params.instagram }} | ||
<div> | ||
<i class="tf-ion-social-instagram-outline mr-1"></i> | ||
<span>Instagram: <a href="https://instagram.com/{{.}}">instagram.com/{{.}}</a> | ||
</span> | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{{ end }} | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<div class="title text-center"> | ||
<h2> {{ with i18n "authorsPosts" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> {{ with i18n "authorsPosts" }} {{ index (split . " ") 1 }} {{ end }}</h2> | ||
<div class="border-meghna"></div> | ||
</div> | ||
</div> | ||
{{ range .Data.Pages }} | ||
{{ .Render "article" }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{ define "main" }} | ||
{{ partial "navigation.html" . }} | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<div class="title text-center"> | ||
<h2> {{ with i18n "authorsOfPosts" }} {{ index (split . " ") 0 }} <span class="color"> {{ index (split . " ") 1 }} {{ index (split . " ") 2 }} {{ end }} </span></h2> | ||
<div class="border-meghna"></div> | ||
</div> | ||
</div> | ||
|
||
{{ range .Data.Pages }} | ||
<article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp" data-wow-duration="500ms"> | ||
<div class="post-block"> | ||
<div class="media-wrapper"> | ||
<div class="content"> | ||
<figure> | ||
{{ if .Params.photo }} | ||
<img class="rounded-circle img-fluid pt-2" src="{{.Params.Photo}}"> | ||
{{else if .Params.email}} | ||
<img class="rounded-circle img-fluid pt-2" src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon"> | ||
{{ end }} | ||
<figcaption> | ||
<h5 class="font-weight-bold"> | ||
{{ .Params.name }} | ||
</h5> | ||
<p>{{ .Summary }}</p> | ||
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a> | ||
</figcaption> | ||
</figure> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<figure> | ||
{{ if .Params.photo }} | ||
<img class="rounded-circle img-fluid" src="{{.Params.Photo}}"> | ||
{{else if .Params.email}} | ||
<img class="rounded-circle img-fluid" src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon"> | ||
{{ end }} | ||
<figcaption> | ||
<h5 class="font-weight-bold"> | ||
{{ .Params.name }} | ||
</h5> | ||
</figcaption> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters