Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
aishikrehman committed Mar 24, 2024
1 parent cf7116b commit c83856a
Show file tree
Hide file tree
Showing 7 changed files with 2,183 additions and 321 deletions.
11 changes: 6 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ baseURL: "https://aishikrehman.com/"
DefaultContentLanguage: "bn"
defaultContentLanguageInSubdir: "false"
enableMissingTranslationPlaceholders: "false"
timeZone: Asia/Dhaka
timeZone: "Asia/Dhaka"
# enableGitInfo: true
# googleAnalytics: "G-3NFDT41J8E"
paginate: 10
Expand Down Expand Up @@ -60,12 +60,13 @@ languages:
- name: Tags
url: /tags/
Params:
defaultColorMode: "light"
defaultColorMode: "light" #Change this require some changes to colormode.js script, Otherwise it won't work
activateColorModeToogler: true #To activate color mode dark/light/auto
useBootstrapMod: true #Mod of 5.3.3
useBootstrapMod: true #Mod of Bootsrap 5.3.3, If you don't want to use the mod, set the BootstrapCDNVersion
useBootstrapIcons: true # To use Botstrap Icons. Recommended is "true"
BootstrapCDNVersion: "5.3.3" #Doesnt work if useBootstrapMod is "true"
defaultLang: bn
BootstrapCDNVersion: "5.3.3" #Doesnt work if useBootstrapMod is "true", To apply this, set useBootstrapMod to false
defaultLang: bn #Set it the value of same as DefaultContentLanguage, use to chekck
activatejQuery: true
# tagTranslations:
# animal-rights: প্রাণী অধিকার
# environment: পরিবেশ
Expand Down
7 changes: 0 additions & 7 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,29 @@
{{ partial "metadata.html" . }}
<link rel="canonical" href="{{ .Permalink }}">
<link rel="icon" type="image/x-icon" href="/favicon.ico">

