Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/kross-hugo-portfolio-template.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2019-06-24 06:32:31 +0300
committersomrat <monnaf37@gmail.com>2019-06-24 06:32:31 +0300
commitdaf5128c03a5e09523208cc65e596f9c9bb171b8 (patch)
tree3181c6c1c7d61bd2a33cc37a43521ad9db1250ac
parent359a707c22e19734d6fcd6dfda41a378cdbb3403 (diff)
modified responsive issues
-rw-r--r--assets/js/script.js27
-rw-r--r--exampleSite/config.toml7
-rw-r--r--layouts/about/list.html2
-rw-r--r--layouts/partials/page-title.html2
-rw-r--r--layouts/portfolio/list.html2
5 files changed, 20 insertions, 20 deletions
diff --git a/assets/js/script.js b/assets/js/script.js
index 8d3c387..9b8fb52 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -142,20 +142,21 @@
});
// Shuffle js filter and masonry
- var Shuffle = window.Shuffle;
- var jQuery = window.jQuery;
-
- var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
- itemSelector: '.shuffle-item',
- buffer: 1
- });
+ var containerEl = document.querySelector('.shuffle-wrapper');
+ if (containerEl) {
+ var Shuffle = window.Shuffle;
+ var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
+ itemSelector: '.shuffle-item',
+ buffer: 1
+ });
- jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
- var input = evt.currentTarget;
- if (input.checked) {
- myShuffle.filter(input.value);
- }
- });
+ jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
+ var input = evt.currentTarget;
+ if (input.checked) {
+ myShuffle.filter(input.value);
+ }
+ });
+ }
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a496457..a2cec14 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,7 +1,7 @@
baseURL = "https://kross.netlify.com"
languageCode = "en-us"
title = "Kross | Hugo Portfolio Template"
-theme = "kross-hugo"
+theme = "kross-hugo-portfolio-template"
summaryLength = "10"
# Plugins
@@ -26,7 +26,6 @@ summaryLength = "10"
URL = "plugins/shuffle/shuffle.min.js"
-
# navigation
[menu]
@@ -52,7 +51,7 @@ summaryLength = "10"
[params]
-logo = "images/logo.svg"
+logo = "images/logo.png"
home = "Home"
# Meta data
description = "This is meta description"
@@ -71,4 +70,4 @@ googleAnalitycsID = "Your ID"
[params.footer]
email = "steve.fruits@email.com"
phone = "+880 2544 658 256"
- address = "125/A, CA Commercial Area, California, USA"
+ address = "125/A, CA Commercial Area, California, USA" \ No newline at end of file
diff --git a/layouts/about/list.html b/layouts/about/list.html
index 5079024..1fddadd 100644
--- a/layouts/about/list.html
+++ b/layouts/about/list.html
@@ -1,7 +1,7 @@
{{ define "main" }}
<!-- page title -->
- <section class="page-title-alt bg-primary position-relative">
+ <section class="page-title-alt bg-primary position-relative overflow-hidden">
<div class="container">
<div class="row">
<div class="col-12">
diff --git a/layouts/partials/page-title.html b/layouts/partials/page-title.html
index 0dd8615..cff1363 100644
--- a/layouts/partials/page-title.html
+++ b/layouts/partials/page-title.html
@@ -1,5 +1,5 @@
<!-- page title -->
-<section class="page-title bg-primary position-relative">
+<section class="page-title bg-primary position-relative overflow-hidden">
<div class="container">
<div class="row">
<div class="col-12 text-center">
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html
index 6b9e76c..7b99f29 100644
--- a/layouts/portfolio/list.html
+++ b/layouts/portfolio/list.html
@@ -7,7 +7,7 @@
<div class="container">
<div class="row mb-5">
<div class="col-12">
- <div class="btn-group btn-group-toggle justify-content-center d-flex" data-toggle="buttons">
+ <div class="btn-group btn-group-toggle justify-content-center d-flex flex-wrap" data-toggle="buttons">
<label class="btn btn-sm btn-primary active">
<input type="radio" name="shuffle-filter" value="all" checked="checked" />All
</label>