question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[gatsby-starter-minimal-blog]: Can't edit the hero text as instructed in the docs.

See original GitHub issue

Description

Thanks for sharing your themes, they’re amazing & easy to use for someone who has no JS experience. So I can’t change the default hero text following the default instructions provided in the documentation.

Steps to reproduce

I tried using your gatsby-starter-minimal-blog, downloaded it as instructed using the Gatsby CLI command gatsby new [dirname] https://github.com/LekoArts/gatsby-starter-minimal-blog. It downloads the necessary files & folders as-is from the gatsby-starter-minimal-blog repository.

But the problem is I’ve no clue how to edit the default hero text. I tried following instructions provided in Changing the “Hero” text but there’s actually no src root directory in the repository itself.

You can find my repository for the project over here. I pushed it without making any changes to it right after creating a new project using the Gatsby CLI command.

Expected result

There should be a hero.mdx file somewhere in the project, so that the default hero text can be changed as per the requirements of the user.

Actual result

The hero.mdx file doesn’t exist anywhere.

Environment

System
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i3-2350M CPU @2.30GHz
    Shell: 5.0.16 - /bin/bash
Binaries:
    node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
    npm: 6.14.6 - ~/.nvm/versions/node/14.5.0/bin/npm
Browsers:
    Firefox: 78.0.1
npmPackages:
    gatsby: ^2.20.36 => 2.24.2
    gatsby-plugin-google-analytics: ^2.1.4 => 2.3.11
    gatsby-plugin-manifest : ^2.2.3 => 2.4.18
    gatsby-plugin-netlify: ^2.1.3 => 2.3.11
    gatsby-plugin-offline: ^2.2.4 => 2.2.10
    gatsby-plugin-sitemap: ^2.2.19 => 2.4.11
    gatsby-plugin-webpack-bundle-analyser-v2: ^1.1.10 => 1.1.10
npmGlobalPackages:
    gatsby-cli: 2.12.60

Once again thanks for sharing your work. If you could let me know if its something that I’m doing wrong, it would be wonderful!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
LekoArtscommented, Jul 15, 2020

Hi, thanks for the issue and sorry to hear that you run into troubles.

As per the instructions you linked you’re supposed to create that file on your own, e.g. in your favorite editor/IDE. The way that @strdr4605 did it isn’t a workaround but the official way of overriding/shadowing files in Gatsby themes.

So go ahead and create the file at the location specified in the documentation and you’ll be good to go 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need to edit or remove a Hero Header, I think? - WordPress.org
I can't find anything, anywhere, about how to edit or remove that thing, ... not even sure the image and text in question...
Read more >
Suggest edits in Google Docs - Computer
Suggest changes to a file. On your computer, open a document at docs.google.com. Select the text you want to change. A button appears...
Read more >
Use the Hero web part - Microsoft Support
Change the image, text, and links for each tile or layer. Change the focal point of an image. Reorder tiles or layers. Put...
Read more >
Changing text position in hero image - GeneratePress
In documentation I only found instructions to change position by ... I can't seem to change the size of the first line in...
Read more >
Markup Hero - Annotate Files - Google Workspace Marketplace
Annotate & Draw on Docs, Sheets, Slides, PDFs & Images from Google Drive with ... Tools - Text, Arrow, Line, Rectangle, Oval, Pen,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found