Skip to content

Commit f9582ef

Browse files
author
Agil Mammadov
committed
style: format with new preferences
1 parent 9528bbc commit f9582ef

12 files changed

Lines changed: 42 additions & 25 deletions

File tree

_includes/footer.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
<data class="u-url" href="{{ "/" | relative_url }}"></data>
33
<div class="wrapper">
44
<div class="footer-col-wrapper">
5-
<div class="footer-col" style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
6-
<p>&copy; {{ "now" | date: "%Y" }} {{ site.title | upcase }}</p>
5+
<div
6+
class="footer-col"
7+
style="display: flex; justify-content: space-between; align-items: center; width: 100%;"
8+
>
9+
<p>
10+
&copy; {{ 'now' | date: '%Y' }}
11+
{{ site.title | upcase }}
12+
</p>
713
</div>
814
</div>
915
</div>

_includes/head.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
{%- seo -%}
66
<link rel="preconnect" href="https://fonts.googleapis.com">
77
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
8+
<link
9+
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap"
10+
rel="stylesheet"
11+
>
912
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
1013
{%- feed_meta -%}
1114
</head>

_includes/header.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<header class="site-header" role="banner">
2-
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
2+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
3+
{{ site.title | escape }}
4+
</a>
35
</header>

_includes/menu.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{%- for item in include.collection -%}
2-
<section>
3-
<h2 class="section-title">// {{ item.title }} //</h2>
4-
{%- if item.content -%} {{ item.content }} {%- endif -%}
5-
</section>
6-
{%- if item.post_list -%} {%- include post_list.html -%} {%- endif -%} {%- if item.entries -%} {%-
7-
include menu.html collection = item.entries -%} {%- endif -%} {%- endfor -%}
2+
<section>
3+
<h2 class="section-title">// {{ item.title }} //</h2>
4+
{%- if item.content -%}{{ item.content }}{%- endif -%}
5+
</section>
6+
{%- if item.post_list -%}{%- include post_list.html -%}{%- endif -%}
7+
{%- if item.entries -%}
8+
{%- include menu.html collection = item.entries -%}
9+
{%- endif -%}
10+
{%- endfor -%}

_includes/post_list.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<ul class="post-list">
22
{%- for post in site.posts -%}
3-
<li>
4-
<span class="post-meta">* {{ post.date | date: "%Y%m%d" }}</span>
5-
<a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
6-
</li>
3+
<li>
4+
<span class="post-meta">* {{ post.date | date: '%Y%m%d' }}</span>
5+
<a class="post-link" href="{{ post.url | relative_url }}">
6+
{{ post.title | escape }}
7+
</a>
8+
</li>
79
{%- endfor -%}
810
</ul>

_layouts/default.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="{{ page.lang | default: "en" }}">
33
{%- include head.html -%}
44
<body>
@@ -9,10 +9,13 @@
99
</main>
1010

1111
{%- include footer.html -%}
12-
12+
1313
{% if page.custom_js %}
1414
{% for js_file in page.custom_js %}
15-
<script type="text/javascript" src="{{ site.baseurl }}/assets/js/{{ js_file }}.js"></script>
15+
<script
16+
type="text/javascript"
17+
src="{{ site.baseurl }}/assets/js/{{ js_file }}.js"
18+
></script>
1619
{% endfor %}
1720
{% endif %}
1821
</body>

_layouts/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
layout: default
33
---
4-
5-
{%- include header.html -%} {%- include menu.html collection=site.data.menu.entries -%}
4+
{%- include header.html -%}
5+
{%- include menu.html collection=site.data.menu.entries -%}

_layouts/page.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
layout: default
33
---
4-
54
{{ content }}

_layouts/post.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: default
33
---
4-
54
<h1>{{ page.title }}</h1>
65

76
{{ content }}

_posts/2026-03-17-test-post-layout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: 'Testing the Post Layout'
3+
title: "Testing the Post Layout"
44
date: 2026-03-17 12:00:00 +0000
55
categories: [test, jekyll]
66
---
@@ -38,7 +38,7 @@ And a fenced code block:
3838
function greet(name) {
3939
return `Hello, ${name}! Welcome to the blog.`;
4040
}
41-
console.log(greet('World'));
41+
console.log(greet("World"));
4242
```
4343

4444
Here's a blockquote:

0 commit comments

Comments
 (0)