update theme variable
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="row justify-center">
|
||||
<div class="sm:col-10 md:col-8 lg:col-6">
|
||||
<span
|
||||
class="text-[8rem] block font-bold text-dark dark:text-darkmode-dark">
|
||||
class="text-[8rem] block font-bold text-text-dark dark:text-darkmode-text-dark">
|
||||
404
|
||||
</span>
|
||||
<h1 class="h2 mb-4">Page not found</h1>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<li class="m-3">
|
||||
<a
|
||||
href="{{ .Permalink }}"
|
||||
class="text-dark dark:text-darkmode-dark block text-xl">
|
||||
class="text-text-dark dark:text-darkmode-text-dark block text-xl">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<li class="m-3 inline-block">
|
||||
<a
|
||||
href="{{ .Page.Permalink }}"
|
||||
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
|
||||
class="bg-light text-text-dark dark:bg-darkmode-light dark:text-darkmode-text-dark block rounded px-4 py-2 text-xl">
|
||||
{{ .Page.Title }}
|
||||
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
|
||||
{{ .Count }}
|
||||
@@ -26,7 +26,7 @@
|
||||
<li class="m-3 inline-block">
|
||||
<a
|
||||
href="{{ .Page.Permalink }}"
|
||||
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
|
||||
class="bg-light text-text-dark dark:bg-darkmode-light dark:text-darkmode-text-dark block rounded px-4 py-2 text-xl">
|
||||
{{ .Page.Title }}
|
||||
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
|
||||
{{ .Count }}
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
{{ range $i,$p:= $tags }}
|
||||
<li class="inline-block">
|
||||
<a
|
||||
class="bg-theme-light hover:bg-primary dark:bg-darkmode-theme-light dark:hover:bg-darkmode-primary dark:hover:text-dark m-1 block rounded px-3 py-1 hover:text-white"
|
||||
class="bg-light hover:bg-primary dark:bg-darkmode-light dark:hover:bg-darkmode-primary dark:hover:text-text-dark m-1 block rounded px-3 py-1 hover:text-white"
|
||||
href="{{ `tags/` | relLangURL }}{{ . | urlize | lower }}/">
|
||||
{{ . | humanize }}
|
||||
</a>
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
{{ range .Params.testimonials }}
|
||||
<div class="swiper-slide">
|
||||
<div
|
||||
class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg px-7 py-10">
|
||||
<div class="text-dark dark:text-white">
|
||||
class="bg-light dark:bg-darkmode-light rounded-lg px-7 py-10">
|
||||
<div class="text-text-dark dark:text-white">
|
||||
<svg
|
||||
width="33"
|
||||
height="20"
|
||||
@@ -115,14 +115,14 @@
|
||||
{{ .content | markdownify }}
|
||||
</blockquote>
|
||||
<div class="mt-11 flex items-center">
|
||||
<div class="text-dark dark:text-white">
|
||||
<div class="text-text-dark dark:text-white">
|
||||
{{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }}
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<h3 class="h5 font-primary font-semibold">
|
||||
{{ .name }}
|
||||
</h3>
|
||||
<p class="text-dark dark:text-white">
|
||||
<p class="text-text-dark dark:text-white">
|
||||
{{ .designation | markdownify }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<section class="mb-28">
|
||||
<div class="container">
|
||||
<div
|
||||
class="bg-theme-light dark:bg-darkmode-theme-light rounded-xl px-4 py-16 xl:p-20">
|
||||
class="bg-light dark:bg-darkmode-light rounded-xl px-4 py-16 xl:p-20">
|
||||
<div class="row items-center justify-between">
|
||||
<div class="md:col-5 lg:col-4 mb-10 md:order-2 md:mb-0">
|
||||
{{ partial "image" (dict "Src" .image "Alt" "call to action" "Class" "w-full") }}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<div
|
||||
class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8 text-center">
|
||||
<div class="bg-light dark:bg-darkmode-light rounded p-8 text-center">
|
||||
{{ $image:= .Params.image }}
|
||||
{{ if $image }}
|
||||
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mx-auto mb-6 rounded" "size" "120x120") }}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<a
|
||||
class="text-dark hover:bg-theme-light dark:text-darkmode-dark dark:hover:bg-darkmode-theme-light rounded px-2 py-1.5"
|
||||
class="text-text-dark hover:bg-light dark:text-darkmode-text-dark dark:hover:bg-darkmode-light rounded px-2 py-1.5"
|
||||
href="{{ $paginator.Prev.URL }}"
|
||||
aria-label="Pagination Arrow">
|
||||
<span class="sr-only">Previous</span>
|
||||
@@ -32,7 +32,7 @@
|
||||
</svg>
|
||||
</a>
|
||||
{{ else }}
|
||||
<span class="text-light rounded px-2 py-1.5">
|
||||
<span class="text-text-light rounded px-2 py-1.5">
|
||||
<span class="sr-only">Previous</span>
|
||||
<svg
|
||||
viewBox="0 0 20 20"
|
||||
@@ -84,14 +84,14 @@
|
||||
{{ if eq . $paginator }}
|
||||
<span
|
||||
aria-current="page"
|
||||
class="bg-primary dark:bg-darkmode-primary dark:text-dark rounded px-4 py-2 text-white">
|
||||
class="bg-primary dark:bg-darkmode-primary dark:text-text-dark rounded px-4 py-2 text-white">
|
||||
{{ .PageNumber }}
|
||||
</span>
|
||||
{{ else }}
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
aria-current="page"
|
||||
class="text-dark hover:bg-theme-light dark:text-darkmode-dark dark:hover:bg-darkmode-theme-light rounded px-4 py-2">
|
||||
class="text-text-dark hover:bg-light dark:text-darkmode-text-dark dark:hover:bg-darkmode-light rounded px-4 py-2">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{ end }}
|
||||
@@ -102,7 +102,7 @@
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<a
|
||||
class="text-dark hover:bg-theme-light dark:text-darkmode-dark dark:hover:bg-darkmode-theme-light rounded px-2 py-1.5"
|
||||
class="text-text-dark hover:bg-light dark:text-darkmode-text-dark dark:hover:bg-darkmode-light rounded px-2 py-1.5"
|
||||
href="{{ $paginator.Next.URL }}"
|
||||
aria-label="Pagination Arrow">
|
||||
<span class="sr-only">Next</span>
|
||||
@@ -119,7 +119,7 @@
|
||||
</svg>
|
||||
</a>
|
||||
{{ else }}
|
||||
<span class="text-light rounded px-2 py-1.5">
|
||||
<span class="text-text-light rounded px-2 py-1.5">
|
||||
<span class="sr-only">Next</span>
|
||||
<svg
|
||||
viewBox="0 0 20 20"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<footer class="bg-theme-light dark:bg-darkmode-theme-light">
|
||||
<footer class="bg-light dark:bg-darkmode-light">
|
||||
<div class="container">
|
||||
<div class="row items-center py-10">
|
||||
<div class="lg:col-3 mb-8 text-center lg:mb-0 lg:text-left">
|
||||
@@ -48,7 +48,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="border-border dark:border-darkmode-border border-t py-7">
|
||||
<div class="text-light dark:text-darkmode-light container text-center">
|
||||
<div
|
||||
class="text-text-light dark:text-darkmode-text-light container text-center">
|
||||
<p>
|
||||
{{ site.Params.copyright | markdownify }}
|
||||
</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<input id="nav-toggle" type="checkbox" class="hidden" />
|
||||
<label
|
||||
for="nav-toggle"
|
||||
class="order-3 cursor-pointer flex items-center lg:hidden text-dark dark:text-white lg:order-1">
|
||||
class="order-3 cursor-pointer flex items-center lg:hidden text-text-dark dark:text-white lg:order-1">
|
||||
<svg id="show-button" class="h-6 fill-current block" viewBox="0 0 20 20">
|
||||
<title>Menu Open</title>
|
||||
<path d="M0 3h20v2H0V3z m0 6h20v2H0V9z m0 6h20v2H0V0z"></path>
|
||||
@@ -112,12 +112,12 @@
|
||||
<button
|
||||
aria-label="search"
|
||||
{{ if and (not site.Params.navigation_button.enable) (not site.Params.theme_switcher) }}
|
||||
class="border-border text-dark hover:text-primary
|
||||
class="border-border text-text-dark hover:text-primary
|
||||
dark:border-darkmode-border mr-5 inline-block border-r
|
||||
lg:border-r-0 pr-5 lg:pr-0 text-xl dark:text-white
|
||||
dark:hover:text-darkmode-primary"
|
||||
{{ else }}
|
||||
class="border-border text-dark hover:text-primary
|
||||
class="border-border text-text-dark hover:text-primary
|
||||
dark:border-darkmode-border mr-5 inline-block border-r pr-5
|
||||
text-xl dark:text-white dark:hover:text-darkmode-primary"
|
||||
{{ end }}
|
||||
@@ -127,7 +127,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "components/language-switcher" (dict "Context" . "Class" "mr-5 pl-2 py-1 dark:bg-darkmode-theme-light rounded") }}
|
||||
{{ partial "components/language-switcher" (dict "Context" . "Class" "mr-5 pl-2 py-1 dark:bg-darkmode-light rounded") }}
|
||||
{{ partial "components/theme-switcher" (dict "Class" "mr-5") }}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<section>
|
||||
<div class="container text-center">
|
||||
<div
|
||||
class="from-body to-theme-light dark:from-darkmode-body dark:to-darkmode-theme-light rounded-2xl bg-gradient-to-b px-8 py-14">
|
||||
class="from-body to-light dark:from-darkmode-body dark:to-darkmode-light rounded-2xl bg-gradient-to-b px-8 py-14">
|
||||
<h1>{{ T (printf "%s" (lower .Title)) | default .Title | title }}</h1>
|
||||
{{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }}
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{ if not (eq (len site.Taxonomies.categories) 0) }}
|
||||
<div class="mb-8">
|
||||
<h5 class="mb-6">{{ T "categories" }}</h5>
|
||||
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8">
|
||||
<div class="bg-light dark:bg-darkmode-light rounded p-8">
|
||||
<ul class="space-y-4">
|
||||
{{ range $name, $items := site.Taxonomies.categories }}
|
||||
<li>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
{{ if not (eq (len site.Taxonomies.tags) 0) }}
|
||||
<div class="mb-8">
|
||||
<h5 class="mb-6">{{ T "tags" }}</h5>
|
||||
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-6">
|
||||
<div class="bg-light dark:bg-darkmode-light rounded p-6">
|
||||
<ul>
|
||||
{{ range $name, $items := site.Taxonomies.tags }}
|
||||
<li class="inline-block">
|
||||
<a
|
||||
class="hover:bg-primary dark:bg-darkmode-body dark:hover:bg-darkmode-primary dark:hover:text-dark {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `tags`) (eq $.Page.Title .Page.Title)) }}
|
||||
class="hover:bg-primary dark:bg-darkmode-body dark:hover:bg-darkmode-primary dark:hover:text-text-dark {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `tags`) (eq $.Page.Title .Page.Title)) }}
|
||||
active
|
||||
{{ end }} m-1 block rounded bg-white px-3 py-1 hover:text-white"
|
||||
href="{{ .Page.RelPermalink }}">
|
||||
|
||||
Reference in New Issue
Block a user