Writing Content

Links Between Articles

Link from one article to another so the link opens the page on your site, not the source document.

Link to the source, a Google Doc or a Markdown file, and Contito points the link at that article's page on your site.

Visitors stay on your site instead of landing in Google Docs or GitHub.

In Google Docs

You link toOn the site, the link opens
Another Google Doc that's on your siteThat doc's page
A tab of a Google Doc that's on your siteThat tab's page
A heading in the same docThe top of the same page
Any other websiteThat website, as usual

To add a link, select the text and press Ctrl+K (Cmd+K on a Mac), then paste the doc's address or type its name to search for it.

For a tab, open that tab and copy its address from the browser's address bar.

The Google Docs link box with a search typed and a doc from the synced folder highlighted

#What it does
1Type part of the doc's name to search your Drive.
2Pick the doc. If it's on your site, the link becomes a link to its article.
A doc counts as on your site when it is synced: inside a connected Drive folder, connected as a single doc, or a tab of a doc connected as tabs. See Content Sources .

In Markdown

Link to the other file by its path, relative to the file you're writing in:

markdown
See [Keyword Research](./01-keyword-research.md) first.
Then read [Writing for Search](./content-strategy/01-writing-for-search.md).
Back to [On-Page Basics](../02-on-page-basics.md).

./ is the same folder and ../ is the folder above.

The link points at the matching article on your site. This works for files in the same GitHub repository.

See Writing in Markdown for the rest of the format.

Every heading gets its own address, made from its text: lowercase, with spaces and punctuation turned into dashes.

HeadingAnchor
Custom domains#custom-domains
What's included?#what-s-included
Custom domains, a second time on the page#custom-domains-2

Add the anchor to a page's address to link straight to that heading:

text
https://help.example.com/publishing/custom-domain#custom-domains

In Markdown, link to a heading on the same page with the anchor alone:

markdown
See [Custom domains](#custom-domains) below.

Paste the full address, starting with https://. Links to other websites work as usual.