Code Monkey home page Code Monkey logo

Comments (7)

konstantinmuenster avatar konstantinmuenster commented on September 27, 2024

Hey @bhuwan1998 and sorry for the late reply!

Hm, good question. I think it might be possible to customize the blog post page by shadowing the following file: https://github.com/konstantinmuenster/gatsby-theme-portfolio-minimal/blob/main/gatsby-theme-portfolio-minimal/src/templates/Article/index.tsx

We use this as a template when generating blog post pages dynamically upon build.

Hope it helps!

from gatsby-starter-portfolio-minimal-theme.

bhuwan1998 avatar bhuwan1998 commented on September 27, 2024

Hi @konstantinmuenster, just a small follow up question regarding the blog. Is it possible to get page total count of page views from google analytics. As a junior developer I just wanted some advice.

from gatsby-starter-portfolio-minimal-theme.

konstantinmuenster avatar konstantinmuenster commented on September 27, 2024

Hi @konstantinmuenster, just a small follow up question regarding the blog. Is it possible to get page total count of page views from google analytics. As a junior developer I just wanted some advice.

Usually, these get tracked automatically in Google Analytics since each post has a distinct page and hence page view. So there's no need to do anything special on the theme-side.

from gatsby-starter-portfolio-minimal-theme.

bhuwan1998 avatar bhuwan1998 commented on September 27, 2024

Sorry @konstantinmuenster I meant I want to display the page count at the bottom to show total views on a blog post.

from gatsby-starter-portfolio-minimal-theme.

konstantinmuenster avatar konstantinmuenster commented on September 27, 2024

ah, I see. For that, you'd need to edit the template file that I referenced earlier. Either you store the page count value in a database or you are able to retrieve the count from the Google API directly (not sure about the latter).

from gatsby-starter-portfolio-minimal-theme.

bhuwan1998 avatar bhuwan1998 commented on September 27, 2024

I think there's a library I researched that is basically an API used to get data from Google analytics. But anyway I need to change the footer by shadowing the blog page. So I guess you've put me on the correct path. Thanks 👍

from gatsby-starter-portfolio-minimal-theme.

bhuwan1998 avatar bhuwan1998 commented on September 27, 2024

Having a little trouble shadowing the Article.tsx because of styles.module.css import. Every other import not from the module itself has been shadowed in the directory. So I found out that it may be because of the tsconfig.json. So initially I had just shadowed the styles.module.css to change the look of the articles in terms of colours. Do you have any advice how to fix this ?

image image

from gatsby-starter-portfolio-minimal-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.