A small patch to show the instance name and favicon in the browser title
authorWim Vanderbauwhede <Wim.Vanderbauwhede@mail.be>
Tue, 13 Mar 2018 09:37:55 +0000 (09:37 +0000)
committerWim Vanderbauwhede <Wim.Vanderbauwhede@mail.be>
Tue, 13 Mar 2018 09:37:55 +0000 (09:37 +0000)
bar.

lib/pleroma/web/templates/mastodon_api/mastodon/index.html.eex
priv/static/static/favicon.png [new file with mode: 0644]

index ac50ad46b48aacae500c1fe2306b5683803651c5..d6247c7d892a7a6db8baa3ec2d06488fdd47f501 100644 (file)
@@ -1,8 +1,12 @@
 <!DOCTYPE html>
 <html lang='en'>
 <head>
+       <title>
+       <%=   Application.get_env(:pleroma, :instance)[:name] %>
+       </title>
 <meta charset='utf-8'>
 <meta content='width=device-width, initial-scale=1' name='viewport'>
+<link rel="icon" type="image/png" href="/static/favicon.png"/>
 <link rel="stylesheet" media="all" href="/packs/common.css" />
 <link rel="stylesheet" media="all" href="/packs/default.css" />
 <link rel="stylesheet" media="all" href="/packs/pl-dark-masto-fe.css" />
diff --git a/priv/static/static/favicon.png b/priv/static/static/favicon.png
new file mode 100644 (file)
index 0000000..f83d923
Binary files /dev/null and b/priv/static/static/favicon.png differ