-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage_controller.ex
More file actions
47 lines (41 loc) · 1.45 KB
/
Copy pathpage_controller.ex
File metadata and controls
47 lines (41 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
defmodule JolaDevWeb.PageController do
use JolaDevWeb, :controller
def home(conn, _params) do
recent_posts = Enum.take(JolaDev.Blog.all_posts(), 3)
render(conn, :home,
page_title: "Johanna Larsson, Software Engineer and Speaker",
meta_description:
"Johanna Larsson is a software engineer, engineering leader, writer, and speaker with many years of experience building products and leading teams.",
recent_posts: recent_posts
)
end
def about(conn, _params) do
render(conn, :about,
page_title: "About Johanna Larsson",
meta_description:
"About Johanna Larsson, software engineer, engineering leader, writer, and speaker with many years of experience.",
page_type: :about
)
end
def projects(conn, _params) do
render(conn, :projects,
page_title: "Projects | jola.dev",
meta_description:
"Open source projects by Johanna Larsson, including HexDiff, ElixirEvents, and more."
)
end
def talks(conn, _params) do
render(conn, :talks,
page_title: "Talks | jola.dev",
meta_description:
"Conference talks and presentations by Johanna Larsson on Elixir, distributed systems, and engineering leadership."
)
end
def newsletter(conn, _params) do
render(conn, :newsletter,
page_title: "Newsletter | jola.dev",
meta_description:
"Newsletter by Johanna Larsson with content from the blog, delivered monthly."
)
end
end