Skip to content

Commit 2546efd

Browse files
committed
Refactor HTML structure in default layout for improved readability and organization
1 parent c8c6018 commit 2546efd

File tree

1 file changed

+45
-46
lines changed

1 file changed

+45
-46
lines changed

_layouts/default.html

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
23
<head>
34
<meta charset="utf-8">
4-
<title>{{ page.title }}</title>
5+
<title>{% if page.url == "/" %}{{ site.title }}{% else %}{{ site.title }}: {{ page.title }}{% endif %}</title>
56
<link href="https://feascript.com/FEAScript-website.css" rel="stylesheet" type="text/css" />
6-
</head>
7-
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
8-
9-
{%- include head.html -%}
107
<link rel="icon" type="image/x-icon" href="https://feascript.com/assets/favicon.ico" />
8+
{%- include head.html -%}
119

1210
<!-- Google tag (gtag.js) -->
1311
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1JPK0KLEC9"></script>
@@ -20,60 +18,61 @@
2018

2119
gtag("config", "G-1JPK0KLEC9");
2220
</script>
21+
</head>
2322

24-
<body>
23+
<body>
2524

26-
{%- include header.html -%}
25+
{%- include header.html -%}
2726

28-
<main class="page-content" aria-label="Content">
29-
<div class="wrapper">
30-
{{ content }}
31-
</div>
32-
</main>
27+
<main class="page-content" aria-label="Content">
28+
<div class="wrapper">
29+
{{ content }}
30+
</div>
31+
</main>
3332

34-
<footer class="site-footer h-card">
35-
<data class="u-url" href="{{ "/" | relative_url }}"></data>
33+
<footer class="site-footer h-card">
34+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
3635

37-
<div class="wrapper">
36+
<div class="wrapper">
3837

39-
<h2 class="footer-heading">{{ site.title | escape }}</h2>
38+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
4039

41-
<div class="footer-col-wrapper">
42-
<div class="footer-col footer-col-1">
43-
<ul class="contact-list">
44-
<li class="p-name">
45-
{%- if site.author -%}
46-
{{ site.author | escape }}
47-
{%- else -%}
48-
{{ site.title | escape }}
49-
{%- endif -%}
50-
</li>
51-
{%- if site.email -%}
52-
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
40+
<div class="footer-col-wrapper">
41+
<div class="footer-col footer-col-1">
42+
<ul class="contact-list">
43+
<li class="p-name">
44+
{%- if site.author -%}
45+
{{ site.author | escape }}
46+
{%- else -%}
47+
{{ site.title | escape }}
5348
{%- endif -%}
54-
</ul>
55-
</div>
56-
57-
<div class="footer-col footer-col-2">
58-
{%- include social.html -%}
59-
</div>
49+
</li>
50+
{%- if site.email -%}
51+
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
52+
{%- endif -%}
53+
</ul>
54+
</div>
6055

61-
<div class="footer-col footer-col-3">
62-
<p>
63-
<a href="https://feascript.com/" target="_blank">
64-
<img src="https://feascript.github.io/FEAScript-website/assets/FEAScriptLogo.png" alt="FEAScript Logo" class="footer-logo" style="width: 40px; height: auto;">
65-
</a>
66-
</p>
67-
<p>
68-
{{ site.description | escape }}
69-
</p>
70-
</div>
56+
<div class="footer-col footer-col-2">
57+
{%- include social.html -%}
58+
</div>
7159

60+
<div class="footer-col footer-col-3">
61+
<p>
62+
<a href="https://feascript.com/" target="_blank">
63+
<img src="https://feascript.github.io/FEAScript-website/assets/FEAScriptLogo.png" alt="FEAScript Logo" class="footer-logo" style="width: 40px; height: auto;">
64+
</a>
65+
</p>
66+
<p>
67+
{{ site.description | escape }}
68+
</p>
7269
</div>
7370

7471
</div>
7572

76-
</footer>
77-
</body>
73+
</div>
74+
75+
</footer>
76+
</body>
7877

7978
</html>

0 commit comments

Comments
 (0)