Skip to content

Commit adf375f

Browse files
committed
feat: blog base setup added
1 parent 830844e commit adf375f

File tree

7 files changed

+45
-6
lines changed

7 files changed

+45
-6
lines changed

docs/assets/stylesheets/card-layout.css

+5
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@
5151
.md-post--excerpt .md-post__content {
5252
display: block;
5353
}
54+
55+
.md-post__content .read-more {
56+
font-size: 16px;
57+
font-weight: normal;
58+
}

docs/blog/articles/http-client-intellij-plugin.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
author: Ramachandran Nellaiyappan
3+
title: "HTTP Client - IntelliJ Plugin"
34
date: 2024-10-07
45
updated:
56
categories:

docs/blog/articles/intellij-live-templates.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: "IntelliJ IDEA Live Templates"
23
author: Ramachandran Nellaiyappan
34
date: 2025-03-11
45
updated:

docs/blog/articles/new-java-application-checklist.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: "Checklist for creating Java Application/Service"
23
author: Ramachandran Nellaiyappan
34
date: 2024-10-28
45
updated:

docs/blog/articles/open-rewrite.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: "OpenRewrite Integration"
23
author: Ramachandran Nellaiyappan
34
date: 2025-09-27
45
updated: 16.02.2025

docs/overrides/partials/post.html

+33-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
<article class="md-post md-post--excerpt card">
22
<header class="md-post__header">
3+
{% if post.authors %}
4+
<nav class="md-post__authors md-typeset">
5+
{% for author in post.authors %}
6+
<span class="md-author">
7+
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
8+
</span>
9+
{% endfor %}
10+
</nav>
11+
{% endif %}
12+
313
<div class="md-post__meta md-meta">
414
<ul class="md-meta__list">
515
<li class="md-meta__item">
16+
<i class="fas fa-calendar-alt"></i> <!-- Calendar Icon -->
617
<time datetime="{{ post.config.date.created }}">
718
{{ post.config.date.created.strftime('%d %b %Y') }}
819
</time>
920
</li>
21+
1022
{% if post.categories %}
1123
<li class="md-meta__item">
24+
<i class="fas fa-folder"></i> <!-- Folder Icon -->
1225
Categories:
1326
{% for category in post.categories %}
1427
<a href="{{ category.url | url }}" class="md-meta__link">
@@ -18,18 +31,22 @@
1831
{% endfor %}
1932
</li>
2033
{% endif %}
34+
2135
{% if post.meta.tags %}
2236
<li class="md-meta__item">
37+
<i class="fas fa-tags"></i> <!-- Tag Icon -->
2338
Tags:
2439
{% for tag in post.meta.tags %}
2540
{{ tag }}
2641
{% if loop.revindex > 1 %}, {% endif %}
2742
{% endfor %}
2843
</li>
2944
{% endif %}
45+
3046
{% if post.config.readtime %}
3147
{% set time = post.config.readtime %}
32-
<li class="md-meta__item readtime">
48+
<li class="md-meta__item">
49+
<i class="fas fa-clock"></i> <!-- Clock Icon -->
3350
{% if time == 1 %}
3451
{{ lang.t("readtime.one") }}
3552
{% else %}
@@ -38,16 +55,26 @@
3855
</li>
3956
{% endif %}
4057
</ul>
58+
59+
{% if post.config.draft %}
60+
<span class="md-draft">
61+
<i class="fas fa-exclamation-circle"></i> Draft
62+
</span>
63+
{% endif %}
4164
</div>
4265
</header>
4366

44-
<!-- Clickable Post Title -->
45-
<h2 class="md-post__title">
46-
<a href="{{ post.url }}" class="md-post__link">{{ post.title }}</a>
67+
<!-- Clickable Post-Title -->
68+
<h2 class="md-post__title md-typeset">
69+
<a href="{{ post.url | url}}" class="md-post__link">
70+
{{ post.title }}
71+
</a>
4772
</h2>
4873

4974
<div class="md-post__content md-typeset">
50-
<p>{{ post.excerpt | default(post.content | truncate(150)) }}</p>
51-
<a href="{{ post.url }}" class="read-more">Read More →</a>
75+
<p class="md-typeset">{{ post.excerpt | default(post.content | striptags | truncate(150, True)) }}</p>
76+
<a href="{{ post.url | url }}" class="read-more">
77+
Read More
78+
</a>
5279
</div>
5380
</article>

mkdocs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ extra_css:
5656
- assets/stylesheets/custom.css
5757
- assets/stylesheets/card-layout.css
5858

59+
extra_javascript:
60+
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js
61+
5962
plugins:
6063
- search
6164
- offline

0 commit comments

Comments
 (0)