netlify build fix

This commit is contained in:
gurusabarish
2021-07-25 01:20:25 +05:30
2 changed files with 43 additions and 33 deletions
+39 -31
View File
@@ -5,13 +5,13 @@
<head> <head>
<title>{{- .Site.Title -}}</title> <title>{{- .Site.Title -}}</title>
<!-- stylesheets --> <!-- stylesheets -->
<link rel="stylesheet" href="/css/bootstrap.min.css" /> <link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/all.min.css" media="all" /> <link rel="stylesheet" href="/css/all.min.css" media="all">
<link rel="stylesheet" href="/css/fontawesome.min.css" media="all" /> <link rel="stylesheet" href="/css/fontawesome.min.css" media="all">
<link rel="stylesheet" href="/css/v1/v1.css" /> <link rel="stylesheet" href="/css/v1/v1.css">
<!-- Fonts --> <!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=PT+Serif&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=PT+Serif&display=swap" rel="stylesheet">
<meta name="description" content="{{ .Site.Params.description }}" /> <meta name="description" content="{{ .Site.Params.description }}">
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- partial "sections/v1/head.html" . -}} {{- partial "sections/v1/head.html" . -}}
</head> </head>
@@ -23,6 +23,7 @@
{{- partial "sections/v1/do_things.html" . -}} {{- partial "sections/v1/do_things.html" . -}}
{{- partial "sections/v1/projects.html" . -}} {{- partial "sections/v1/projects.html" . -}}
{{- partial "sections/v1/contact.html" . -}} {{- partial "sections/v1/contact.html" . -}}
{{- partial "sections/v1/footer.html" . -}} {{- partial "sections/v1/footer.html" . -}}
{{- partial "sections/v1/scripts.html" . -}} {{- partial "sections/v1/scripts.html" . -}}
</body> </body>
@@ -30,11 +31,11 @@
<head> <head>
<title>{{- .Site.Title -}}</title> <title>{{- .Site.Title -}}</title>
<meta name="description" content="{{ .Site.Params.description }}" /> <meta name="description" content="{{ .Site.Params.description }}">
<!-- Fonts --> <!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" /> <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet" <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet"
media="all" /> media="all">
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- partial "sections/v2/head.html" . -}} {{- partial "sections/v2/head.html" . -}}
</head> </head>
@@ -51,17 +52,15 @@
<head> <head>
<title>{{- .Site.Title -}}</title> <title>{{- .Site.Title -}}</title>
<meta name="description" content="{{ .Site.Params.description }}" /> <meta name="description" content="{{ .Site.Params.description }}">
<!-- Fonts --> <!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet"
<link media="all">
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet" />
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- partial "sections/v3/head.html" . -}} {{- partial "sections/v3/head.html" . -}}
<link rel="stylesheet" href="/css/v3/v3.css" media="all" /> <link rel="stylesheet" href="/css/v3/v3.css" media="all">
<link rel="stylesheet" href="/css/v3/navbar-footer.css" media="all" /> <link rel="stylesheet" href="/css/v3/navbar-footer.css" media="all">
<link rel="stylesheet" href="/css/v3/loader.css" /> <link rel="stylesheet" href="/css/v3/loader.css" />
<!-- aos --> <!-- aos -->
@@ -76,53 +75,61 @@
</script> </script>
<div> <div>
{{- partial "sections/v3/navbar.html" . -}} {{- partial "sections/v3/navbar.html" . -}}
{{ if .Site.Params.disable_home }} {{ if .Site.Params.disable_home }}
{{ else }} {{ else }}
{{- partial "sections/v3/home.html" . -}} {{- partial "sections/v3/home.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_about }} {{ if .Site.Params.disable_about }}
{{ else }} {{ else }}
{{- partial "sections/v3/about.html" . -}} {{- partial "sections/v3/about.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_experience }} {{ if .Site.Params.disable_experience }}
{{ else }} {{ else }}
{{- partial "sections/v3/experience.html" . -}} {{- partial "sections/v3/experience.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_education }} {{ if .Site.Params.disable_education }}
{{ else }} {{ else }}
{{- partial "sections/v3/education.html" . -}} {{- partial "sections/v3/education.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_projects }} {{ if .Site.Params.disable_projects }}
{{ else }} {{ else }}
{{- partial "sections/v3/projects.html" . -}} {{- partial "sections/v3/projects.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_achievements }} {{ if .Site.Params.disable_achievements }}
{{ else }} {{ else }}
{{- partial "sections/v3/achievements.html" . -}} {{- partial "sections/v3/achievements.html" . -}}
{{ end }} {{ end }}
{{ if .Site.Params.disable_contact }} {{ if .Site.Params.disable_contact }}
{{ else }} {{ else }}
{{- partial "sections/v3/contact.html" . -}} {{- partial "sections/v3/contact.html" . -}}
{{ end }} {{ end }}
{{- partial "sections/v3/footer.html" . -}} {{- partial "sections/v3/footer.html" . -}}
{{- partial "sections/v3/scripts.html" . -}} {{- partial "sections/v3/scripts.html" . -}}
</div> </div>
<script> <script>
/* /*
document.onreadystatechange = function () { document.onreadystatechange = function () {
if (document.readyState !== "complete") { if (document.readyState !== "complete") {
document.querySelector( document.querySelector(
"body").style.visibility = "hidden"; "body").style.visibility = "hidden";
document.querySelector( document.querySelector(
"#loader").style.visibility = "visible"; "#loader").style.visibility = "visible";
} else { } else {
document.querySelector( document.querySelector(
"#loader").style.display = "none"; "#loader").style.display = "none";
document.querySelector( document.querySelector(
"body").style.visibility = "visible"; "body").style.visibility = "visible";
} }
}; };
*/ */
$(".darkmode-label").click(function () { $(".darkmode-label").click(function () {
$("body").toggleClass("darkmode"); $("body").toggleClass("darkmode");
$(".fa-moon").toggleClass("d-none"); $(".fa-moon").toggleClass("d-none");
@@ -159,6 +166,7 @@
</script> </script>
</body> </body>
{{ else }} {{ else }}
{{ end }} {{ end }}
</html> </html>
@@ -4,8 +4,10 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="text-dark text-center h3">Achievements</div> <div class="text-dark text-center h3">Achievements</div>
<div class="row justify-content-center py-3 mx-2"> <div class="row justify-content-center py-3 mx-2">
{{ range .Site.Params.achievements }} {{ if .img }} {{ $img = .img }} {{ {{ range .Site.Params.achievements }}
end }} {{ if .img }}
{{ $img = .img }}
{{ end }}
<div class="col-md-5 achiv-out px-4 px-md-2 my-2" data-aos="fade-up" data-aos-easing="linear" <div class="col-md-5 achiv-out px-4 px-md-2 my-2" data-aos="fade-up" data-aos-easing="linear"
data-aos-duration="600" data-aos-once="true"> data-aos-duration="600" data-aos-once="true">
<div class="achiv-card d-flex align-items-end shadow-lg rounded" style="background-image: url({{ .img }});"> <div class="achiv-card d-flex align-items-end shadow-lg rounded" style="background-image: url({{ .img }});">