-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
196 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Zen Mode | ||
|
||
What is Zen mode? | ||
|
||
Zen mode is a simple layout that allows you to concentrate on reading and writing. | ||
It is a minimalist design that removes all distractions from the page. | ||
This mode is more suitable for people who prefer a simple and clean interface | ||
rather than the default masonry layout. | ||
|
||
Here is a demo of the Zen mode: https://g1en-site-zen-mode-preview.netlify.app/. | ||
|
||
And below is a screenshot of the Zen mode: | ||
|
||
<div className="nx-mt-6" style={{ width: '75%' }}> | ||
![Zen Mode](/images/zen-mode.png) | ||
</div> | ||
|
||
## Enable Zen Mode | ||
|
||
To enable Zen mode, just add `zenMode = true` to the configuration file. | ||
|
||
```toml | ||
[params] | ||
zenMode = true | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<a class="flex justify-between items-center gap-4" href="{{ .RelPermalink }}"> | ||
<div> | ||
<h2 class="text-lg font-medium underline">{{ .Title }}</h2> | ||
<span class="date text-base-content/60 text-sm"> | ||
{{ if site.Params.Experimental.jsDate }} | ||
<span data-format="luxon">{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</span> | ||
{{ else }} | ||
{{ .Date | time.Format "Monday, Jan 2, 2006" }} | ||
{{ end }} | ||
</span> | ||
</div> | ||
|
||
<figure> | ||
{{ if .Params.cover }} | ||
{{ with .Resources.Get .Params.cover }} | ||
{{ $webp := .Resize (printf "%dx%d webp" .Width .Height) }} | ||
<picture> | ||
<source srcset="{{ $webp.RelPermalink }}" type="image/webp" /> | ||
<img class="w-24 max-w-none rounded-lg" src="{{ .RelPermalink }}" alt="{{ .Title }}" /> | ||
</picture> | ||
{{ else }} | ||
<img src="{{ .Params.cover }}" alt="{{ .Title }}" /> | ||
{{ end }} | ||
{{ else }} | ||
{{ with resources.Get (printf "images/default%d.jpg" (index (seq 4 | shuffle) 0)) }} | ||
{{ $webp := .Resize (printf "%dx%d webp" .Width .Height) }} | ||
<picture> | ||
<source srcset="{{ $webp.RelPermalink }}" type="image/webp" /> | ||
<img src="{{ .RelPermalink }}" alt="{{ .Title }}" /> | ||
</picture> | ||
{{ end }} | ||
{{ end }} | ||
</figure> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="max-w-[65ch] mt-8 mx-auto px-4"> | ||
{{ with site.GetPage "/about" }} | ||
{{ $aboutPages := .Resources.ByType "page" }} | ||
{{ range (sort $aboutPages "Date" "asc") }} | ||
<div> | ||
<div class="mb-4 text-lg font-medium">{{ .Title }}</div> | ||
|
||
<div class="prose dark:prose-invert"> | ||
{{ .Content | emojify }} | ||
</div> | ||
</div> | ||
<div class="divider divider-vertical"></div> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ if (fileExists "data/socials.toml") }} | ||
{{ if and site.Config.Services.Disqus.Shortname .IsHome }} | ||
<div> | ||
{{ else }} | ||
<div class="pb-4"> | ||
{{ end }} | ||
<div class="mb-4 text-lg font-medium">{{ T "socialLinks" }}</div> | ||
|
||
{{ partialCached "socials.html" . }} | ||
</div> | ||
{{ end }} | ||
|
||
{{ if and site.Config.Services.Disqus.Shortname .IsHome }} | ||
<div class="divider divider-vertical"></div> | ||
<div class="pb-4"> | ||
{{ partial "disqus.html" (dict "Context" . "Identifier" "/") }} | ||
</div> | ||
{{ end }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.