{{- with .OutputFormats.Get "rss" -}}
{{ printf `
<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end -}}

{{ if .Site.Params.useBootstrapMod -}}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap5.3.mod.css">
{{ else }}
{{ with .Site.Params.BootstrapCDNVersion }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@{{.}}/dist/css/bootstrap.min.css">
{{ end -}}
{{ end -}}

{{ if .Site.Params.useBootstrapIcons -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
{{ end -}}

<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
{{ block "style" . }}{{ end -}}

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
{{ if .Site.Params.activatejQuery }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
{{ end -}}

{{ if .Site.Params.activateColorModeToogler -}}
<script src="/js/colormode.js"></script>
{{ end }}

{{ block "script" . }}{{ end }}
{{/* {{- template "_internal/google_analytics.html" . }} */}}
</head>
Expand Down
208 changes: 107 additions & 101 deletions layouts/page/search.html
Original file line number Diff line number Diff line change
@@ -1,124 +1,130 @@
{{ define "style" }}
<style>
.gcsc-branding, .gcsc-more-maybe-branding-root {
display: none!important;
}
</style>
{{ end }}

{{ define "script" }}
<script>
(function(opts_){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var f=this||self;function g(a){return a};var h;function k(a,b){this.h=a===l&&b||"";this.g=m}function n(a){return a instanceof k&&a.constructor===k&&a.g===m?a.h:"type_error:Const"}var m={},l={};function p(a,b){this.h=b===q?a:""}p.prototype.toString=function(){return this.h+""};function r(a){return a instanceof p&&a.constructor===p?a.h:"type_error:TrustedResourceUrl"}
function u(a,b){var c=n(a);if(!v.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(w,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof k?n(d):encodeURIComponent(String(d))});return x(a)}var w=/%{(\w+)}/g,v=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),y=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
function z(a){var b=A;a=u(B,a);a=y.exec(r(a).toString());var c=a[3]||"";return x(a[1]+C("?",a[2]||"",b)+C("#",c))}var q={};function x(a){if(void 0===h){var b=null;var c=f.trustedTypes;if(c&&c.createPolicy){try{b=c.createPolicy("goog#html",{createHTML:g,createScript:g,createScriptURL:g})}catch(d){f.console&&f.console.error(d.message)}h=b}else h=b}a=(b=h)?b.createScriptURL(a):a;return new p(a,q)}
function C(a,b,c){if(null==c)return b;if("string"===typeof c)return c?a+encodeURIComponent(c):"";for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var e=c[d];e=Array.isArray(e)?e:[e];for(var t=0;t<e.length;t++){var D=e[t];null!=D&&(b||(b=a),b+=(b.length>a.length?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(String(D)))}}return b};function E(a,b){this.g=b===F?a:""}E.prototype.toString=function(){return this.g.toString()};var F={};/*
SPDX-License-Identifier: Apache-2.0
*/
var G;try{new URL("s://g"),G=!0}catch(a){G=!1}var H=G;var I="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var J=new k(l,"https://www.google.com/cse/static/style/look/%{versionDir}%{versionSlash}%{theme}.css"),K=new k(l,"https://www.google.com/cse/static/element/%{versionDir}%{versionSlash}default%{experiment}+%{lang}.css"),B=new k(l,"https://www.google.com/cse/static/element/%{versionDir}%{versionSlash}cse_element__%{lang}.js"),L=new k(l,"/");window.__gcse=window.__gcse||{};window.__gcse.ct=Date.now();
window.__gcse.scb=function(){var a=window.__gcse;M()||delete opts_.rawCss;var b=N(a.initializationCallback||a.callback);google.search.cse.element.init(opts_)&&("explicit"!==a.parsetags?"complete"===document.readyState||"interactive"===document.readyState?(google.search.cse.element.go(),null==b||b()):google.setOnLoadCallback(function(){google.search.cse.element.go();null==b||b()},!0):null==b||b())};
function N(a){if("function"===typeof a)return a;if("string"!==typeof a)return null;a=window[a];return"function"!==typeof a?null:a}function M(){var a;return!(null==(a=window.__gcse)?0:a.plainStyle)}
function O(a){var b=document.createElement("link");b.type="text/css";a:{if(a instanceof p)b.href=r(a).toString();else{if(-1===I.indexOf("stylesheet"))throw Error('TrustedResourceUrl href attribute required with rel="stylesheet"');if(a instanceof E)a=a instanceof E&&a.constructor===E?a.g:"type_error:SafeUrl";else{c:if(H){try{var c=new URL(a)}catch(d){c="https:";break c}c=c.protocol}else d:{c=document.createElement("a");try{c.href=a}catch(d){c=void 0;break d}c=c.protocol;c=":"===c||""===c?"https:":
c}a="javascript:"!==c?a:void 0}if(void 0===a)break a;b.href=a}b.rel="stylesheet"}return b};var P,A=opts_.usqp?{usqp:opts_.usqp}:{},Q=opts_.language.toLowerCase();P=opts_.cselibVersion?z({versionDir:opts_.cselibVersion,versionSlash:L,lang:Q}):z({versionDir:"",versionSlash:"",lang:Q});var R=window.__gcse.scb,S=document.createElement("script");S.src=r(P);var T,U,V,W=null==(V=(U=(S.ownerDocument&&S.ownerDocument.defaultView||window).document).querySelector)?void 0:V.call(U,"script[nonce]");(T=W?W.nonce||W.getAttribute("nonce")||"":"")&&S.setAttribute("nonce",T);S.type="text/javascript";
R&&(S.onload=R);document.getElementsByTagName("head")[0].appendChild(S);
if(M()){document.getElementsByTagName("head")[0].appendChild(O(opts_.cselibVersion?u(K,{versionDir:opts_.cselibVersion,versionSlash:L,experiment:opts_.uiOptions.cssThemeVersion&&4!==opts_.uiOptions.cssThemeVersion?"_v"+opts_.uiOptions.cssThemeVersion:"",lang:opts_.language}):u(K,{versionDir:"",versionSlash:"",experiment:"",lang:opts_.language})));var X,Y="v"+(opts_.uiOptions.cssThemeVersion||4);X=u(J,{versionDir:Y,versionSlash:Y?L:"",theme:opts_.theme.toLowerCase().replace("v2_","")});document.getElementsByTagName("head")[0].appendChild(O(X))};
})({
"cx": "458e08bf4d1094c8e",
"language": "{{.Language.Lang}}",
"theme": "V2_DEFAULT",
"uiOptions": {
"resultsUrl": "",
"enableAutoComplete": false,
"enableImageSearch": true,
"imageSearchLayout": "popup",
"resultSetSize": "filtered_cse",
"enableOrderBy": true,
"orderByOptions": [{
"label": '{{i18n "relevance"}}',
"key": ""
}, {
"label": '{{i18n "date"}}',
"key": "date"
}],
"overlayResults": false,
"webSearchResultSetSize": 0,
"webSearchExtendedRestricts": {
"lr": "",
"cr": "",
"gl": "",
"filter": 0,
"sort": "",
"as_oq": "",
"as_sitesearch": ""
},
"imageSearchExtendedRestricts": {
"lr": "",
"cr": "",
"gl": "",
"filter": 0,
"sort": "",
"as_oq": "",
"as_sitesearch": ""
},
"imageSearchResultSetSize": 0,
"queryParameterName": "q",
"defaultToImageSearch": false,
"enableHistory": false,
"numTopRefinements": -1,
"enableRichSnippets": false,
"hideElementBranding": false,
"cssThemeVersion": 4,
"isSafeSearchActive": false,
"autoCompleteSource": "partner-generic",
"numTopAds": 3
},
"protocol": "https",
"rawCss": ".gsc-control-cse{font-family:arial, sans-serif}.gsc-control-cse .gsc-table-result{font-family:arial, sans-serif}.gsc-refinementsGradient{background:linear-gradient(to left,rgba(255,255,255,1),rgba(255,255,255,0))}",
"cse_token": "AB-tC_68F0NcriD6fRgjL8EBq3S-:1711144305213",
"isHostedPage": false,
"exp": ["cc"],
"cselibVersion": "8435450f13508ca1",
"usqp": "CAI\u003d",
"fexp": [72519171, 72519168]
});
</script>
<script>
$(document).ready(function() {
$(document).ready(function () {
var url = window.location.href;
var searchParams = new URLSearchParams(new URL(url).search);
var qParamValue = searchParams.get("q");

if (qParamValue !== null) {
var decodedQParamValue = decodeURIComponent(qParamValue);
$("#SearchInput").val(decodedQParamValue);
}
});
});

</script>
<script>

(function (opts_) {/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict'; var f = this || self; function g(a) { return a }; var h; function k(a, b) { this.h = a === l && b || ""; this.g = m } function n(a) { return a instanceof k && a.constructor === k && a.g === m ? a.h : "type_error:Const" } var m = {}, l = {}; function p(a, b) { this.h = b === q ? a : "" } p.prototype.toString = function () { return this.h + "" }; function r(a) { return a instanceof p && a.constructor === p ? a.h : "type_error:TrustedResourceUrl" }
function u(a, b) { var c = n(a); if (!v.test(c)) throw Error("Invalid TrustedResourceUrl format: " + c); a = c.replace(w, function (d, e) { if (!Object.prototype.hasOwnProperty.call(b, e)) throw Error('Found marker, "' + e + '", in format string, "' + c + '", but no valid label mapping found in args: ' + JSON.stringify(b)); d = b[e]; return d instanceof k ? n(d) : encodeURIComponent(String(d)) }); return x(a) } var w = /%{(\w+)}/g, v = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i"), y = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
function z(a) { var b = A; a = u(B, a); a = y.exec(r(a).toString()); var c = a[3] || ""; return x(a[1] + C("?", a[2] || "", b) + C("#", c)) } var q = {}; function x(a) { if (void 0 === h) { var b = null; var c = f.trustedTypes; if (c && c.createPolicy) { try { b = c.createPolicy("goog#html", { createHTML: g, createScript: g, createScriptURL: g }) } catch (d) { f.console && f.console.error(d.message) } h = b } else h = b } a = (b = h) ? b.createScriptURL(a) : a; return new p(a, q) }
function C(a, b, c) { if (null == c) return b; if ("string" === typeof c) return c ? a + encodeURIComponent(c) : ""; for (var d in c) if (Object.prototype.hasOwnProperty.call(c, d)) { var e = c[d]; e = Array.isArray(e) ? e : [e]; for (var t = 0; t < e.length; t++) { var D = e[t]; null != D && (b || (b = a), b += (b.length > a.length ? "&" : "") + encodeURIComponent(d) + "=" + encodeURIComponent(String(D))) } } return b }; function E(a, b) { this.g = b === F ? a : "" } E.prototype.toString = function () { return this.g.toString() }; var F = {};/*
SPDX-License-Identifier: Apache-2.0
*/
var G; try { new URL("s://g"), G = !0 } catch (a) { G = !1 } var H = G; var I = "alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "); var J = new k(l, "/css/search.css"), K = new k(l, "/css/search.css"), B = new k(l, "https://www.google.com/cse/static/element/%{versionDir}%{versionSlash}cse_element__%{lang}.js"), L = new k(l, "/"); window.__gcse = window.__gcse || {}; window.__gcse.ct = Date.now();
window.__gcse.scb = function () { var a = window.__gcse; M() || delete opts_.rawCss; var b = N(a.initializationCallback || a.callback); google.search.cse.element.init(opts_) && ("explicit" !== a.parsetags ? "complete" === document.readyState || "interactive" === document.readyState ? (google.search.cse.element.go(), null == b || b()) : google.setOnLoadCallback(function () { google.search.cse.element.go(); null == b || b() }, !0) : null == b || b()) };
function N(a) { if ("function" === typeof a) return a; if ("string" !== typeof a) return null; a = window[a]; return "function" !== typeof a ? null : a } function M() { var a; return !(null == (a = window.__gcse) ? 0 : a.plainStyle) }
function O(a) {
var b = document.createElement("link"); b.type = "text/css"; a: {
if (a instanceof p) b.href = r(a).toString(); else {
if (-1 === I.indexOf("stylesheet")) throw Error('TrustedResourceUrl href attribute required with rel="stylesheet"'); if (a instanceof E) a = a instanceof E && a.constructor === E ? a.g : "type_error:SafeUrl"; else {
c: if (H) { try { var c = new URL(a) } catch (d) { c = "https:"; break c } c = c.protocol } else d: {
c = document.createElement("a"); try { c.href = a } catch (d) { c = void 0; break d } c = c.protocol; c = ":" === c || "" === c ? "https:" :
c
} a = "javascript:" !== c ? a : void 0
} if (void 0 === a) break a; b.href = a
} b.rel = "stylesheet"
} return b
}; var P, A = opts_.usqp ? { usqp: opts_.usqp } : {}, Q = opts_.language.toLowerCase(); P = opts_.cselibVersion ? z({ versionDir: opts_.cselibVersion, versionSlash: L, lang: Q }) : z({ versionDir: "", versionSlash: "", lang: Q }); var R = window.__gcse.scb, S = document.createElement("script"); S.src = r(P); var T, U, V, W = null == (V = (U = (S.ownerDocument && S.ownerDocument.defaultView || window).document).querySelector) ? void 0 : V.call(U, "script[nonce]"); (T = W ? W.nonce || W.getAttribute("nonce") || "" : "") && S.setAttribute("nonce", T); S.type = "text/javascript";
R && (S.onload = R); document.getElementsByTagName("head")[0].appendChild(S);
if (M()) { document.getElementsByTagName("head")[0].appendChild(O(opts_.cselibVersion ? u(K, { versionDir: opts_.cselibVersion, versionSlash: L, experiment: opts_.uiOptions.cssThemeVersion && 4 !== opts_.uiOptions.cssThemeVersion ? "_v" + opts_.uiOptions.cssThemeVersion : "", lang: opts_.language }) : u(K, { versionDir: "", versionSlash: "", experiment: "", lang: opts_.language }))); var X, Y = "v" + (opts_.uiOptions.cssThemeVersion || 4); X = u(J, { versionDir: Y, versionSlash: Y ? L : "", theme: opts_.theme.toLowerCase().replace("v2_", "") }); document.getElementsByTagName("head")[0].appendChild(O(X)) };
})({
"cx": "458e08bf4d1094c8e",
"language": "{{.Language.Lang}}",
"theme": "V2_DEFAULT",
"uiOptions": {
"resultsUrl": "",
"enableAutoComplete": false,
"enableImageSearch": true,
"imageSearchLayout": "popup",
"resultSetSize": "filtered_cse",
"enableOrderBy": true,
"orderByOptions": [{
"label": '{{i18n "relevance"}}',
"key": ""
}, {
"label": '{{i18n "date"}}',
"key": "date"
}],
"overlayResults": false,
"webSearchResultSetSize": 0,
"webSearchExtendedRestricts": {
"lr": "",
"cr": "",
"gl": "",
"filter": 0,
"sort": "",
"as_oq": "",
"as_sitesearch": ""
},
"imageSearchExtendedRestricts": {
"lr": "",
"cr": "",
"gl": "",
"filter": 0,
"sort": "",
"as_oq": "",
"as_sitesearch": ""
},
"imageSearchResultSetSize": 0,
"queryParameterName": "q",
"defaultToImageSearch": false,
"enableHistory": false,
"numTopRefinements": -1,
"enableRichSnippets": false,
"hideElementBranding": false,
"cssThemeVersion": 4,
"isSafeSearchActive": false,
"autoCompleteSource": "partner-generic",
"numTopAds": 3
},
"protocol": "https",
"rawCss": ".gsc-control-cse{font-family:arial, sans-serif}.gsc-control-cse .gsc-table-result{font-family:arial, sans-serif}.gsc-refinementsGradient{background:linear-gradient(to left,rgba(255,255,255,1),rgba(255,255,255,0))}",
"cse_token": "AB-tC_7ckguzs1MMYGpqVIKlOCiF:1711309454890",
"isHostedPage": false,
"exp": ["cc"],
"cselibVersion": "8435450f13508ca1",
"usqp": "CAI\u003d",
"fexp": [72519171, 72519168]
});

</script>
{{ end }}

{{ define "main" }}
<div class="bg-accent pt-4 pb-5">
<div class="container pt-2 pb-3 pt-lg-3 pb-lg-4">
<div style="display: grid; place-items: center;">
<div class="page-title-overlap bg-primary py-5">
<div class="container pt-3 pb-5">
<div class="block-center">
{{ partial "meta.breadcrumb.html" . }}
<h3 class="text-light pt-1">{{ .Title }}</h3>
</div>
</div>
</div>
</div>
<div class="container pb-5 mb-2 mb-md-4">
<div class="bg-light shadow-lg p-4 mt-n5 mb-4">
<div class="container py-4 mb-2 mb-md-4">
<div class="bg-body shadow-lg p-4 mt-n5 mb-4">
<div class="row gy-3 gx-4 justify-content-between">
<div class="d-flex align-items-center flex-shrink-0">
<form action='{{ absLangURL "/search/" }}' method="get" class="input-group">
<input autocomplete="off" id="SearchInput" class="search-input form-control rounded-start" name="q"
placeholder='{{i18n "search"}}' type="text" value="">
<button class="input-group-text btn btn-accent btn-sm">
<i class="bi bi-search"></i>
<input id="SearchInput" autocomplete="off" class="form-control" name="q" placeholder='{{i18n "search"}}' type="text"
value="" aria-describedby="searchbutton">

<button id="searchbutton" class="input-group-text btn btn-primary" aria-label="SearchButton"
type="submit"><i class="bi bi-search"></i></button>
</button>
</form>
</div>
Expand Down
6 changes: 3 additions & 3 deletions layouts/tags/term.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ define "main" }}
<div class="bg-secondary py-4">
<div class="container d-lg-flex justify-content-between py-2 py-lg-3">
<div class="bg-primary py-5">
<div class="container d-lg-flex justify-content-between py-2 py-lg-4">
<div class="order-lg-2 mb-3 mb-lg-0 pt-lg-2">
{{ partial "meta.breadcrumb" . }}
</div>
<div class="order-lg-1 pe-lg-4 text-center text-lg-start">
<div class="order-lg-1">
<h1 class="h3 mb-0">{{ .Title | humanize }}</h1>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions static/css/bootstrap5.3.mod.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
--bs-border-radius-pill: 50rem;
--bs-box-shadow: 0 0.5rem 1rem #00000026;
--bs-box-shadow-sm: 0 0.125rem 0.25rem #00000013;
--bs-box-shadow-lg: 0 1rem 3rem #0000002d;
--bs-box-shadow-lg: 0 .3rem 1.525rem -0.375rem #0000001a !important;
--bs-box-shadow-inset: inset 0 1px 2px #00000013;
--bs-focus-ring-width: 0.25rem;
--bs-focus-ring-opacity: 0.25;
Expand Down Expand Up @@ -180,7 +180,8 @@
--bs-form-valid-color: #75b798;
--bs-form-valid-border-color: #75b798;
--bs-form-invalid-color: #ea868f;
--bs-form-invalid-border-color: #ea868f
--bs-form-invalid-border-color: #ea868f;
--bs-box-shadow-lg: 0 .3rem 1.525rem -0.375rem rgba(var(--bs-primary-rgb)) !important;
}

*,
Expand Down Expand Up @@ -2457,7 +2458,7 @@ progress {
background-color: var(--bs-body-bg);
border-color: #86b7fe;
outline: 0;
box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25)
border: 1px solid var(--bs-primary);
}

.form-control::-webkit-date-and-time-value {
Expand Down
Loading

0 comments on commit c83856a

Please sign in to comment.