Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
aishikrehman committed Dec 24, 2024
1 parent 9369afe commit ca40e32
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 43 deletions.
4 changes: 2 additions & 2 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ theme: "tasmin"
# enableGitInfo: true
# googleAnalytics: "G-3NFDT41J8E"

paginate: 10
paginate: 5

languages:
bn:
Expand Down Expand Up @@ -55,7 +55,7 @@ Params:
fb_app_id: "" #Facebook Application ID
meta:
name: Aishik Rehman
alternateName: ""
alternateName: "Oishik Rehman"
author:
name: Aishik Rehman
jobtitle: Wikimedian and Lexicolgist and CSEr.
Expand Down
2 changes: 0 additions & 2 deletions content/bn/about/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "পরিচিতি"
layout: about
_build:
list: never
aliases:
- /p/about.html
---
আমি ঐশিক রেহমান, কম্পিউটার প্রকৌশল এবং কম্পিউটেশনাল ভাষাবিদ্যার একজন শিক্ষার্থী। আমি বর্তমানে গ্রীন ইউনিভার্সিটি থেকে কম্পিউটার সায়েন্স অ্যান্ড ইঞ্জিনিয়ারিংয়ে অধ্যয়ন করছি।

Expand Down
4 changes: 3 additions & 1 deletion content/en/about/gallery.md → content/bn/gallery.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: ছবিটবি
hideavatar: true
layout: gallery
url: /about/gallery/
description: "ব্যক্তিগত ছবির রাজ্য, যেখানে আটকে গেছে জীবনের বিশেষ মুহূর্ত, আনন্দের স্মৃতি আর গল্পগুলো।"
---
<div class="row">
<div class="col-lg-4 col-md-12 mb-4 mb-lg-0">
Expand Down
4 changes: 3 additions & 1 deletion content/bn/about/gallery.md → content/en/gallery.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: ছবিটবি
hideavatar: true
layout: gallery
url: /en/about/gallery/
description: "Discover Aishik Rehman's personal photo gallery, capturing cherished memories, moments of joy, and milestones."
---
<div class="row">
<div class="col-lg-4 col-md-12 mb-4 mb-lg-0">
Expand Down
14 changes: 14 additions & 0 deletions content/fact_check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Practice problem (Quiz) structured data
https://developers.google.com/search/docs/appearance/structured-data/practice-problems

Q&A (QAPage) structured data
https://developers.google.com/search/docs/appearance/structured-data/qapage

FAQ (FAQPage, Question, Answer) structured data
https://developers.google.com/search/docs/appearance/structured-data/faqpage

Education Q&A (Quiz, Question, and Answer) structured data
https://developers.google.com/search/docs/appearance/structured-data/education-qa

