Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aishikrehman committed Mar 19, 2024
1 parent fd14aee commit f1b756e
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 64 deletions.
58 changes: 58 additions & 0 deletions _drafts/t.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,61 @@
{{ absLangURL "/" }}

{{/* <script async src="https://cse.google.com/cse.js?cx={{.Site.Params.cse}}"></script> */}}






{{/* <div class="container">
<div class="row justify-content-center pt-5 mt-2">
<section class="col-lg-9">
<ul>
{{ range .Paginator.Pages }}
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
{{ end }}
</ul>

</section>
</div>
</div> */}}

{{/* <!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ if not (eq (len $.Data.Terms) 0) }}
<div>
<div class="tagcloud03">
<ul>
{{ range .Data.Terms.Alphabetical }}
<li>
<a href="#{{ .Page.Title | urlize}}">{{ .Page.Title }}
<span class="badge">{{ .Count }}</span>
</a>
</li>
{{ end }}
</ul>
</div>
<div>
{{ range .Data.Terms.Alphabetical }}
<h3>
<a name="{{ .Page.Title | urlize }}"></a>{{ .Page.Title}}
<span>{{ .Count }}</span>
</h3>
<ul class="list-group striped-list">
{{ range .Pages }}
<li class="list-group-item">
<a href="{{ .RelPermalink }}">
{{ .Title }} {{ if .Params.subheadline }} ({{ .Params.subheadline }}){{ end }} -
<small>{{ .PublishDate.Format "Jan 02, 2006" }}</small></a>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
{{ end }}
</div>
</div>
</div> */}}
13 changes: 10 additions & 3 deletions layouts/page/contact.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{{ define "main" }}
<div class="container mb-5 py-5">
<div class="bg-light py-5">
<div class="page-title-overlap bg-accent py-5">
<div class="container pb-5 px-lg-5">
<div style="display: grid; place-items: center;">
{{ partial "meta.breadcrumb.html" . }}
<h3 class="text-light pt-1">{{ .Title }}</h3>
</div>
</div>
</div>
<div class="container mb-5">
<div class="bg-light py-5 rounded-3 ">
<section class="col-lg-8 m-auto pt-2 pt-lg-4 pb-4 mb-3">
<div class="pt-2 px-4 pe-lg-0 ps-xl-5">
<h2 class="h6 border-bottom pb-3 mb-3">{{.Title }}</h2>
<div class="row pb-4 gx-4 gy-3">
<div class="col-12">
<label class="form-label" for="mc-fn">{{i18n "name"}}<span class="text-danger">*</span></label>
Expand Down
5 changes: 4 additions & 1 deletion layouts/page/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
{{ define "main" }}
<div class="bg-accent pt-4 pb-5">
<div class="container pt-2 pb-3 pt-lg-3 pb-lg-4">
<h1 class="h3 text-light mb-0">{{ .Title }}</h1>
<div style="display: grid; place-items: center;">
{{ partial "meta.breadcrumb.html" . }}
<h3 class="text-light pt-1">{{ .Title }}</h3>
</div>
</div>
</div>
<div class="container pb-5 mb-2 mb-md-4">
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<div class="row pb-2">
<div class="col-md-6 text-center text-md-start mb-4">
<a class="h5 mb-4" href='{{absLangURL "/"}}'>{{.Site.Title}}</a>
{{/* <ul class="list-inline fs-sm">
{{/* <ul class="list-inline fs-sm">
<li class="list-inline-item"><a href="#">Contact Me</a></li>
<li class="list-inline-item"><a href="#">About Me</a></li>
</ul> */}}
</ul> */}}
</div>
<div class="col-md-6 text-center text-md-end mb-4">
<div class="social-links">
{{ range $name, $value := .Site.Params.author.social }}
<a class="btn-social me-2 mt-2" href="{{$value}}"><i class="bi bi-{{ $name }}"></i></a>
{{ end }}
</div>

</div>
</div>
<div class="pb-4 fs-sm opacity-50 text-center text-md-start">{{i18n "allrights"}} <br> {{i18n "copyright"}}</div>
<div class="pb-4 fs-sm opacity-50 text-center text-md-start">{{i18n "allrights"}} <br> {{i18n "copyright"}}
</div>
</div>
</footer>
3 changes: 1 addition & 2 deletions layouts/partials/listitem.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
<h2 class="h5 blog-entry-title"><a href="{{.RelPermalink}}">{{ .Title }}</a></h2>
{{ if isset .Params "tags" }}
<div class="fs-sm text-muted pe-2 mb-2">{{ range .Params.tags }}<a class="btn-tag me-2 mb-2"
href='{{absLangURL ""}}tags/{{ . | urlize }}'>#{{ . }}</a>{{ end }}
href='{{absLangURL "/tags/"}}{{ . | urlize }}'>#{{ . }}</a>{{ end }}
</div>
{{ end }}

</div>
<div class="blog-end-column">
<p class="fs-sm">{{ .Summary | truncate 400 }} {{ if .Truncated }}
Expand Down
74 changes: 20 additions & 54 deletions layouts/tags/taxonomy.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
{{ define "script" }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"itemListElement": [
{{ if not (eq (len $.Data.Terms) 0) }}
{{ range $index, $page := .Data.Terms.Alphabetical }}
{{- if $index -}},{{- end -}}
{
"@type": "ListItem",
"position": {{ add $index 1 }},
"url": "{{absLangURL .Page.Title}}/"
}
{{ end}}
{{ end }}
]
}
</script>
{{ end }}
{{ define "main" }}
<div class="container">
<div class="row row-cols-sm-4 row-cols-1 gy-3 mt-5">
Expand All @@ -17,59 +37,5 @@ <h6 class="fs-base pt-1 mb-1">{{ .Page.Title | humanize }}</h6>
{{ end}}
{{ end }}
</div>

</div>

{{/* <div class="container">
<div class="row justify-content-center pt-5 mt-2">
<section class="col-lg-9">
<ul>
{{ range .Paginator.Pages }}
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
{{ end }}
</ul>

</section>
</div>
</div> */}}

{{/* <!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ if not (eq (len $.Data.Terms) 0) }}
<div>
<div class="tagcloud03">
<ul>
{{ range .Data.Terms.Alphabetical }}
<li>
<a href="#{{ .Page.Title | urlize}}">{{ .Page.Title }}
<span class="badge">{{ .Count }}</span>
</a>
</li>
{{ end }}
</ul>
</div>
<div>
{{ range .Data.Terms.Alphabetical }}
<h3>
<a name="{{ .Page.Title | urlize }}"></a>{{ .Page.Title}}
<span>{{ .Count }}</span>
</h3>
<ul class="list-group striped-list">
{{ range .Pages }}
<li class="list-group-item">
<a href="{{ .RelPermalink }}">
{{ .Title }} {{ if .Params.subheadline }} ({{ .Params.subheadline }}){{ end }} -
<small>{{ .PublishDate.Format "Jan 02, 2006" }}</small></a>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
{{ end }}
</div>
</div>
</div> */}}
{{ end }}

0 comments on commit f1b756e

Please sign in to comment.