quangtt-rks / starter

A clean theme for Ghost blog
https://quangteomedia.com
MIT License
29 stars 9 forks source link

Remove personal stuffs #13

Open quangtt-rks opened 5 years ago

quangtt-rks commented 5 years ago

Remove some personal stuffs such as:

Then use Code Injection to integrates them if you want.

hiensarahly commented 5 years ago

Hi anh Quang Teo!

I followed your guide to remove the Disqus short name like this:

var disqus_shortname = '';

But it is still showing your id name. How may I solve this?

Many thanks!

quangtt-rks commented 5 years ago

Hi @hiensarahly ! Are you trying to modify that on your local machine or your production site?

hiensarahly commented 5 years ago

I’m on my local machine right now.

quangtt-rks commented 5 years ago

Did you try restarting Ghost service, on your local machine?

hiensarahly commented 5 years ago

I have tried restarting Ghost & installing a whole new one. Here is a screenshot on my end:

2019-08-26_144238

In asset/js/index.js, I also removed the shortname:

2019-08-26_144602

quangtt-rks commented 5 years ago

@hiensarahly Sorry, I didn't mentioned it yet on Wiki, but editing index.js is not enough.

If you already installed Nodejs, run npm install at root of starter project. Then run ./node_modules/gulp to minify and combine all CSS files into one, also JS files.

After that, your changes will takes effect.

hiensarahly commented 5 years ago

Thanks @quangtt ! I got npm install installed in the root project.

When I run ./node_modules/gulp, I get the message:

2019-08-26_151043

hiensarahly commented 5 years ago

Am i missing something?

quangtt-rks commented 5 years ago

Hey turns out you are using Windows. I am not sure but try this node_modules/gulp?

Or you can try install gulp as global npm install gulp -g, then verify if gulp is installed successfully gulp -v, then run gulp at starter directory.

hiensarahly commented 5 years ago

Haha yes, I'm on Windows. Okay I will try it now.

hiensarahly commented 5 years ago

In the command line: No gulpfile found.

The comment interface is still the same.

quangtt-rks commented 5 years ago

There is gulpfile.js at root directory of Starter, are you running gulp at the same directory?

hiensarahly commented 5 years ago

Thanks @quangtt ! Everything went well on the back end.

Disqus is not showing on the front end. I have waited more than 10 minutes.

Should i add anything else?

2019-08-26_162415

quangtt-rks commented 5 years ago

In short, you should provide a username for Disqus plugin to work, if not, comment sections should disappeared.

hiensarahly commented 5 years ago

Okay, I got it! Thank you @quangtt !