Skip to content

Commit

Permalink
Update robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
RainPPR committed Nov 27, 2024
1 parent b862a0a commit 985c638
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
branches:
- main
paths-ignore:
- .github
- .vscode
- ".github/**"
- ".vscode/**"
- README.md
- LICENSE
- .gitattributes
- .gitignore
- .gitpod.yml

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ hugo.linux

# macOS
*.DS_Store

#

*.deb
8 changes: 8 additions & 0 deletions .gitpod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: sudo apt install ./hugo_extended_0.124.0_linux-amd64.deb -y
3 changes: 3 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ enableGitInfo: true
relativeURLs: true
uglyURLs: false

# <meta name="robots" content="none">
enableRobotsTXT: true

menu:
after:
- name: 原站
Expand Down
2 changes: 2 additions & 0 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 985c638

Please sign in to comment.