How to generate sitemap by scully
angularscullyScully is a static site generator for Angular applications. It can be used to build a static version of an Angular app, which means that all of the content is pre-rendered and stored as HTML files that can be served to users without the need for server-side processing.
To generate a sitemap using Scully, you can use the scully-plugin-sitemap
plugin. This plugin generates a sitemap for
your Angular app based on the routes defined in your app.
Here’s how you can use the scully-plugin-sitemap
plugin to generate a sitemap for your Angular app:
- Install the
scully-plugin-sitemap
plugin by running the following command:
npm install scully-plugin-sitemap
- Import the
scully-plugin-sitemap
plugin in your Angular app by adding the following line to the top of yourapp.module.ts
file:
import { ScullySitemapModule } from 'scully-plugin-sitemap';
- Add the
ScullySitemapModule
to theimports
array in yourapp.module.ts
file:
@NgModule({
imports: [
ScullySitemapModule
],
...
})
- Run the
scully
command to build your Angular app and generate the sitemap:
npx scully
- The sitemap will be generated as a
sitemap.xml
file in thedist
directory of your Angular app. You can then upload this file to your website to make it available to search engines.
Other Article on Tag angular
- - angular add bootstrap
- - angular add semantic-ui
- - angular bootstrap navbar example
- - angular call backend api
- - angular install scully
- - angular login and register page example
- - angular login page example
- - angular navbar code example
- - angular scully generate route md file space replace
- - angular upload multiple file
Other Article on Tag scully
- - angular install scully
- - angular scully generate route md file space replace
- - How to generate sitemap by scully
- - Order data in scully-routes.json