Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 Robots

robots: 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 Humans

humans: String
humans =
Humans.humans
[ { headline = "Team"
, content = [ "Engineer: Marco Martins" ]
}
, { headline = "Technology"
, content = [ "elm, terraform, nix" ]
}
]
```