feat: migrate Hugo Bootstrap theme to latest Hugo with Tailwind CSS and refactor codebase

* replace Bootstrap-based styling with Tailwind CSS
* update theme compatibility for latest Hugo version
* refactor templates and partials
* fix outdated code and broken components
* improve project structure and maintainability
* optimize styling and frontend build setup
This commit is contained in:
Al Murad Uzzaman
2026-05-10 13:38:01 +06:00
parent eac3f49bc5
commit f8b297eaad
233 changed files with 5272 additions and 9256 deletions

View File

@@ -1,49 +1,24 @@
{{ define "main" }}
<section class="section pt-46">
<div class="container">
<h2 class="h1 mb-4 text-center uppercase">
{{ .Title | markdownify }}
</h2>
<p class="text-balance text-center">
{{ .Description | markdownify }}
</p>
<div class="grid gap-8 md:grid-cols-2 mt-14">
{{ $paginator:= .Paginate .RegularPages }}
{{ range $paginator.Pages }}
{{ partial "components/blog-card" . }}
{{ end }}
</div>
<section class="site-blog-header">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8 text-center">
<h1>{{ .Title }}</h1>
<p>
{{ .Params.description }}
</p>
<div class="mt-14 flex justify-center">
{{ partial "components/pagination.html" . }}
</div>
</div>
</div>
</section>
<section class="site-blog">
<div class="container">
<div class="row">
{{ range (.Paginator 4).Pages }}
<div class="col-lg-6">
<article class="site-blog-post">
{{ with .Params.image }}
<div class="site-blog-post-thumb">
<img src="{{ . | absURL }}" alt="post-thumb">
</div>
{{ end }}
<div class="site-blog-post-content">
<span>{{ .PublishDate.Format "January 2, 2006" }}</span>
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p>
{{ .Summary }} ...
</p>
<a href="{{ .Permalink }}" class="read-more">{{ .Site.Params.blog.read_more }}</a>
</div>
</article>
</div>
{{ end }}
<div class="col-12">
<div class="site-blog-pagination">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</div>
</div>
</section>
{{ partial "call-to-action.html" . }}
</section>
{{ partial "call-to-action" . }}
{{ end }}