update code formating

This commit is contained in:
somrat sorkar 2023-07-06 09:10:59 +06:00
parent 665944ebe1
commit dd7c13e06b
19 changed files with 20 additions and 30 deletions

View File

@ -12,7 +12,6 @@ permissions:
pages: write pages: write
id-token: write id-token: write
# Environment variables available to all jobs and steps in this workflow # Environment variables available to all jobs and steps in this workflow
env: env:
HUGO_ENV: production HUGO_ENV: production

View File

@ -1,3 +1,7 @@
{ {
"recommendations": ["bradlc.vscode-tailwindcss", "budparr.language-hugo-vscode", "tamasfe.even-better-toml"] "recommendations": [
"bradlc.vscode-tailwindcss",
"budparr.language-hugo-vscode",
"tamasfe.even-better-toml"
]
} }

View File

@ -7,9 +7,9 @@
} }
.btn-primary { .btn-primary {
@apply border-primary bg-primary text-white dark:border-darkmode-primary dark:bg-white dark:text-dark; @apply border-primary bg-primary dark:border-darkmode-primary dark:text-dark text-white dark:bg-white;
} }
.btn-outline-primary { .btn-outline-primary {
@apply border-dark bg-transparent text-dark hover:bg-dark hover:text-white dark:border-white dark:text-white dark:hover:bg-white dark:hover:text-dark; @apply border-dark text-dark hover:bg-dark dark:hover:text-dark bg-transparent hover:text-white dark:border-white dark:text-white dark:hover:bg-white;
} }

View File

