Skip to content

Commit

Permalink
added block styles and fixed cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davy440 committed Apr 14, 2024
1 parent 620110c commit 14824b3
Show file tree
Hide file tree
Showing 35 changed files with 304 additions and 89 deletions.
49 changes: 49 additions & 0 deletions .gihtub/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# .github/workflows/deploy.yml

name: Build and Deploy
on:
push:
branches:
- main
paths:
- '**/*.php'
- '**/*.js'
- '**/*.scss'
- '**/*.css'
- theme.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Node Setup
uses: actions/[email protected]
with:
cache: 'npm'
- name: Upload Artifact
uses: actions/[email protected]
with:
name: theme-build
path: './'
retention-days: 1
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/[email protected]
- name: Deploy
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USER }}
port: ${{ secrets.SFTP_PORT }}
password: ${{ secrets.SFTP_PASS }}
server-dir: './wp-content/themes/it-residence/'
8 changes: 6 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (grunt) {
dist: {
options: {
style: 'expanded',
update: true,
update: true
},
files: [
{
Expand All @@ -28,7 +28,8 @@ module.exports = function (grunt) {
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
sourceMap: false
},
min: {
files: [
Expand All @@ -43,6 +44,9 @@ module.exports = function (grunt) {
}
},
cssmin: {
options: {
sourceMap: false
},
target: {
files: [
{
Expand Down
20 changes: 0 additions & 20 deletions assets/js/admin.js

This file was deleted.

10 changes: 10 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,14 @@ jQuery(document).ready(function() {
jQuery('html').animate({scrollTop:0}, 300, 'linear');
});
}

// Lightbox feature for Gallery block
const lightbox = GLightbox({
selector: '.is-style-lightbox a',
height: 'auto',
touchNavigation: false,
keyboardNavigation: false,
width: 'auto',
draggable: false,
});
});
2 changes: 1 addition & 1 deletion assets/js/min/admin.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/*! indithemes 2024-04-12 */
/*! indithemes 2024-04-13 */
window.onload=()=>{};
2 changes: 1 addition & 1 deletion assets/js/min/bigSlide.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/min/color-alpha.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/min/custom.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/min/customize_controls.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/min/customizer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/min/dismiss-notice.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/js/min/glightbox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/min/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/min/navigation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/min/owl.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/min/plugins-install.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 14824b3

Please sign in to comment.