Skip to content

Commit

Permalink
fix perf issues
Browse files Browse the repository at this point in the history
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
avinal committed Mar 31, 2024
1 parent 31a90cd commit 1e13894
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
13 changes: 0 additions & 13 deletions blog/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,3 @@ window.remark_config = {
no_footer: true,
};

!(function (e, n) {
for (var o = 0; o < e.length; o++) {
var r = n.createElement("script"),
c = ".js",
d = n.head || n.body;
"noModule" in r
? ((r.type = "module"), (c = ".mjs"))
: (r.async = !0),
(r.defer = !0),
(r.src = remark_config.host + "/web/" + e[o] + c),
d.appendChild(r);
}
})(remark_config.components || ["embed"], document);
6 changes: 1 addition & 5 deletions blog/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ <h3 class="text-2xl font-semibold sm:text-4xl group-hover:underline group-focus:
{{ end }}
<p> {{ .Summary | truncate 250 }}</p>
</a>
<a href="" target="_blank">
<span class="flex flex-wrap py-6 space-x-2">
<a class="px-3 py-1 m-1 rounded-sm hover:underline bg-pink-400 text-gray-900 font-bold" href="/posts/category/{{ .Params.Category }}">
{{ .Params.Category }}</a>
</span>
</a>
</div>
</div>
{{ end }}
Expand Down Expand Up @@ -67,16 +65,14 @@ <h3 class="text-2xl font-semibold group-hover:underline group-focus:underline">{
<p> {{ .Summary | truncate 150 }}</p>

</a>
<a href="" target="_blank">
<span class="flex flex-wrap py-6 space-x-2">
<a class="px-3 py-1 m-1 rounded-sm hover:underline bg-pink-400 text-gray-900 font-bold" href="/posts/category/{{ .Params.Category }}">
{{ .Params.Category }}</a>
</span>
</a>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
{{ end }}
19 changes: 18 additions & 1 deletion blog/layouts/partials/comments.html
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
<div id="remark42" class="md:p-4 mb-16"></div>
<script>
!(function (e, n) {
for (var o = 0; o < e.length; o++) {
var r = n.createElement("script"),
c = ".js",
d = n.head || n.body;
"noModule" in r
? ((r.type = "module"), (c = ".mjs"))
: (r.async = !0),
(r.defer = !0),
(r.src = remark_config.host + "/web/" + e[o] + c),
d.appendChild(r);
}
})(remark_config.components || ["embed"], document);
</script>

<div id="remark42" class="md:p-4 mb-16"></div>

Binary file modified static/images/tech-wallpaper-2.webp
Binary file not shown.

0 comments on commit 1e13894

Please sign in to comment.