Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcodaniels/elm-robots-humans
Create robots.txt and humans.txt in Elm
https://github.com/marcodaniels/elm-robots-humans
elm humanstxt robotstxt
Last synced: 3 days ago
JSON representation
Create robots.txt and humans.txt in Elm
- Host: GitHub
- URL: https://github.com/marcodaniels/elm-robots-humans
- Owner: MarcoDaniels
- License: bsd-3-clause
- Created: 2022-11-23T19:10:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T18:40:06.000Z (about 2 years ago)
- Last Synced: 2024-11-05T15:34:17.844Z (about 2 months ago)
- Topics: elm, humanstxt, robotstxt
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/marcodaniels/elm-robots-humans/latest
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-robots-humans
`elm-robots-humans` allows you to write your website's [`robots.txt`](https://moz.com/learn/seo/robotstxt)
and [`humans.txt`](https://humanstxt.org/) files as an output string in a structured and typed manner.Example for `robots.txt`:
```elm
import Robotsrobots: String
robots =
Robots.robots
{ sitemap = Robots.SingleValue "/sitemap.xml"
, host = "https://marcodaniels.com"
, policies =
[ Robots.policy
{ userAgent = Robots.SingleValue "*"
, allow = Just (Robots.SingleValue "*")
, disallow = Nothing
}
]
}
```Example for `humans.txt`
```elm
import Humanshumans: String
humans =
Humans.humans
[ { headline = "Team"
, content = [ "Engineer: Marco Martins" ]
}
, { headline = "Technology"
, content = [ "elm, terraform, nix" ]
}
]
```