PageSourceSearch

https://cromwellcms.com/assets/js/1d65186e.69b5f3db.js

js cromwellcms.com collected 2026-10-04 13:31:24 UTC 7,682 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_cromwell_website=self.webpackChunk_cromwell_website||[]).push([[966],{3266:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return s},contentTitle:function(){return l},metadata:function(){return p},toc:function(){return c},default:function(){return m}});var a=n(5773),r=n(808),o=(n(7378),n(5318)),i=["components"],s={sidebar_position:3},l="SEO",p={unversionedId:"features/seo",id:"features/seo",isDocsHomePage:!1,title:"SEO",description:"Note for developers",source:"@site/docs/features/seo.md",sourceDirName:"features",slug:"/features/seo",permalink:"/docs/features/seo",tags:[],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Migration",permalink:"/docs/features/migration"},next:{title:"Payments",permalink:"/docs/features/payments"}},c=[{value:"Note for developers",id:"note-for-developers",children:[]},{value:"Meta tags",id:"meta-tags",children:[]},{value:"Sitemap and robots.txt",id:"sitemap-and-robotstxt",children:[]}],d={toc:c};function m(e){var t=e.components,n=(0,r.Z)(e,i);return(0,o.kt)("wrapper",(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"seo"},"SEO"),(0,o.kt)("h2",{id:"note-for-developers"},"Note for developers"),(0,o.kt)("p",null,"Modern development tends to prefer single page applications. Not only because it's more convenient for developers, it reduces server costs and provides blazing-fast browsing experience. But despite the fact how fast browser-side page routing is, it doesn't have much value if we want to do get into search systems.\nNext.js solves that problem with its ",(0,o.kt)("a",{parentName:"p",href:"https://nextjs.org/docs/advanced-features/automatic-static-optimization"},"hybrid applications")," and ",(0,o.kt)("a",{parentName:"p",href:"https://vercel.com/docs/next.js/incremental-static-regeneration"},"Incremental Static Regeneration"),".\nThat's how in Cromwell CMS we can serve static HTML files for every page even with its Plugins allowing SEO to work as in any other Wordpress-like CMS. "),(0,o.kt)("h2",{id:"meta-tags"},"Meta tags"),(0,o.kt)("p",null,"We have support for major meta-tags (although it may depend on Theme implementation):"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},"<title>")," "),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta property="og:title" />')),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta name="description" />')),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta property="og:description" />')),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta name="keywords" />')),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta property="og:url" />')),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},'<meta property="og:image" />'))),(0,o.kt)("p",null,"Title and description for single pages can be modified in Theme editor. There also you can add your custom HTML with additional meta tags for a page.\nFor dynamic pages like: ",(0,o.kt)("inlineCode",{parentName:"p"},"product/[name]")," you can edit content of tags along with other data. For example, ",(0,o.kt)("inlineCode",{parentName:"p"},"/admin/product/1")," page has ",(0,o.kt)("inlineCode",{parentName:"p"},"Meta title")," and ",(0,o.kt)("inlineCode",{parentName:"p"},"Meta description")," fields.",(0,o.kt)("br",{parentName:"p"}),"\n",(0,o.kt)("inlineCode",{parentName:"p"},"og:image")," is usually taken from the main picture of a post, or first image of a product."),(0,o.kt)("h2",{id:"sitemap-and-robotstxt"},"Sitemap and robots.txt"),(0,o.kt)("p",null,"Both files are generated automatically after CMS installation.",(0,o.kt)("br",{parentName:"p"}),"\n","You can edit content of robots.txt in Admin panel > Settings > SEO. It should have a link to generated sitemap by default. But you can upload your custom Sitemap in the File manager (Media) and change the link."),(0,o.kt)("p",null,"Default Sitemap is generated and updated once a day. It uses Theme's pages with info from DB, so all available products, posts, etc should be included in it. "),(0,o.kt)("div",{className:"admonition admonition-note alert alert--secondary"},(0,o.kt)("div",{parentName:"div",className:"admonition-heading"},(0,o.kt)("h5",{parentName:"div"},(0,o.kt)("span",{parentName:"h5",className:"admonition-icon"}
1,(0,o.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,o.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))),"note")),(0,o.kt)("div",{parentName:"div",className:"admonition-content"},(0,o.kt)("p",{parentName:"div"},"After you create a new product/post, it won't be displayed in the sitemap immediately. If you want newly added data to appear in it right away, there's ",(0,o.kt)("inlineCode",{parentName:"p"},"Rebuild Sitemap")," button in SEO Settings."))))}m.isMDXComponent=!0},5318:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return u}});var a=n(7378);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=a.createContext({}),p=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},c=function(e){var t=p(e.components);return a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),m=p(n),u=r,f=m["".concat(l,".").concat(u)]||m[u]||d[u]||o;return n?a.createElement(f,i(i({ref:t},c),{},{components:n})):a.createElement(f,i({ref:t},c))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:r,i[1]=s;for(var p=2;p<o;p++)i[p]=n[p];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.