Git Product home page Git Product logo

gatsby-blog-template's Issues

Filter Years

Hi Sir,

do you have plan, added years filter in right menu?

Netlify CMS

Are you plan add netlify-cms as backend for creating content/post ?

Giscuss Added but Show Error Build

Hi sir, I just added Giscus App for commentar plugin with react using Giscus Component but, when i'm click load, it's blank page, it's show error like below.

08-11-2022 10-19-20

https://reactjs.org/docs/error-decoder.html/?invariant=130&args[]=undefined&args[]=

this is my component

// File: GiscusKomentar.jsx

import React, { Component } from 'react'
import { Giscus } from '@giscus/react';

class GiscusKomentar extends Component {
  constructor(props) {
    super(props)
    this.state = {
      toasts: [],
    }
  }

  render() {
    const { postNode } = this.props
    const post = postNode.frontmatter

    return (
      <>
      <h1>{post.title}</h1>
        <Giscus
          id="comments"
          repo="topidesta/topidesta"
          repoId="MDEwOlJlcG9zaXRvcnkyMDA1ODIyNTk="
          category="Comments"
          categoryId="DIC_kwDOC_Skc84CAQVo"
          mapping="url"
          term="Selamat datang di topidesta Blogs"
          reactionsEnabled="1"
          emitMetadata="0"
          inputPosition="top"
          theme="light_protanopia"
          lang="en"
        />
      </>
    )
  }
}

export default GiscusKomentar

===================

// File: Comment.jsx

import React, { Component } from "react";
import GiscusKomen from "./GiscusKomentar";

class Comment extends Component {
  state = {
    isShow: !this.props.lazyload,
  };

  handleClick = () => {
    this.setState((prevState) => ({
      isShow: !prevState.isShow,
    }));
  };

  render() {
    const { extraClass, postNode, btnLoadComments } = this.props;

    return (
      <div className={`comment-container text-center ${extraClass}`}>
        {!this.state.isShow && (
          <button className="btn-primary" onClick={this.handleClick}>
            {btnLoadComments}
          </button>
        )}

        {this.state.isShow && <GiscusKomen postNode={postNode} />}
      </div>
    );
  }
}

export default Comment;

am i wrong code please?

Thanks sir.

Can't add more icons

Not able to use other icons from fontawesome inSiteConfig.js file. The below config does not work.

  socialLinks: [
    { 
      label: "Instagram", 
      url: "https://www.instagram.com/", 
      iconClassName: "fab instagram"
    }
  ],

Where are you initializing all the icons?

Related Other Pages

Before i updated this template, i can refference my page to others page, but, now it's call twice the pages, any updated, where i must do thats?

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.