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 to | On the site, the link opens |
|---|---|
| Another Google Doc that's on your site | That doc's page |
| A tab of a Google Doc that's on your site | That tab's page |
| A heading in the same doc | The top of the same page |
| Any other website | That 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.
| # | What it does |
|---|---|
| 1 | Type part of the doc's name to search your Drive. |
| 2 | Pick the doc. If it's on your site, the link becomes a link to its article. |
In Markdown
Link to the other file by its path, relative to the file you're writing in:
./ 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.
Links to a heading
Every heading gets its own address, made from its text: lowercase, with spaces and punctuation turned into dashes.
| Heading | Anchor |
|---|---|
| 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:
In Markdown, link to a heading on the same page with the anchor alone:
Links to other websites
Paste the full address, starting with https://. Links to other websites work as usual.
Related
- Formatting in Google Docs
- Writing in Markdown
- Collections and Contents : how each article gets its address.