Quick Start
Create a ProjectEdit a PageLink to a PageSet a TemplatePrepare for SEOPublish to the WebSet up a Custom DomainBasics
Project StructureMarkdownJSXMDXMarkdocES ModulesCSS StylingTailwind CSSMetadataLayout and Design
LayoutsTemplatesResponsive DesignsUsing ColorsTypographyMathematicsPublishing
SEO and SharingCustom DomainsAnalyticsSitemapsFaviconsGuides
WebflowNotionFramerConfiguration
motif.jsontailwind.config.jsmain.cssApp
Keyboard ShortcutsSlash CommandsInstant SearchOffline AccessDistraction-Free WritingReal-Time CollaborationDesktop AppAdvanced
Motif APIExposing your site's page structure to search engines.
A sitemap is an XML file that lists the pages of your site that should be exposed to search engine crawlers, so that they can index your content intelligently.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com</loc>
</url>
<url>
<loc>https://example.com/about</loc>
</url>
<url>
<loc>https://example.com/blog</loc>
</url>
</urlset>
On Motif, the sitemap is automatically generated from the set of pages you've marked as public, so you don't need to do anything further to set it up. You can view your sitemap by heading to your public site, and navigating to /sitemap.xml
, for instance https://my-domain.com/sitemap.xml
.
If you wish to exclude the paths of some public pages from the sitemap, you can do so by adding a sitemap.excludePaths
entry in your motif.json
configuration file. Here is an example:
{
"sitemap": {
"excludePaths": [
"docs/do-not-index",
"public-drafts/**/*"
]
}
}
You can specify the paths either explicity, or using a glob syntax, similar to the one used for template mappings, as discussed in the Motif configuration article.
© 2022 Motif Land Inc. All rights reserved. This site is built with Motif.