chore: rename services to blog

This commit is contained in:
Ivan R. 2024-07-23 18:51:58 +05:00
parent e185b154ab
commit 84681401ec
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
8 changed files with 18 additions and 18 deletions

View file

@ -16,7 +16,7 @@ defmodule ComfycampWeb.NavBar do
~H"""
<nav class="limiter navbar">
<.link href="/">Главная</.link>
<.link href="/services/">Сервисы</.link>
<.link href="/blog/">Блог</.link>
<.link href="/cinema/">Кинотеатр</.link>
<div class="space" />

View file

@ -0,0 +1,7 @@
defmodule ComfycampWeb.BlogController do
use ComfycampWeb, :controller
def index(conn, _params) do
render(conn, :index, page_title: "Блог")
end
end

View file

@ -0,0 +1,8 @@
defmodule ComfycampWeb.BlogHTML do
@moduledoc """
This module contains pages rendered by BlogController.
"""
use ComfycampWeb, :html
embed_templates "blog_html/*"
end

View file

@ -0,0 +1 @@
<p>Блог</p>

View file

@ -1,7 +0,0 @@
defmodule ComfycampWeb.ServicesController do
use ComfycampWeb, :controller
def index(conn, _params) do
render(conn, :index, page_title: "Сервисы")
end
end

View file

@ -1,8 +0,0 @@
defmodule ComfycampWeb.ServicesHTML do
@moduledoc """
This module contains pages rendered by ServicesController.
"""
use ComfycampWeb, :html
embed_templates "services_html/*"
end

View file

@ -1 +0,0 @@
<p>Сервисы</p>

View file

@ -21,7 +21,7 @@ defmodule ComfycampWeb.Router do
pipe_through :browser
get "/", MainController, :index
get "/services", ServicesController, :index
get "/blog", BlogController, :index
get "/cinema", CinemaController, :index
end