소스 검색

Add sitemap to robots.txt

Riccardo Balbo 4 년 전
부모
커밋
b0d3af2fc3
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      config.toml
  2. 3 0
      layouts/robots.txt

+ 1 - 3
config.toml

@@ -13,9 +13,7 @@ pygmentsCodeFences=false
   filename = "sitemap.xml"
 
 [params]
-  favicon = "favicon.ico"
-  custom_css = ["/css/style.css"]
-  custom_js=["/js/script.js"]
+  hostname="jmonkeyengine.org"
 
 [taxonomies]
   tag = "tags"

+ 3 - 0
layouts/robots.txt

@@ -0,0 +1,3 @@
+User-agent: *
+Allow: /
+Sitemap: https://{{.Site.Params.hostname}}/sitemap.xml