Skip to content

Commit

Permalink
v6 reorganization and dev environment update
Browse files Browse the repository at this point in the history
moved to cdn for third party assets, changed project structure to have src and dist directoires, moved to npm scripts based dev environment dropping the gulp dependencies
  • Loading branch information
davidtmiller committed Mar 16, 2020
1 parent 70d1c8b commit 2ad0df4
Show file tree
Hide file tree
Showing 108 changed files with 5,480 additions and 56,339 deletions.
13 changes: 0 additions & 13 deletions .browserslistrc

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.DS_Store
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ node_js:
install: npm install
script:
- npm test
- gulp
cache:
directories:
- node_modules
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2019 Blackrock Digital LLC
Copyright (c) 2013-2020 Blackrock Digital LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 0 additions & 10 deletions css/freelancer.min.css

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion js/contact_me.js → dist/assets/mail/contact_me.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(function() {
$this = $("#sendMessageButton");
$this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
$.ajax({
url: "././mail/contact_me.php",
url: "contact_me.php",
type: "POST",
data: {
name: name,
Expand Down
2 changes: 1 addition & 1 deletion mail/contact_me.php → dist/assets/mail/contact_me.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$message = strip_tags(htmlspecialchars($_POST['message']));

// Create the email and send the message
$to = "[email protected]"; // Add your email address inbetween the "" replacing [email protected] - This is where the form will send a message to.
$to = "[email protected]"; // Add your email address in between the "" replacing [email protected] - This is where the form will send a message to.
$subject = "Website Contact Form: $name";
$body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email\n\nPhone: $phone\n\nMessage:\n$message";
$header = "From: [email protected]\n"; // This is the email address the generated message will be from. We recommend using something like [email protected].
Expand Down
File renamed without changes.
Loading

2 comments on commit 2ad0df4

@Elia-Sh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :)
was wondering if I should write some pug templates for the theme,
and now I've noticed that a new version includes build-in pug support!

Thank you 👍

P.s.
Are there any plans to support "simple" jinja templates as well?
looks like https://github.com/mozilla/nunjucks allows to render jinja-like templating syntax -
https://mozilla.github.io/nunjucks/faq.html#can-i-use-the-same-templates-between-nunjucks-and-jinja2-what-are-the-differences
https://mozilla.github.io/nunjucks/templating.html

This may be very attractive to BE developers that would like to experiment with bootstrap,
since most of them are using flask/django, etc frameworks that use jinja templating engine.

Thanks.

@davidtmiller
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! The new format uses Pug to organize all of the HTML, and we'll be making more improvements as time goes on. Moving to Pug will allow us to easily handle multi-page themes as well!

Please sign in to comment.