Skip to content

a hexo plugin that help you create robots.txt file when you build the site

Notifications You must be signed in to change notification settings

Dedicatus546/hexo-robots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-robots

a hexo plugin that help you create robots.txt file when you build the site.

install

pnpm install hexo-robots

config

the following is the default config when you install this plugin.

// hexo _config.yml
robots:
  user_agent: "*"
  allow:
    - /
    - /archives/
    - /page/
    - /schedule/
    - /tags/
  disallow:
    - /js/
    - /css/
    - /images/
  sitemaps:

if you have multi user_agent config you can use the following way:

robots:
  user_agent: "*"
  allow:
    - /
    - /archives/
    - /page/
    - /schedule/
    - /tags/
  disallow:
    - /js/
    - /css/
    - /images/
  sitemaps:
  more:
    - user_agent: "other_agent_name_1"
      allow:
        - /
        - /archives/
        - /page/
        - /schedule/
        - /tags/
      disallow:
        - /js/
        - /css/
        - /images/
    - user_agent: "other_agent_name_2"
      allow:
        - /
        - /archives/
        - /page/
        - /schedule/
        - /tags/
      disallow:
        - /js/
        - /css/
        - /images/ 

About

a hexo plugin that help you create robots.txt file when you build the site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published