Skip to content

Commit

Permalink
Merge pull request #103 from dominicgan/chore/code-cleanup
Browse files Browse the repository at this point in the history
Code cleanup
  • Loading branch information
dominicgan authored Jun 12, 2024
2 parents fb5b64c + 384984e commit 02e5116
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 46 deletions.
8 changes: 0 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,3 @@ markdown: kramdown

# Exclusions
exclude: ["bower_components", "node_modules", "gulp", "gulpfile.js", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "README.md", "bower.json", "js", "_scss", ".sass-cache"]
#gems
# gems:
# - jekyll-srcset

#jekyll-srcset settings
# srcset:
# optipng: true
# cache: "/tmp/images"
6 changes: 0 additions & 6 deletions dist/js/modules/featherlight-images.js

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

5 changes: 0 additions & 5 deletions dist/js/modules/site.js

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

1 change: 0 additions & 1 deletion gulp/tasks/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ gulp.task('babelify', () => {
.pipe(gulp.dest("./dist/js/npm"));

return merge(polyfillSrc, rawJs, moduleJs, npmJs);
// .pipe(debug({title: 'babel-merge:'}));
});
4 changes: 0 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ const chalk = require('chalk');

log(`[platform] ${chalk.bold.green(process.platform)} ${chalk.bold.red(process.arch)} `);
log(`[pid] ${chalk.yellow(process.pid)}`);
// log('[env vars] ');
// Array.prototype.filter.call(Object.keys(process.env), envVar => envVar.indexOf('npm_') < 0 && envVar.indexOf('MANPATH') < 0)
// .sort((a,b) => a > b)
// .map(envVar => log(`${chalk.yellow(envVar)}: ${process.env[envVar]}`));

// Require all tasks in gulp/tasks, including subfolders
requireDir('./gulp/tasks', {
Expand Down
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
{% include _components/about.html %}
</section>

<section class="recent-work">
{% include _components/recent-work.html %}
</section>

<section class="contact-me">
{% include _components/contact-me.html %}
</section>
6 changes: 0 additions & 6 deletions js/modules/featherlight-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ export class FeatherlightImages {

initFeatherlightImages() {
let _self = this;
// let href;

// href = _self.scope.attr('data-original');
// _self.scope.attr('data-featherlight',href);

// articleImg.featherlight();
_self.scope.featherlightGallery();

}
Expand Down
5 changes: 0 additions & 5 deletions js/modules/site.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import $ from 'jquery';
// import 'animate.css';
// import 'wow';

/**
* @class Site
Expand All @@ -13,10 +11,7 @@ export class Site {
}

init() {
// console.log('init');
if (this.scope.length) {
// this.initWow();
// console.log('scope exists');
}
}

Expand Down
4 changes: 2 additions & 2 deletions js/npm/systemjs-plugin-css/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ else {
};
}

// Because IE8?
// IE8 Polyfill
function filter(arrayLike, func) {
var arr = []
forEach(arrayLike, function(item){
Expand All @@ -154,7 +154,7 @@ function filter(arrayLike, func) {
return arr;
}

// Because IE8?
// IE8 Polyfill
function forEach(arrayLike, func){
for (var i = 0; i < arrayLike.length; i++) {
func(arrayLike[i])
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"author": "Dominic Gan",
"license": "ISC",
"dependencies": {
"fancy-log": "^1.3.3",
"systemjs": "^6.14.0"
},
"devDependencies": {
Expand All @@ -27,6 +26,7 @@
"child_process": "^1.0.2",
"concurrent-transform": "^1.0.0",
"del": "^6.0.0",
"fancy-log": "^1.3.3",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^8.0.0",
"gulp-babel": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion params.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Dominicgan.github.io","tagline":"","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `<a>` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at http://help.github.com/pages or contact [email protected] and we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
{"name":"dominicgan.github.io","tagline":"","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `<a>` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at http://help.github.com/pages or contact [email protected] and we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
2 changes: 0 additions & 2 deletions portfolio.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
layout: inner
title: Portfolio
<!-- subtitle: Here's a selection of my work -->
permalink: /portfolio/
---

Expand Down
2 changes: 1 addition & 1 deletion resume.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: inner
title: Résumé
title: Resume
subtitle:
permalink: /resume/
---
Expand Down

0 comments on commit 02e5116

Please sign in to comment.