Skip to content

Commit

Permalink
Add categories to web manifest (#434)
Browse files Browse the repository at this point in the history
This pull request add a `categories` key to the web manifest. The categories key was [recently added](https://www.aaron-gustafson.com/notebook/categories-land-in-the-web-app-manifest/ "Blog post detailing the addition of categories to the spec") to the Web Manifest spec and is a list of categorizations you want to apply to your site that serves as a hint to search engines and webapp catalogs.

The categories can be anything and there is no standardized list of vaues. The W3C is maintaining a list of commonly used values [here](https://github.com/w3c/manifest/wiki/Categories). I added _social_ to Plume's manifest based on that list, but I think eventually allowing a user defined list would be better. I don't know if there's anything in Plume currently that would enable that.
  • Loading branch information
zcdunn authored and elegaanz committed Jan 24, 2019
1 parent a2ddfb0 commit 06d6bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/instance.rs
Expand Up @@ -264,6 +264,7 @@ pub fn web_manifest(conn: DbConn) -> Result<Json<serde_json::Value>, ErrorPage>
"display": String::from("standalone"),
"background_color": String::from("#f4f4f4"),
"theme_color": String::from("#7765e3"),
"categories": [String::from("social")],
"icons": [
{
"src": "/static/icons/trwnh/feather/plumeFeather48.png",
Expand Down

0 comments on commit 06d6bd3

Please sign in to comment.