Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jbaubree/sitemap-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaubree committed Apr 29, 2023
2 parents 0574637 + d1e2a98 commit 0e6a34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type { ResolvedOptions, UserOptions } from './types'
export function generateSitemap(options: UserOptions = {}) {
const resolvedOptions: ResolvedOptions = resolveOptions(options)

// robots.txt
if (resolvedOptions.generateRobotsTxt) {
// robots.txt
const robotRules = getRules(resolvedOptions.robots)
const robotContent = getContent(robotRules, resolvedOptions.hostname)
writeFileSync(getResolvedPath('robots.txt', resolvedOptions), robotContent)
Expand Down

0 comments on commit 0e6a34e

Please sign in to comment.