kelyvin / ghost-caffeine-theme

A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
https://caffeinecoding.com
MIT License
333 stars 97 forks source link

MailChimp Content Modification #5

Closed fbgrecojr closed 8 years ago

fbgrecojr commented 8 years ago

I am trying to modify the mailchimp content by editing the cover.js files as the README instructs. Here is my code:

if (window.mailchimp_url) {
    $("body").subbscribe({
        title: "Never miss a post!",
        text: "Stay up to the date with the latest posts!",
        name: "<a href='https://twitter.com/fbgrecojr' target='_blank'>@fbgrecojr</a>",
        color: "#56817A",
        thumbnail: "http://i.imgur.com/39erIwp.png",
        list: "MailChimp",
        url : window.mailchimp_url
    });
}

However, after zipping up the updated package and uploading it to Ghost, it still shows the original CaffeineCoding content
kelyvin commented 8 years ago

Hi fbgrecojr,

Have you tried running gulp build before zipping up the package? That command will rebuild the JS files with your latest changes.

I will also take this as an action item for myself to implement a better way for users to easily edit this info. Stay tuned....

fbgrecojr commented 8 years ago

Good point!!!

When I do an npm install and gulp build I get this:

Am I missing the vender directory?

~/Downloads/caffeine-theme-master(branch:master*) » gulp build                                                                                          fbgrecojr@Franks-MacBook-Pro
(node:18410) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[14:18:33] Using gulpfile ~/Downloads/caffeine-theme-master/gulpfile.js
[14:18:33] Starting 'fonts'...
[14:18:33] Finished 'fonts' after 9.51 ms
[14:18:33] Starting 'css'...
[14:18:33] Finished 'css' after 13 ms
[14:18:33] Starting 'js'...
[14:18:33] Finished 'js' after 8.68 ms
[14:18:33] Starting 'build'...
[14:18:33] Finished 'build' after 2.24 μs
[14:18:33] { Error: assets/scss/bourbon-custom.scss
Error: File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss
       Parent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss
        on line 1 of assets/scss/bourbon-custom.scss
>> @import '../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss';
   ^

    at options.error (/Users/fbgrecojr/Downloads/caffeine-theme-master/node_modules/node-sass/lib/index.js:271I Lo
  formatted: 'Error: File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\n       Parent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss\n        on line 1 of assets/scss/bourbon-custom.scss\n>> @import \'../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\';\n   ^\n',
  message: 'assets/scss/bourbon-custom.scss\nError: File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\n       Parent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss\n        on line 1 of assets/scss/bourbon-custom.scss\n>> @import \'../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\';\n   ^\n',
  column: 1,
  line: 1,
  file: '/Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss',
  status: 1,
  messageFormatted: '\u001b[4massets/scss/bourbon-custom.scss\u001b[24m\nError: File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\n       Parent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss\n        on line 1 of assets/scss/bourbon-custom.scss\n>> @import \'../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\';\n   ^\n',
  messageOriginal: 'File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\nParent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss',
  relativePath: 'assets/scss/bourbon-custom.scss',
  name: 'Error',
  stack: 'Error: assets/scss/bourbon-custom.scss\nError: File to import not found or unreadable: ../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\n       Parent style sheet: /Users/fbgrecojr/Downloads/caffeine-theme-master/assets/scss/bourbon-custom.scss\n        on line 1 of assets/scss/bourbon-custom.scss\n>> @import \'../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss\';\n   ^\n\n    at options.error (/Users/fbgrecojr/Downloads/caffeine-theme-master/node_modules/node-sass/lib/index.js:271I Love
  showStack: false,
  showProperties: true,
  plugin: 'gulp-sass' }
kelyvin commented 8 years ago

Yes I think you are! Can you also run bower install before you run gulp build? bower install will create the vendor directory for you with all the files you're missing

Let me know if that helps!

fbgrecojr commented 8 years ago

worked like a charm! Thanks :)