-
Notifications
You must be signed in to change notification settings - Fork 42
Publishing tips and tricks
Table of contents
- Linking to an anchor on the same page:
- How to open a destination page in a new window
- How to create em dash with markdown
- Applying grid to images and content
- Adding a horizontal rule
Here are some tips and tricks for using the Gatsby theme.
Instead of using the full URL string:
[Related components](https://www.ibm.com/standards/carbon/patterns/lead-space#related-components-and-patterns)
simply use the last hash-tag segment:
[Related components](#related-components-and-patterns)
Instead of linking with markdown as follows:
[link](https://ibm.box.com/s/26ze6is6ff50nohlx5v28fubkh2w2f2x)
Link using the HTML anchor tag as follows:
<a href="https://ibm.box.com/s/26ze6is6ff50nohlx5v28fubkh2w2f2x" target="_blank">link</a>
Add the —
in between the name and the — will show up.
Use the following two React components to create rows and columns.
<Row>
creates a row. <Column>
creates a column.
The following example creates a column structure that spans 8 columns, leaving the right 4 columns empty.
<Row>
<Column colMd={8} colLg={8}>
![Base type size change](../../images/guidelines/expressive-theme/exp-theme-research-visual.png)
</Column>
</Row>
Use the following element:
<hr/>
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video