|
1 | | -@using Elastic.Markdown.Helpers |
2 | 1 | @inherits RazorLayoutSlice<LayoutViewModel> |
3 | 2 | <!DOCTYPE html> |
4 | 3 | <html lang="en" class="h-screen"> |
5 | | -<head> |
6 | | - <title>@Model.Title</title> |
7 | | - <link rel="stylesheet" type="text/css" href="@Model.Static("styles.css")"/> |
8 | | - <meta charset="utf-8"> |
9 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
10 | | - <meta name="robots" content="@(Model.AllowIndexing ? "index, follow" : "noindex, nofollow")"> |
11 | | - <meta name="htmx-config" content='{"scrollIntoViewOnBoost": false, "selfRequestsOnly": true}'> |
12 | | -</head> |
| 4 | +@await RenderPartialAsync(_Head.Create(Model)) |
13 | 5 | <body class="text-ink" hx-ext="preload,head-support"> |
14 | 6 | @(await RenderPartialAsync(_Header.Create(Model))) |
15 | 7 | <div class="flex flex-col items-center px-6"> |
|
29 | 21 | <article id="markdown-content" class="content-container markdown-content"> |
30 | 22 | @await RenderBodyAsync() |
31 | 23 | </article> |
32 | | - <footer id="prev-next-nav" class="content-container mt-20"> |
33 | | - <div class="flex flex-wrap lg:flex-nowrap gap-2 mt-2"> |
34 | | - <div class="w-full"> |
35 | | - @if (Model.Previous != null) |
36 | | - { |
37 | | - <a |
38 | | - href="@Model.Previous.Url" |
39 | | - hx-get="@Model.Previous.Url" |
40 | | - hx-select-oob="@Htmx.GetHxSelectOob()" |
41 | | - hx-swap="none" |
42 | | - hx-push-url="true" |
43 | | - hx-indicator="#htmx-indicator" |
44 | | - preload="mouseover" |
45 | | - class="flex h-full items-center text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md" |
46 | | - > |
47 | | - <svg class="size-6 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> |
48 | | - <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/> |
49 | | - </svg> |
50 | | - <div> |
51 | | - <div class="text-xs lg:text-sm">Previous</div> |
52 | | - <div class="text-base lg:text-xl text-black">@Model.Previous.NavigationTitle</div> |
53 | | - </div> |
54 | | - </a> |
55 | | - } |
56 | | - </div> |
57 | | - <div class="w-full"> |
58 | | - @if (Model.Next != null) |
59 | | - { |
60 | | - <a |
61 | | - href="@Model.Next.Url" |
62 | | - hx-get="@Model.Next.Url" |
63 | | - hx-select-oob="@Htmx.GetHxSelectOob()" |
64 | | - hx-swap="none" |
65 | | - hx-push-url="true" |
66 | | - hx-indicator="#htmx-indicator" |
67 | | - preload="mouseover" |
68 | | - class="flex h-full items-center justify-end text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md text-right" |
69 | | - > |
70 | | - <div> |
71 | | - <div class="text-xs lg:text-sm">Next</div> |
72 | | - <div class="text-base lg:text-xl text-black">@Model.Next.NavigationTitle</div> |
73 | | - </div> |
74 | | - <svg class="size-6 ml-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> |
75 | | - <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/> |
76 | | - </svg> |
77 | | - </a> |
78 | | - } |
79 | | - </div> |
80 | | - </div> |
81 | | - </footer> |
| 24 | + @await RenderPartialAsync(_PrevNextNav.Create(Model)) |
82 | 25 | </main> |
83 | 26 | </div> |
84 | 27 | </div> |
85 | | -@(await RenderPartialAsync(_Footer.Create(Model))) |
86 | | -<script src="@Model.Static("main.js")"></script> |
| 28 | +@await RenderPartialAsync(_Footer.Create(Model)) |
87 | 29 | </body> |
88 | 30 | </html> |
0 commit comments