Update footer.html

This commit is contained in:
Guru Sabarish
2021-07-25 01:23:22 +05:30
committed by GitHub
parent bcc7661125
commit 6bbe6e4dec
+21 -16
View File
@@ -1,22 +1,19 @@
<footer>
<!-- recent posts -->
<div class="news container py-3">
<div class="news container py-3" data-aos="fade-up" data-aos-easing="linear" data-aos-once="true">
{{ if .Site.Params.recentposts }}
<div class="h3 text-center text-dark py-3 font-weight-bold">
Recent posts
</div>
<div class="h3 text-center text-dark py-3 font-weight-bold">Recent posts</div>
<div class="row justify-content-center">
{{ range ( where .Site.RegularPages "Type" "blog" | first 3 ) }}
<div class="col-lg-4 col-md-6 pt-2">
<a href="{{ .RelPermalink }}" class="post-card-link">
<div class="card h-100">
<div class="card-head px-2 py-3">
<div class="card px-2 h-100">
<div class="card-head py-3">
<h5 class="card-title font-weight-bold px-2">{{ .Title }}</h5>
<div class="px-2">{{ .Summary | truncate 300}}</div>
</div>
<div class="mt-auto card-footer">
<span class="float-left">
{{ .Date.Format "January 2, 2006" }}</span>
<span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
<a href="{{ .RelPermalink }}" class="float-right btn btn-outline-info btn-sm">Read</a>
</div>
</div>
@@ -54,10 +51,12 @@
</svg>
</a>
</span>
{{ end }} {{ if .Site.Params.linkedin }}
{{ end }}
{{ if .Site.Params.linkedin }}
<span class="px-1">
<a class="text-white text-decoration-none" href="{{ .Site.Params.linkedin }}" aria-label="linkedin">
<svg xmlns="http://www.w3.org/2000/svg" width="2.4em" height="2.4em" fill="#fff" aria-label="LinkedIn"
<svg xmlns="http://www.w3.org/2000/svg" width='2.4em' height='2.4em' fill="#fff" aria-label="LinkedIn"
viewBox="0 0 512 512">
<rect width="512" height="512" fill="#0077b5" rx="15%" />
<circle cx="142" cy="138" r="37" />
@@ -66,7 +65,9 @@
</svg>
</a>
</span>
{{ end }} {{ if .Site.Params.twitter }}
{{ end }}
{{ if .Site.Params.twitter }}
<a class="text-info text-decoration-none" href="{{ .Site.Params.twitter }}" aria-label="twitter">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px">
<path fill="#03a9f4"
@@ -75,7 +76,9 @@
d="M36,17.12c-0.882,0.391-1.999,0.758-3,0.88c1.018-0.604,2.633-1.862,3-3 c-0.951,0.559-2.671,1.156-3.793,1.372C31.311,15.422,30.033,15,28.617,15C25.897,15,24,17.305,24,20v2c-4,0-7.9-3.047-10.327-6 c-0.427,0.721-0.667,1.565-0.667,2.457c0,1.819,1.671,3.665,2.994,4.543c-0.807-0.025-2.335-0.641-3-1c0,0.016,0,0.036,0,0.057 c0,2.367,1.661,3.974,3.912,4.422C16.501,26.592,16,27,14.072,27c0.626,1.935,3.773,2.958,5.928,3c-1.686,1.307-4.692,2-7,2 c-0.399,0-0.615,0.022-1-0.023C14.178,33.357,17.22,34,20,34c9.057,0,14-6.918,14-13.37c0-0.212-0.007-0.922-0.018-1.13 C34.95,18.818,35.342,18.104,36,17.12" />
</svg>
</a>
{{ end }} {{ if .Site.Params.instagram }}
{{ end }}
{{ if .Site.Params.instagram }}
<a class="text-danger text-decoration-none" href="{{ .Site.Params.instagram }}" aria-label="instagram">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px">
<radialGradient id="yOrnnhliCrdS2gy~4tD8ma" cx="19.38" cy="42.035" r="44.899" gradientUnits="userSpaceOnUse">
@@ -103,7 +106,9 @@
d="M30,37H18c-3.859,0-7-3.14-7-7V18c0-3.86,3.141-7,7-7h12c3.859,0,7,3.14,7,7v12 C37,33.86,33.859,37,30,37z M18,13c-2.757,0-5,2.243-5,5v12c0,2.757,2.243,5,5,5h12c2.757,0,5-2.243,5-5V18c0-2.757-2.243-5-5-5H18z" />
</svg>
</a>
{{ end }} {{ if .Site.Params.facebook }}
{{ end }}
{{ if .Site.Params.facebook }}
<a class="text-info text-decoration-none" href="{{ .Site.Params.facebook }}" aria-label="facebook">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="48px" height="48px">
<path fill="#3F51B5"
@@ -120,8 +125,8 @@
<div class="col-md-4 text-center order-2 order-lg-1 order-md-1">
<div class="pb-2">
<a href="{{ .Site.BaseURL }}">
<img alt="Footer logo" src="{{ .Site.Params.favicon | default
" /images/favicon.png"}}" height="40px" width="40px">
<img alt="Footer logo" src="{{ .Site.Params.favicon | default " /images/favicon.png"}}" height="40px"
width="40px">
</a>
</div>
&copy; {{ dateFormat "2006" now }} All Rights Reserved
@@ -132,4 +137,4 @@
</div>
</div>
</div>
</footer>
</footer>