This commit is contained in:
gurusabarish
2020-09-28 12:18:26 +05:30
parent 9ccb3e1193
commit bdce5b0bce
13 changed files with 11346 additions and 58 deletions
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{- partial "head.html" . -}}
<!-- stylesheets -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
</head>
<body>
{{- partial "header.html" . -}}
<div class="bg-light row justify-centent-center py-5">
<div class="display-4 font-weight-bold text-center col p-5">
404 page not found
<div class="text-center p-5">
<a href="{{ .Site.BaseURL }}" class="font-weight-bold btn btn-primary rounded-pill p-3 mb-2">Back to our
site</a>
</div>
</div>
</div>
<div class="fixed-bottom">
{{- partial "footer.html" . -}}
</div>
</div>
{{- partial "scripts.html" . -}}
</body>
</html>
+11 -11
View File
@@ -2,22 +2,22 @@
<html lang="en">
<head>
{{- partial "head.html" . -}}
<meta name="description" content="{{ .Params.description }}" />
{{- partial "head.html" . -}}
<meta name="description" content="{{ .Params.description }}" />
<!-- stylesheets -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/blog.css">
<!-- stylesheets -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/blog.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=PT+Serif&display=swap" rel="stylesheet">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Peddana&display=swap" rel="stylesheet">
</head>
<body>
{{- partial "header.html" . -}}
{{- block "main" . -}}{{- end }}
{{- partial "footer.html" . -}}
{{- partial "scripts.html" . -}}
{{- partial "header.html" . -}}
{{- block "main" . -}}{{- end }}
{{- partial "footer.html" . -}}
{{- partial "scripts.html" . -}}
</body>
+20 -27
View File
@@ -1,15 +1,12 @@
{{ define "main" }}
<section>
<section class="bg-light">
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-8">
<!-- title and date -->
<div>
<br>
<div class="p-2">
<h1>{{.Title}}</h1>
<div class="text-muted">
<!-- Date -->
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-calendar" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
@@ -42,44 +39,39 @@
</svg>
</a>
{{ end}}
</div>
</div>
<!-- image -->
<br>
<div>
<div class="py-2">
{{ with .Params.bg_image }}
<img class="img-fluid" src="{{ . | absURL }}">
<img class="img-fluid" src="{{ . }}">
{{ end }}
</div>
<!-- content -->
<br>
<div>{{.Content}}</div>
<article>
{{.Content}}
</article>
<!-- Tags -->
<div class="row justify-content-center pt-3">
<div class="col-lg-7 col-md-7">
<div class=" mb-4 pt-3">
<div class="card shadow ">
<h5 class="card-header bg-warning">Tags</h5>
<div class=" card-body">
{{ if .Params.tags }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}"
class="btn btn-warning rounded-pill mb-2">{{ . }}</a>
{{end}}
{{end}}
</div>
</a>
</div>
<div class="mb-4 pt-3">
<div class="card shadow ">
<h5 class="card-header bg-warning">Tags</h5>
<div class=" card-body">
{{ if .Params.tags }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}"
class="btn btn-warning rounded-pill mb-2">{{ . }}</a>
{{end}}
{{end}}
</div>
</a>
</div>
</div>
<br>
<div id="disqus_thread"></div>
<script>
/**
@@ -101,6 +93,7 @@
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
</div>
</div>
</div>
-4
View File
@@ -1,7 +1,3 @@
{{ define "main" }}
{{ end }}
<!DOCTYPE html>
<html lang="en">
+5
View File
@@ -17,6 +17,11 @@
<li class="nav-item">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}#projects">Projects</a>
</li>
{{ if .Site.Params.contact }}
<li class="nav-item">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}#contact">Contact</a>
</li>
{{ end }}
{{ range site.Params.customMenus }}
<li class="nav-item">
+5 -5
View File
@@ -1,21 +1,21 @@
{{ if eq .Site.Params.contact "true"}}
{{ if .Site.Params.contact }}
<section id="contact">
<div class="contact bg-danger text-white">
<div class="text-center p-3 font-weight-bold contact-head">Get In Tough</div>
<div class="p-3 container">
<div class="row justify-content-center">
<div class="col-lg-7">
<form action="https://formspree.io/xzbkbvgg" method="POST">
<form action="{{ .Site.Params.action }}" method="POST">
<div class="form-group">
<label for="exampleFormControlInput1">Email</label>
<input type="email" class="form-control" id="exampleFormControlInput1"
placeholder="[email protected]" name="Gmail">
placeholder="[email protected]" name="{{ .Site.Params.emailname }}">
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Message</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" name="message"
placeholder="Type something"></textarea>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"
name="{{ .Site.Params.messagename }}" placeholder="Type something"></textarea>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Submit</button>
+1 -1
View File
@@ -19,7 +19,7 @@
<li class="nav-item navbar-text">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}#projects">Projects</a>
</li>
{{ if eq .Site.Params.contact "true"}}
{{ if .Site.Params.contact }}
<li class="nav-item navbar-text">
<a class="nav-link text-dark" href="{{ .Site.BaseURL }}#contact">Contact</a>
</li>