Modifying texts on the front page
note
These steps are for the classic theme.
Changing texts in the middle block
To change the following texts:
- Easy to Use
- Focus on What Matters
- Powered by React
Open /src/components/HomepageFeatures/index.js
, search for the texts, and save your changes.
Changing the 'My Site' or 'Dinosaurs are cool' texts
- Open
notes/docusaurus.config.js
- Look for the
const config
item and change the texts according to your liking.
Changing the Docusaurus Tutorial - 5min
text
- Open
/src/pages/index.js
- Look for the
button button--secondary button--lg
classname and change the text.
Changing the texts and images in the middle of the home page:
- Open
/src/components/HomepageFeatures/index.js
- Look for the
const FeatureList
constant and change the texts in the codeblock.
Removing the middle block
Open
src/pages/index.js
and look for the following block of code.<main>
<HomepageFeatures />
</main>Remove the
<HomepageFeatures />
component.cautionIf you are testing with
yarn start
on your local computer, stop and restart it again after removing the component. Do not remove theconst
because it is still being imported.