@ -1,5 +1,5 @@
.bg-gradient { .bg-gradient {
@apply bg-gradient-to-b from-[rgba(249,249,249,1)] from-[0.53%] to-white to-[83.28%] dark:from-darkmode-theme-light dark:to-darkmode-body; @apply dark:from-darkmode-theme-light dark:to-darkmode-body bg-gradient-to-b from-[rgba(249,249,249,1)] from-[0.53%] to-white to-[83.28%];
} }
.rounded-sm { .rounded-sm {

View File

@ -224,6 +224,7 @@ print s
### Gallery ### Gallery
{{< gallery dir="images/gallery" class="" height="400" width="400" webp="true" command="Fit" option="" zoomable="true" >}} {{< gallery dir="images/gallery" class="" height="400" width="400" webp="true" command="Fit" option="" zoomable="true" >}}
<hr> <hr>
### Slider ### Slider

View File

@ -7,7 +7,6 @@
<!-- head (don't cache it) --> <!-- head (don't cache it) -->
{{ partial "essentials/head.html" . }} {{ partial "essentials/head.html" . }}
<!-- style (always cache it) --> <!-- style (always cache it) -->
{{ partialCached "essentials/style.html" . }} {{ partialCached "essentials/style.html" . }}
</head> </head>

View File

@ -1,7 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section-sm"> <section class="section-sm">
<div class="container"> <div class="container">
<div class="row"> <div class="row">

View File

@ -1,7 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="row gx-5"> <div class="row gx-5">

View File

@ -1,7 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section-sm"> <section class="section-sm">
<div class="container"> <div class="container">
<div class="row justify-center"> <div class="row justify-center">

View File

@ -1,7 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="row"> <div class="row">

View File

@ -1,7 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ partial "page-header" . }} {{ partial "page-header" . }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="row gx-5"> <div class="row gx-5">

View File

@ -18,9 +18,9 @@
</p> </p>
{{ with .Params.button }} {{ with .Params.button }}
{{ if .enable }} {{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}" <a class="btn btn-primary" href="{{ .link | absURL }}">
>{{ .label }}</a {{ .label }}
> </a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>

View File

@ -1,5 +1,5 @@
<div <div
class="fixed top-0 left-0 z-50 flex w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200"> class="fixed left-0 top-0 z-50 flex w-[30px] items-center justify-center bg-gray-200 py-[2.5px] text-[12px] uppercase text-black sm:bg-red-200 md:bg-yellow-200 lg:bg-green-200 xl:bg-blue-200 2xl:bg-pink-200">
<span class="block sm:hidden">all</span> <span class="block sm:hidden">all</span>
<span class="hidden sm:block md:hidden">sm</span> <span class="hidden sm:block md:hidden">sm</span>
<span class="hidden md:block lg:hidden">md</span> <span class="hidden md:block lg:hidden">md</span>

View File

@ -12,30 +12,27 @@
<!-- favicon --> <!-- favicon -->
{{ partialCached "favicon" . }} {{ partialCached "favicon" . }}
<!-- manifest --> <!-- manifest -->
{{ partialCached "manifest" . }} {{ partialCached "manifest" . }}
<!-- site verifications --> <!-- site verifications -->
{{ partialCached "site-verifications.html" . }} {{ partialCached "site-verifications.html" . }}
<!-- opengraph and twitter card --> <!-- opengraph and twitter card -->
{{ partial "basic-seo.html" . }} {{ partial "basic-seo.html" . }}
<!-- custom script --> <!-- custom script -->
{{ partialCached "custom-script.html" . }} {{ partialCached "custom-script.html" . }}
<!-- google analytics --> <!-- google analytics -->
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
<!-- google tag manager --> <!-- google tag manager -->
{{ partialCached "gtm.html" . }} {{ partialCached "gtm.html" . }}
<!-- search index -->
{{ partial "search-index.html" . }}
<!-- matomo analytics --> <!-- matomo analytics -->
{{/* {{ partialCached "matomo-analytics.html" . }} */}} {{/* {{ partialCached "matomo-analytics.html" . }} */}}
@ -51,6 +48,3 @@
<!-- Crisp Chat --> <!-- Crisp Chat -->
{{/* {{ partialCached "crisp-chat.html" . }} */}} {{/* {{ partialCached "crisp-chat.html" . }} */}}
<!-- search index -->
{{ partial "search-index.html" . }}

View File

@ -10,7 +10,7 @@
<a <a
class="hover:text-primary dark:hover:text-darkmode-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `categories`) (eq $.Page.Title .Page.Title)) }} class="hover:text-primary dark:hover:text-darkmode-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `categories`) (eq $.Page.Title .Page.Title)) }}
active active
{{ end }} flex justify-between" {{ end }} flex justify-between"
href="{{ .Page.RelPermalink }}"> href="{{ .Page.RelPermalink }}">
{{ .Page.Title }} <span>( {{ len $items }} )</span> {{ .Page.Title }} <span>( {{ len $items }} )</span>
</a> </a>

View File

@ -24,7 +24,7 @@
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"postcss": "^8.4.24", "postcss": "^8.4.24",
"postcss-cli": "^10.1.0", "postcss-cli": "^10.1.0",
"prettier": "^3.0.0", "prettier": "^2.8.8",
"prettier-plugin-go-template": "0.0.13", "prettier-plugin-go-template": "0.0.13",
"prettier-plugin-tailwindcss": "^0.3.0", "prettier-plugin-tailwindcss": "^0.3.0",
"tailwind-bootstrap-grid": "^5.0.1", "tailwind-bootstrap-grid": "^5.0.1",

View File

@ -86,13 +86,11 @@ npm run dev
npm run build npm run build
``` ```
<!-- reporting issue -->
## 🐞 Reporting Issues ## 🐞 Reporting Issues
We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/hugoplate/issues). Its possible someone has already reported the same problem. We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/hugoplate/issues). Its possible someone has already reported the same problem.
If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/zeon-studio/hugoplate/issues). If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/zeon-studio/hugoplate/issues).
<!-- licence -->
## 📝 License ## 📝 License
Copyright (c) 2023 - Present, Designed & Developed by [Zeon Studio](https://zeon.studio/) Copyright (c) 2023 - Present, Designed & Developed by [Zeon Studio](https://zeon.studio/)