Giter Site home page Giter Site logo

gatsby-tutorial's Issues

home.module.css import issue.

I think they changed how to import css modules in 3.0.
import * as styles from '../styles/home.module.css'
vs
import styles from '../styles/home.module.css'

Thanks for the tutorial

same markdown html loads for all slugs, when markdown files are in nested directories

Thanks The Net Ninja for this wonderful series https://www.youtube.com/playlist?list=PL4cUxeGkcC9hw1g77I35ZivVLe8k2nvjB

I followed this series from start to end and successfully able to create a example website that use markdown files for html content.

When markdown files are in a nested directory, then same markdown html displayed for all slugs.


Steps to reproduce issue :-

  1. Clone simplified gatsbyjs project

  2. Go to markdown-in-nested-directory

  3. npm install

  4. gatsby develop

  5. Open http://localhost:8000/

  6. Then click on Courses

Screenshot 2021-06-07 at 12 30 14 PM

  1. Then click on Core Java

image

  1. Then click on syntaxes

image

  1. Then you will see 4 slug links. If you open any one of the slug link, it shoud display markdown html for corresponding slug.
    But all slug links displays markdown html for the first generated slug link (comm-eg in this example).

image

image

image

image

Kindly suggest.

img doesn't show

you have to add the => {' '} in the src of img
for example : <img src={'/test.jpg**'}** alt="test">

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.