Job posting (JobPosting) structured data for Job Search
https://developers.google.com/search/docs/appearance/structured-data/job-posting
52 changes: 26 additions & 26 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{{ define "main" }}
<article class="container" itemscope itemtype="https://schema.org/Article">
<article id="article" class="container" itemscope itemtype="https://schema.org/Article">
{{/* Article MetaData */}}
<div class="mt-5" id="articleMetaData">
<div>{{ partial "meta.breadcrumb.html" . }}</div>
<h3 itemprop="headline">{{ .Title }}</h3>
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<div id="articleSchema" class="mt-5">
<div id="articleBraedcrumb">{{ partial "meta.breadcrumb.html" . }}</div>
<h3 id="articleTitle" itemprop="headline">{{ .Title }}</h3>
<div id="articleAuthor" itemprop="author" itemscope itemtype="https://schema.org/Person">
<i class="bi bi-person-fill-check pe-1"></i>
<a itemprop="url" href="{{ if ne .File.Lang .Site.Params.defaultLang }}/{{.File.Lang}}{{ end }}/about/">
<a itemprop="url"
href="{{ if ne .Page.Language.Lang .Site.Params.defaultLang }}/{{.Page.Language.Lang}}{{ end }}/about/">
<span itemprop="name">{{ .Site.Params.author.name }}</span>
</a>
</div>
<div class="list-inline">
<span id="articleTags" class="d-block">
{{ if isset .Params "tags" }}
<i class="bi bi-tag-fill pe-1"></i>
{{ range .Params.tags }}
<a class="fs-6" href='{{absLangURL "/tags/"}}{{ . | urlize }}'>{{ .}}</a>
{{ range $index, $tag := .Params.tags }}
{{ if $index }}▪{{ end }}
<a class="fs-6" href="{{ absLangURL " /tags/" }}{{ $tag | urlize }}">{{ $tag }}</a>{{- end -}}
{{ end }}
{{ end }}
</div>
<div class="list-inline">
<span class="fs-6"><i class="bi bi-alarm-fill pe-2"></i>{{i18n "timetoread"}}: {{ .ReadingTime }} {{i18n
"mintues"}}</span>
{{ with .Params.date }}<span class="fs-6 p-1"><i class="bi bi-calendar-week-fill me-2"></i>{{i18n "pubon"}}:
{{ . | dateFormat "January 02, 2006"
}}</span>{{end}}
</div>
</span>
<span id="articleReadingTime" class="fs-6">
<i class="bi bi-alarm-fill pe-2"></i>{{i18n "timetoread"}}: {{ .ReadingTime }} {{i18n "mintues"}}
</span>
{{ with .Params.date }}
<span id="articlePublicationDate" class="fs-6 ms-3">
<i class="bi bi-calendar-week-fill pe-2"></i>{{i18n "pubon"}}:
{{ . | dateFormat "January 02, 2006" }}</span>
{{end}}
</div>
<hr>
<div class="row g-5 my-3">
<div class="col-md-8">
{{/* Article Body */}}
<div class="text-justify" itemprop="articleBody" id="articleBody">{{.Content}}
<hr class="mt-5">
{{ partial "posts.navigation.html" . }}
</div>
<div id="articleContent" class="row g-5 my-3">
{{/* Article Body */}}
<div id="articleBody" class="col-md-8 text-justify" itemprop="articleBody" id="articleBody">{{.Content}}
<hr class="mt-5">
{{ partial "posts.navigation.html" . }}
</div>
{{/* Right Sidebar */}}
<div class="col-md-4">
<div id="articleSidebar" class="col-md-4">
<div class="position-sticky" style="top: 2rem;">
<div id="relatedPosts">
{{ $i := 0 }}
Expand Down
47 changes: 45 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ define "script" }}
{{ define "head" }}
<script type="application/ld+json">
{
"@context" : "https://schema.org",
Expand All @@ -16,6 +16,23 @@
}]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{{ range $index, $page := where .Site.RegularPages "Type" "posts" }}
{{- if $index -}},{{- end -}}
{
"@type": "ListItem",
"position": {{ add $index 1 }},
"item": "{{ .Permalink }}",
"name": "{{.Title}}"
}
{{- end -}}
]
}
</script>
{{ end }}

