mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-19 00:58:28 -04:00
✨ Add multiple colour schemes
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<article>
|
||||
<h3 class="mt-6 text-xl font-semibold">
|
||||
{{ if isset .Params "externalUrl" }}
|
||||
<a class="hover:underline" href="{{ .Params.externalUrl }}" target="_blank" rel="external"
|
||||
<a
|
||||
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
|
||||
href="{{ .Params.externalUrl }}"
|
||||
target="_blank"
|
||||
rel="external"
|
||||
>{{ .Title }}</a
|
||||
>
|
||||
<span
|
||||
@@ -12,7 +16,7 @@
|
||||
>
|
||||
{{ else }}
|
||||
<a
|
||||
class="hover:underline hover:underline-primary-500 hover:underline-offset-small"
|
||||
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
|
||||
href="{{ .Permalink }}"
|
||||
>{{ .Title }}</a
|
||||
>
|
||||
@@ -24,7 +28,7 @@
|
||||
{{ partial "extend-article-link.html" . }}
|
||||
{{ end }}
|
||||
</h3>
|
||||
<div class="text-sm text-gray-400 dark:text-gray-500">
|
||||
<div class="text-sm text-neutral-400 dark:text-neutral-500">
|
||||
{{ partial "article-meta.html" . }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{ if .Params.showPagination | default (.Site.Params.article.showPagination | default true) }}
|
||||
{{ if or .NextInSection .PrevInSection }}
|
||||
<div class="pt-8 article-pagination">
|
||||
<hr class="border-gray-300 border-dotted dark:border-gray-600" />
|
||||
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
||||
<div class="flex justify-between pt-3">
|
||||
<span>
|
||||
{{ if .NextInSection }}
|
||||
@@ -11,7 +11,7 @@
|
||||
<span class="article-pagination-title">{{ .NextInSection.Title }}</span>
|
||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||
<time
|
||||
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
|
||||
class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500"
|
||||
datetime="{{ .Date }}"
|
||||
>
|
||||
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
|
||||
@@ -28,7 +28,7 @@
|
||||
<span class="article-pagination-title">{{ .PrevInSection.Title }}</span>
|
||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||
<time
|
||||
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
|
||||
class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500"
|
||||
datetime="{{ .Date }}"
|
||||
>
|
||||
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{ with .Site.Author.links }}
|
||||
<div class="flex flex-wrap text-gray-400 dark:text-gray-500">
|
||||
<div class="flex flex-wrap text-neutral-400 dark:text-neutral-500">
|
||||
{{ range $links := . }}
|
||||
{{ range $name, $url := $links }}
|
||||
<a
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ with .Site.Author.name }}
|
||||
<div class="text-[0.6rem] leading-3 text-gray-400 dark:text-gray-500 uppercase">
|
||||
<div class="text-[0.6rem] leading-3 text-neutral-400 dark:text-neutral-500 uppercase">
|
||||
{{ i18n "author.byline_title" | emojify }}
|
||||
</div>
|
||||
<div class="font-semibold leading-6 text-gray-800 dark:text-gray-300">
|
||||
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ol class="text-sm text-gray-400 dark:text-gray-500">
|
||||
<ol class="text-sm text-neutral-400 dark:text-neutral-500">
|
||||
{{ template "crumb" (dict "p1" . "p2" .) }}
|
||||
</ol>
|
||||
{{ define "crumb" }}
|
||||
@@ -9,7 +9,7 @@
|
||||
{{ end }}
|
||||
<li class="inline {{ if or (eq .p1 .p2) (.p1.IsHome) }}hidden{{ end }}">
|
||||
<a
|
||||
class="hover:underline hover:underline-gray-300 dark:underline-gray-600"
|
||||
class="hover:underline hover:underline-neutral-300 dark:underline-neutral-600"
|
||||
href="{{ .p1.Permalink }}"
|
||||
>{{ .p1.Title }}</a
|
||||
><span class="px-1 text-primary-500">/</span>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<footer class="py-10 text-sm">
|
||||
{{/* Copyright */}}
|
||||
<p class="text-gray-400 dark:text-gray-500">
|
||||
<p class="text-neutral-400 dark:text-neutral-500">
|
||||
{{- with .Site.Copyright }}
|
||||
{{ . | emojify | markdownify }}
|
||||
{{- else }}
|
||||
@@ -11,7 +11,7 @@
|
||||
</p>
|
||||
{{/* Theme attribution */}}
|
||||
{{ if .Site.Params.attribution | default true }}
|
||||
<p class="text-xs text-gray-300 dark:text-gray-600">
|
||||
<p class="text-xs text-neutral-300 dark:text-neutral-600">
|
||||
{{ i18n "footer.powered_by" }}
|
||||
<a
|
||||
class="hover:underline hover:underline-primary-300 hover:text-primary-400"
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
{{/* Styles */}}
|
||||
{{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }}
|
||||
{{ if not $cssScheme }}
|
||||
{{ $cssScheme = resources.Get "css/schemes/congo.css" }}
|
||||
{{ end }}
|
||||
{{ $stylesheet := $cssScheme | resources.Minify }}
|
||||
<link type="text/css" rel="stylesheet" href="{{ $stylesheet.Permalink }}" />
|
||||
<link type="text/css" rel="stylesheet" href="{{ "css/main.css" | absURL }}" />
|
||||
{{ if (fileExists "static/css/custom.css") -}}
|
||||
<link type="text/css" rel="stylesheet" href="{{ "css/custom.css" | absURL }}" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<header class="flex justify-between py-6 font-semibold sm:py-10">
|
||||
<header class="flex justify-between py-6 font-semibold sm:py-10 text-neutral-800 dark:text-neutral">
|
||||
<div>
|
||||
<a
|
||||
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<li>
|
||||
<a
|
||||
href="{{ $paginator.Prev.URL }}"
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-white rounded"
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-neutral rounded"
|
||||
rel="prev"
|
||||
>
|
||||
←
|
||||
@@ -16,8 +16,8 @@
|
||||
<li>
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-white rounded {{ if eq . $paginator }}
|
||||
bg-primary-200 dark:bg-primary-400 dark:text-gray-800
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-neutral rounded {{ if eq . $paginator }}
|
||||
bg-primary-200 dark:bg-primary-400 dark:text-neutral-800
|
||||
{{ end }}"
|
||||
>
|
||||
{{ .PageNumber }}
|
||||
@@ -28,7 +28,7 @@
|
||||
<li>
|
||||
<a
|
||||
href="{{ $paginator.Next.URL }}"
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-white rounded"
|
||||
class="mx-1 block min-w-[1.8rem] text-center hover:bg-primary-600 hover:text-neutral rounded"
|
||||
rel="next"
|
||||
>
|
||||
→
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
{{ end }}
|
||||
<section class="prose dark:prose-light">
|
||||
<h1 class="mb-3 text-4xl font-extrabold">{{ .Title }}</h1>
|
||||
<h1 class="mb-3 text-4xl font-extrabold text-neutral-800">{{ .Title }}</h1>
|
||||
<section>{{ .Content }}</section>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ range . }}
|
||||
{{ with index $links . }}
|
||||
<a
|
||||
class="bg-gray-300 text-gray-700 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-primary-400 dark:hover:text-gray-800 m-1 hover:bg-primary-500 hover:text-white rounded min-w-[2.4rem] inline-block text-center p-1"
|
||||
class="bg-neutral-300 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800 m-1 hover:bg-primary-500 hover:text-neutral rounded min-w-[2.4rem] inline-block text-center p-1"
|
||||
href="{{ printf .url $.Permalink $.Title }}"
|
||||
title="{{ i18n .title }}"
|
||||
>{{ partial "icon.html" .icon }}</a
|
||||
|
||||
Reference in New Issue
Block a user