19 lines
554 B
Elixir
19 lines
554 B
Elixir
defmodule Web.Layouts do
|
|
@moduledoc """
|
|
This module holds different layouts used by your application.
|
|
|
|
See the `layouts` directory for all templates available.
|
|
The "root" layout is a skeleton rendered as part of the
|
|
application router. The "app" layout is set as the default
|
|
layout on both `use Web, :controller` and `use Web, :live_view`.
|
|
"""
|
|
use Web, :html
|
|
|
|
embed_templates "layouts/*"
|
|
|
|
defp post?("/writing/" <> _), do: true
|
|
defp post?(_), do: false
|
|
|
|
defp status?("/microblog/" <> _), do: true
|
|
defp status?(_), do: false
|
|
end
|