{{ define "main" }}
Expand Down Expand Up @@ -47,7 +64,33 @@
<section class="container" id="bodyContent">
<div class="col-lg-9 m-auto py-5">
<h2 class="text-center py-3">{{i18n "recentPosts"}}</h2>
{{ partial "listitem.html" . }}
{{ $paginatedPages := .Paginate (where .Site.RegularPages "Type" "posts") }}
{{ range $paginatedPages.Pages }}
<article class="row border-bottom py-5">
<div class="col-12 col-md-5">
<div class="d-flex align-items-center mb-2">
{{ with .Params.date }}
<span class="dateofpost">{{ . | dateFormat "January 2, 2006" }}</span>
{{ end }}
</div>
<h5>
<a class="fw-bold" href="{{.RelPermalink}}">{{ .Title }}</a>
</h5>
{{ with .Params.tags }}
<div class="fs-6 pe-2 mb-2">
{{ range . }}
<a class="text-muted border px-2 py-1" href='{{absLangURL "/tags/"}}{{ . | urlize }}'>#{{ . }}</a>
{{ end }}
</div>
{{ end }}
</div>
<div class="col-12 col-md-7 text-justify">
{{ .Summary | truncate 400 }}
{{ if .Truncated }}<a class="text-muted" href="{{ .RelPermalink }}">[{{i18n "readmore"}}]</a>{{ end }}
</div>
</article>
{{ end }}
<div class="d-flex row-center py-3">{{ template "_internal/pagination.html" . }}</div>
</div>
</section>
{{ end }}
17 changes: 17 additions & 0 deletions layouts/page/gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ define "main" }}
<section>
<div>
<div class="page-title-overlap bg-primary py-5">
<div class="container py-2 py-lg-4">
<div class="block-center">
{{ partial "meta.breadcrumb.html" . }}
<h3 class="text-light pt-1">{{ .Title }}</h3>
</div>
</div>
</div>
<div class="container mt-5">
<div class="mt-5 mt-md-0 text-justify">{{ .Content }}</div>
</div>
</div>
</section>
{{ end }}
5 changes: 3 additions & 2 deletions layouts/partials/listitem.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"@type": "BreadcrumbList",
"itemListElement": [
{{ range $index, $page := .Paginator.Pages }}
{{- if $index -}},{{- end -}}
{
"@type": "ListItem",
"position": {{ add $index 1 }},
"url": "{{ .Permalink }}"
"item": "{{ .Permalink }}",
"name": "{{.Title}}"
}
{{- end -}}
]
Expand Down
16 changes: 14 additions & 2 deletions layouts/partials/posts.navigation.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
<div class="d-flex justify-content-between p-3" aria-label="Post navigation">
<div class="d-flex justify-content-between p-3 fw-bold" aria-label="Post navigation">
{{ if .Prev }}<a class="nav-link" href="{{ .Prev.Permalink }}">« {{i18n
"prevpost"}}<span class="d-none"> {{.Prev.Title}}</span></a>{{ end }}
<a class="nav-link" href='{{absLangURL "/posts/"}}'>{{i18n "allposts"}}</a>
{{ if .Next }}<a class="nav-link" href="{{ .Next.Permalink }}">{{i18n "nextpost"}}
»<span class="d-none"> {{.Next.Title}}</span></a>{{ end }}
</div>
</div>
{{/* <div class="d-flex justify-content-between p-3" aria-label="Post navigation">
{{ with .PrevInSection }}
<a class="nav-link" href="{{ .RelPermalink }}">
{{i18n "prevpost"}}
«<span>{{.Title}}</span></a>{{ end }}
<a class="nav-link" href='{{absLangURL "/posts/"}}'>{{i18n "allposts"}}</a>
{{ with .NextInSection }}
<a class="nav-link" href="{{ .RelPermalink }}">
{{i18n "nextpost"}}
<span>{{.Title}}</span>»
</a>{{ end }}
</div> */}}
2 changes: 1 addition & 1 deletion themes/tasmin/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5 class="mb-0 fw-bold">{{ .Site.Title }}</h5>
</div>
{{ end }}
{{/* Languages -- Only for Multiligual Site*/}}
{{ if .Site.IsMultiLingual }}
{{ if hugo.IsMultilingual }}
<div class="dropdown border-right" id="langSwitcher">
<button type="button" class="btn nav-link px-2" data-bs-toggle="dropdown" aria-expanded="false"
data-bs-display="static">
Expand Down
13 changes: 9 additions & 4 deletions themes/tasmin/layouts/shortcodes/gallery.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<figure class="w-100 rounded mb-4">
<img src="{{ index .Params 0 }}" alt="{{ index .Params 1 }}" class="rounded"/>
<figcaption>{{ index .Params 1 }}</figcaption>
</figure>
<figure class="w-100 rounded mb-4" itemscope itemtype="https://schema.org/ImageObject">
<img class="rounded" src="{{ index .Params 0 }}" alt="{{ index .Params 1 }}" itemprop="contentUrl" />
<figcaption class="mt-2" itemprop="name">{{ index .Params 1 }}</figcaption>
<span class="d-none" itemprop="license">CC BY-SA 4.0 Attribution-ShareAlike 4.0 International</span>
<span class="d-none" itemprop="acquireLicensePage">https://creativecommons.org/licenses/by-sa/4.0/</span>
<span class="d-none" itemprop="creator" itemtype="https://schema.org/Person" itemscope>
<meta itemprop="name" content="{{.Site.Params.author.name}}" />
</span>
</figure>

0 comments on commit ca40e32

Please sign in to comment.