mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
Use doublequotes when possible
This commit is contained in:
parent
2689fddc64
commit
ef4cd37814
29 changed files with 64 additions and 62 deletions
|
@ -1,27 +1,27 @@
|
||||||
// Nav burger animation
|
// Nav burger animation
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
// Get all "navbar-burger" elements
|
// Get all "navbar-burger" elements
|
||||||
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"), 0);
|
||||||
// Check if there are any navbar burgers
|
// Check if there are any navbar burgers
|
||||||
if ($navbarBurgers.length > 0) {
|
if ($navbarBurgers.length > 0) {
|
||||||
// Add a click event on each of them
|
// Add a click event on each of them
|
||||||
$navbarBurgers.forEach(function ($el) {
|
$navbarBurgers.forEach(function ($el) {
|
||||||
$el.addEventListener('click', function () {
|
$el.addEventListener("click", function () {
|
||||||
// Get the target from the "data-target" attribute
|
// Get the target from the "data-target" attribute
|
||||||
var target = $el.dataset.target;
|
var target = $el.dataset.target;
|
||||||
var $target = document.getElementById(target);
|
var $target = document.getElementById(target);
|
||||||
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
|
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
|
||||||
$el.classList.toggle('is-active');
|
$el.classList.toggle("is-active");
|
||||||
$target.classList.toggle('is-active');
|
$target.classList.toggle("is-active");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bitty scrolling links script
|
// Bitty scrolling links script
|
||||||
$('a[href^="#"]').click(function(e) {
|
$("a[href^=\"#\"]").click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('html, body').animate({
|
$("html, body").animate({
|
||||||
scrollTop: $(this.hash).offset().top
|
scrollTop: $(this.hash).offset().top
|
||||||
}, 500);
|
}, 500);
|
||||||
$("#nav-menu").removeClass("is-active");
|
$("#nav-menu").removeClass("is-active");
|
||||||
|
@ -29,17 +29,17 @@ $('a[href^="#"]').click(function(e) {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Modal closer
|
// Modal closer
|
||||||
$('.card').click(function () {
|
$(".card").click(function () {
|
||||||
$($(this).attr('data-target')).addClass('is-active');
|
$($(this).attr("data-target")).addClass("is-active");
|
||||||
$("html").addClass("modal-open");
|
$("html").addClass("modal-open");
|
||||||
});
|
});
|
||||||
$('.modal-close').click(function () {
|
$(".modal-close").click(function () {
|
||||||
$($(this).attr('data-target')).removeClass('is-active');
|
$($(this).attr("data-target")).removeClass("is-active");
|
||||||
$("html").removeClass("modal-open");
|
$("html").removeClass("modal-open");
|
||||||
});
|
});
|
||||||
$(document).keypress(function(e) {
|
$(document).keypress(function(e) {
|
||||||
if(e.which == 0) {
|
if(e.which == 0) {
|
||||||
$('.modal.is-active').removeClass('is-active');
|
$(".modal.is-active").removeClass("is-active");
|
||||||
$("html").removeClass("modal-open");
|
$("html").removeClass("modal-open");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
|
var time = moment().tz("{{ .Site.Params.home.timeZone }}").format("h:mm A");
|
||||||
$('#time').html(time);
|
$("#time").html(time);
|
||||||
})
|
})
|
||||||
|
|
|
@ -96,6 +96,17 @@ hr
|
||||||
font-size: 1rem
|
font-size: 1rem
|
||||||
line-height: 2rem
|
line-height: 2rem
|
||||||
|
|
||||||
|
.social-icons
|
||||||
|
padding: 0 10px
|
||||||
|
|
||||||
|
.icon
|
||||||
|
height: 2rem
|
||||||
|
width: 2rem
|
||||||
|
margin: 0 10px
|
||||||
|
|
||||||
|
.fab
|
||||||
|
font-size: 21px
|
||||||
|
|
||||||
.blog-share
|
.blog-share
|
||||||
.icon
|
.icon
|
||||||
height: 1rem
|
height: 1rem
|
||||||
|
@ -113,16 +124,7 @@ hr
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
|
|
||||||
.social-icons
|
|
||||||
padding: 0 10px
|
|
||||||
|
|
||||||
.icon
|
|
||||||
height: 2rem
|
|
||||||
width: 2rem
|
|
||||||
margin: 0 10px
|
|
||||||
|
|
||||||
.fab
|
|
||||||
font-size: 21px
|
|
||||||
|
|
||||||
.footer-text
|
.footer-text
|
||||||
font-size: 0.8em
|
font-size: 0.8em
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
/* vietnamese */
|
/* vietnamese */
|
||||||
@font-face
|
@font-face
|
||||||
font-family: 'Nunito Sans'
|
font-family: "Nunito Sans"
|
||||||
font-style: normal
|
font-style: normal
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
|
||||||
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB
|
unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB
|
||||||
|
|
||||||
/* latin-ext */
|
/* latin-ext */
|
||||||
@font-face
|
@font-face
|
||||||
font-family: 'Nunito Sans'
|
font-family: "Nunito Sans"
|
||||||
font-style: normal
|
font-style: normal
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
|
||||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
|
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
|
||||||
|
|
||||||
/* latin */
|
/* latin */
|
||||||
@font-face
|
@font-face
|
||||||
font-family: 'Nunito Sans'
|
font-family: "Nunito Sans"
|
||||||
font-style: normal
|
font-style: normal
|
||||||
font-weight: normal
|
font-weight: normal
|
||||||
src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format('woff2')
|
src: local("Nunito Sans Regular"), local("NunitoSans-Regular"), url(#{$nunito-font-path}/NunitoSans-Regular.ttf) format("woff2")
|
||||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundle.43be10f5b3a3e814bf07ce3fad76148fdd7184ea7b2e3f1d6b427828d24a56f2.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-Q74Q9bOj6BS/B84/rXYUj91xhOp7Lj8da0J4KNJKVvI="}}
|
{"Target":"js/bundle.4229c9bc1dddc27515d2b0e92ace2b52a5cf30b00aaccf4cf2b9d83ba5d69cc7.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QinJvB3dwnUV0rDpKs4rUqXPMLAKrM9M8rnYO6XWnMc="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundleMoment.6d57a5711d10d4a2fa0d6c1ce0c0ce16ed263a85b195485a43b490f1badcaca4.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-bVelcR0Q1KL6DWwc4MDOFu0mOoWxlUhaQ7SQ8brcrKQ="}}
|
{"Target":"js/bundleMoment.606f2d05cb65dec9d441d20611c4bf1f304ea60a66868809816e28783149ac58.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-YG8tBctl3snUQdIGEcS/HzBOpgpmhogJgW4oeDFJrFg="}}
|
|
@ -1,2 +1,2 @@
|
||||||
document.addEventListener('DOMContentLoaded',function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener('click',function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle('is-active');$target.classList.toggle('is-active');});});}});$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
document.addEventListener("DOMContentLoaded",function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener("click",function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle("is-active");$target.classList.toggle("is-active");});});}});$("a[href^=\"#\"]").click(function(e){e.preventDefault();$("html, body").animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});
|
$(".card").click(function(){$($(this).attr("data-target")).addClass("is-active");$("html").addClass("modal-open");});$(".modal-close").click(function(){$($(this).attr("data-target")).removeClass("is-active");$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$(".modal.is-active").removeClass("is-active");$("html").removeClass("modal-open");}});
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
||||||
$('#time').html(time);
|
$("#time").html(time);
|
||||||
})
|
})
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundle.43be10f5b3a3e814bf07ce3fad76148fdd7184ea7b2e3f1d6b427828d24a56f2.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-Q74Q9bOj6BS/B84/rXYUj91xhOp7Lj8da0J4KNJKVvI="}}
|
{"Target":"js/bundle.4229c9bc1dddc27515d2b0e92ace2b52a5cf30b00aaccf4cf2b9d83ba5d69cc7.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QinJvB3dwnUV0rDpKs4rUqXPMLAKrM9M8rnYO6XWnMc="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundleMoment.6d57a5711d10d4a2fa0d6c1ce0c0ce16ed263a85b195485a43b490f1badcaca4.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-bVelcR0Q1KL6DWwc4MDOFu0mOoWxlUhaQ7SQ8brcrKQ="}}
|
{"Target":"js/bundleMoment.606f2d05cb65dec9d441d20611c4bf1f304ea60a66868809816e28783149ac58.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-YG8tBctl3snUQdIGEcS/HzBOpgpmhogJgW4oeDFJrFg="}}
|
|
@ -1,2 +1,2 @@
|
||||||
document.addEventListener('DOMContentLoaded',function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener('click',function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle('is-active');$target.classList.toggle('is-active');});});}});$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
document.addEventListener("DOMContentLoaded",function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener("click",function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle("is-active");$target.classList.toggle("is-active");});});}});$("a[href^=\"#\"]").click(function(e){e.preventDefault();$("html, body").animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});
|
$(".card").click(function(){$($(this).attr("data-target")).addClass("is-active");$("html").addClass("modal-open");});$(".modal-close").click(function(){$($(this).attr("data-target")).removeClass("is-active");$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$(".modal.is-active").removeClass("is-active");$("html").removeClass("modal-open");}});
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
||||||
$('#time').html(time);
|
$("#time").html(time);
|
||||||
})
|
})
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundle.43be10f5b3a3e814bf07ce3fad76148fdd7184ea7b2e3f1d6b427828d24a56f2.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-Q74Q9bOj6BS/B84/rXYUj91xhOp7Lj8da0J4KNJKVvI="}}
|
{"Target":"js/bundle.4229c9bc1dddc27515d2b0e92ace2b52a5cf30b00aaccf4cf2b9d83ba5d69cc7.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-QinJvB3dwnUV0rDpKs4rUqXPMLAKrM9M8rnYO6XWnMc="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"js/bundleMoment.6d57a5711d10d4a2fa0d6c1ce0c0ce16ed263a85b195485a43b490f1badcaca4.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-bVelcR0Q1KL6DWwc4MDOFu0mOoWxlUhaQ7SQ8brcrKQ="}}
|
{"Target":"js/bundleMoment.606f2d05cb65dec9d441d20611c4bf1f304ea60a66868809816e28783149ac58.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-YG8tBctl3snUQdIGEcS/HzBOpgpmhogJgW4oeDFJrFg="}}
|
|
@ -1,2 +1,2 @@
|
||||||
document.addEventListener('DOMContentLoaded',function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener('click',function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle('is-active');$target.classList.toggle('is-active');});});}});$('a[href^="#"]').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
document.addEventListener("DOMContentLoaded",function(){var $navbarBurgers=Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0);if($navbarBurgers.length>0){$navbarBurgers.forEach(function($el){$el.addEventListener("click",function(){var target=$el.dataset.target;var $target=document.getElementById(target);$el.classList.toggle("is-active");$target.classList.toggle("is-active");});});}});$("a[href^=\"#\"]").click(function(e){e.preventDefault();$("html, body").animate({scrollTop:$(this.hash).offset().top},500);$("#nav-menu").removeClass("is-active");return true;})
|
||||||
$('.card').click(function(){$($(this).attr('data-target')).addClass('is-active');$("html").addClass("modal-open");});$('.modal-close').click(function(){$($(this).attr('data-target')).removeClass('is-active');$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$('.modal.is-active').removeClass('is-active');$("html").removeClass("modal-open");}});
|
$(".card").click(function(){$($(this).attr("data-target")).addClass("is-active");$("html").addClass("modal-open");});$(".modal-close").click(function(){$($(this).attr("data-target")).removeClass("is-active");$("html").removeClass("modal-open");});$(document).keypress(function(e){if(e.which==0){$(".modal.is-active").removeClass("is-active");$("html").removeClass("modal-open");}});
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
var time = moment().tz("America/Los_Angeles").format("h:mm A");
|
||||||
$('#time').html(time);
|
$("#time").html(time);
|
||||||
})
|
})
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
{"Target":"css/main.min.1e1cf2a6d69016a58a63a03a57bd56dd82f8f3f12b49d0c15fe7c2fb968ba333.css","MediaType":"text/css","Data":{"Integrity":"sha256-HhzyptaQFqWKY6A6V71W3YL48/ErSdDBX+fC+5aLozM="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
{"Target":"css/main.min.1e1cf2a6d69016a58a63a03a57bd56dd82f8f3f12b49d0c15fe7c2fb968ba333.css","MediaType":"text/css","Data":{"Integrity":"sha256-HhzyptaQFqWKY6A6V71W3YL48/ErSdDBX+fC+5aLozM="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"css/main.min.88e4a525bef0c5911f208d47535e56f02a7e2658dd19eaab52840dde669f1dd3.css","MediaType":"text/css","Data":{"Integrity":"sha256-iOSlJb7wxZEfII1HU15W8Cp+JljdGeqrUoQN3mafHdM="}}
|
{"Target":"css/main.min.1e1cf2a6d69016a58a63a03a57bd56dd82f8f3f12b49d0c15fe7c2fb968ba333.css","MediaType":"text/css","Data":{"Integrity":"sha256-HhzyptaQFqWKY6A6V71W3YL48/ErSdDBX+fC+5aLozM="}}
|
|
@ -73,9 +73,9 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Now for some cool projects -->
|
<!-- Now for some cool projects -->
|
||||||
{{ partial "home/projects.html" . }}
|
{{ partial "home/projects.html" . }}
|
||||||
<!-- Let's show some blog posts -->
|
<!-- Let`s show some blog posts -->
|
||||||
{{ partial "home/blog.html" . }}
|
{{ partial "home/blog.html" . }}
|
||||||
<!-- Let's chat, shall we? -->
|
<!-- Let`s chat, shall we? -->
|
||||||
{{ with .Resources.GetMatch "contact.md" }}
|
{{ with .Resources.GetMatch "contact.md" }}
|
||||||
<div class="section" id="{{ .File.TranslationBaseName }}">
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
||||||
<div class="container has-text-centered">
|
<div class="container has-text-centered">
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ if .Site.Params.home.localTime }}
|
{{ if .Site.Params.home.localTime }}
|
||||||
<p>{{ i18n "index_currentTime" . }} <span id='time'></span>.</p>
|
<p>{{ i18n "index_currentTime" . }} <span id="time"></span>.</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.email }}
|
{{ with .Site.Params.email }}
|
||||||
<h3 class="subtitle is-3 has-text-centered top-pad">
|
<h3 class="subtitle is-3 has-text-centered top-pad">
|
||||||
|
|
Loading…
Reference in a new issue