starter icon indicating copy to clipboard operation
starter copied to clipboard

Remove personal stuffs

Open quangtt-rks opened this issue 6 years ago • 15 comments
trafficstars

Remove some personal stuffs such as:

  • Google Analytics
  • Disqus comment system
  • ...

Then use Code Injection to integrates them if you want.

quangtt-rks avatar Jul 02 '19 10:07 quangtt-rks

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!

hiensarahly avatar Aug 26 '19 02:08 hiensarahly

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

quangtt-rks avatar Aug 26 '19 02:08 quangtt-rks

I’m on my local machine right now.

hiensarahly avatar Aug 26 '19 04:08 hiensarahly

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

quangtt-rks avatar Aug 26 '19 05:08 quangtt-rks

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

hiensarahly avatar Aug 26 '19 07:08 hiensarahly

@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.

quangtt-rks avatar Aug 26 '19 08:08 quangtt-rks

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 avatar Aug 26 '19 08:08 hiensarahly

Am i missing something?

hiensarahly avatar Aug 26 '19 08:08 hiensarahly

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.

quangtt-rks avatar Aug 26 '19 08:08 quangtt-rks

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

hiensarahly avatar Aug 26 '19 08:08 hiensarahly

In the command line: No gulpfile found.

The comment interface is still the same.

hiensarahly avatar Aug 26 '19 08:08 hiensarahly

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

quangtt-rks avatar Aug 26 '19 08:08 quangtt-rks

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

hiensarahly avatar Aug 26 '19 09:08 hiensarahly

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

quangtt-rks avatar Aug 26 '19 09:08 quangtt-rks

Okay, I got it! Thank you @quangtt !

hiensarahly avatar Aug 26 '19 10:08 hiensarahly