Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7cf9199a
Commit
7cf9199a
authored
Mar 25, 2018
by
moondef
Committed by
Tim Neutkens
Mar 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alt attributes to examples in readme.md (#4053)
parent
14a16924
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
readme.md
readme.md
+3
-3
No files found.
readme.md
View file @
7cf9199a
...
@@ -178,7 +178,7 @@ To support importing `.css` `.scss` or `.less` files you can use these modules,
...
@@ -178,7 +178,7 @@ To support importing `.css` `.scss` or `.less` files you can use these modules,
Create a folder called
`static`
in your project root directory. From your code you can then reference those files with
`/static/`
URLs:
Create a folder called
`static`
in your project root directory. From your code you can then reference those files with
`/static/`
URLs:
```
jsx
```
jsx
export
default
()
=>
<
img
src=
"/static/my-image.png"
/>
export
default
()
=>
<
img
src=
"/static/my-image.png"
alt=
"my image"
/>
```
```
### Populating `<head>`
### Populating `<head>`
...
@@ -405,7 +405,7 @@ export default () =>
...
@@ -405,7 +405,7 @@ export default () =>
<
div
>
<
div
>
Click
{
' '
}
Click
{
' '
}
<
Link
href=
"/about"
>
<
Link
href=
"/about"
>
<
img
src=
"/static/image.png"
/>
<
img
src=
"/static/image.png"
alt=
"image"
/>
</
Link
>
</
Link
>
</
div
>
</
div
>
```
```
...
@@ -1191,7 +1191,7 @@ console.log(serverRuntimeConfig.mySecret) // Will only be available on the serve
...
@@ -1191,7 +1191,7 @@ console.log(serverRuntimeConfig.mySecret) // Will only be available on the serve
console
.
log
(
publicRuntimeConfig
.
staticFolder
)
// Will be available on both server and client
console
.
log
(
publicRuntimeConfig
.
staticFolder
)
// Will be available on both server and client
export
default
()
=>
<
div
>
export
default
()
=>
<
div
>
<
img
src
=
{
`
${
publicRuntimeConfig
.
staticFolder
}
/logo.png`
}
/
>
<
img
src
=
{
`
${
publicRuntimeConfig
.
staticFolder
}
/logo.png`
}
alt
=
"logo"
/>
<
/div
>
<
/div
>
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment