use :cdn_host from env (fixes philomena-dev/philomena#54)

This commit is contained in:
byte[] 2020-10-23 00:29:56 -04:00
parent 1e2c57d8e8
commit b5bc7d2d6b
2 changed files with 5 additions and 1 deletions

View file

@ -10,7 +10,7 @@
noscript.flash.flash--warning
strong You don't appear to have Javascript enabled
' If you're using an add-on like NoScript, please allow
' :cdn_host
=> cdn_host()
' for the site to work properly.
= if get_flash(@conn, :info) do
.flash.flash--success = get_flash(@conn, :info)

View file

@ -18,6 +18,10 @@ defmodule PhilomenaWeb.LayoutView do
|> Float.to_string()
end
def cdn_host do
Application.get_env(:philomena, :cdn_host)
end
defp ignored_tag_list(nil), do: []
defp ignored_tag_list([]), do: []
defp ignored_tag_list([{tag, _body, _dnp_entries}]), do: [tag.id]