chore: merge from master
This commit is contained in:
commit
7d9bec3737
@ -6,11 +6,13 @@ Clean and minimal personal blog and portfolio theme for Hugo.
|
|||||||
|
|
||||||
[View demo](https://ezhil-hugo.netlify.com/)
|
[View demo](https://ezhil-hugo.netlify.com/)
|
||||||
|
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Clean and minimal
|
* Clean and minimal
|
||||||
|
* Dark mode (Auto detect from OS)
|
||||||
* Responsive
|
* Responsive
|
||||||
* Supports tags
|
* Supports tags
|
||||||
* Social media links
|
* Social media links
|
||||||
@ -65,6 +67,9 @@ paginate = 10
|
|||||||
featherIconsCDN = true
|
featherIconsCDN = true
|
||||||
# Specify favicon (icons/i.png maps to static/icons/i.png). No favicon if not defined.
|
# Specify favicon (icons/i.png maps to static/icons/i.png). No favicon if not defined.
|
||||||
favicon = "icons/myicon.png"
|
favicon = "icons/myicon.png"
|
||||||
|
# Switch to dark mode or auto detect mode from OS (Optional).
|
||||||
|
# "dark" will set mode to dark and "auto" will switch to dark mode if OS is in dark mode.
|
||||||
|
mode = "dark" # "dark" or "auto"
|
||||||
|
|
||||||
# Main menu which appears below site header.
|
# Main menu which appears below site header.
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
@ -11,12 +11,13 @@ pygmentscodefences = true
|
|||||||
pygmentscodefencesguesssyntax = true
|
pygmentscodefencesguesssyntax = true
|
||||||
|
|
||||||
googleAnalytics = "UA-123-45"
|
googleAnalytics = "UA-123-45"
|
||||||
disqusShortname = "localhost"
|
disqusShortname = "ezhil-demo"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
subtitle = "Clean and minimal personal [blog theme for Hugo](https://github.com/vividvilla/ezhil)"
|
subtitle = "Clean and minimal personal [blog theme for Hugo](https://github.com/vividvilla/ezhil)"
|
||||||
disableDisqusTypes = ["page"]
|
disableDisqusTypes = ["page"]
|
||||||
featherIconsCDN = true
|
featherIconsCDN = true
|
||||||
|
mode = "auto" # "dark" or "auto"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Home"
|
name = "Home"
|
||||||
@ -43,11 +44,6 @@ name = "Github"
|
|||||||
icon = "github"
|
icon = "github"
|
||||||
url = "https://github.com/vividvilla/ezhil"
|
url = "https://github.com/vividvilla/ezhil"
|
||||||
|
|
||||||
[[params.social]]
|
|
||||||
name = "Twitter"
|
|
||||||
icon = "twitter"
|
|
||||||
url = "https://twitter.com/gohugoio"
|
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "RSS"
|
name = "RSS"
|
||||||
icon = "rss"
|
icon = "rss"
|
||||||
|
14
exampleSite/content/posts/post-7.md
Normal file
14
exampleSite/content/posts/post-7.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: "How to test dark mode?"
|
||||||
|
description: "Here is how you can setup dark mode for Ezhil and test on various OS like iOS, Android, macOS and Windows 10."
|
||||||
|
date: 2018-03-18T12:13:38+05:30
|
||||||
|
---
|
||||||
|
|
||||||
|
You can set dark mode as default by setting `params.mode` to `dark` in `config.toml` or set it to `auto` which will detect based on your OS and switch to dark mode. For more details [refer documentation](https://github.com/vividvilla/ezhil#configuration)
|
||||||
|
|
||||||
|
Here is how you can switch based on your OS
|
||||||
|
|
||||||
|
* [iOS](https://www.howtogeek.com/440078/how-to-enable-dark-mode-on-your-iphone-and-ipad/)
|
||||||
|
* [Android](https://9to5google.com/2018/12/17/android-dark-mode-theme-pie/)
|
||||||
|
* [macOS](https://support.apple.com/en-in/HT208976)
|
||||||
|
* [Windows 10](https://www.cnet.com/how-to/turn-on-the-dark-mode-in-windows-10/)
|
BIN
images/screenshot-dark.png
Normal file
BIN
images/screenshot-dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 KiB |
BIN
images/screenshot-light.png
Normal file
BIN
images/screenshot-light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
@ -17,7 +17,7 @@
|
|||||||
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
|
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</span>
|
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
|
||||||
</li>
|
</li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<div class="meta">Posted at — {{ dateFormat "Jan 2, 2006" .Date }}</div>
|
<div class="meta">Posted at — {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
|
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</div>
|
<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
|
||||||
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> —
|
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> —
|
||||||
<span class="description">
|
<span class="description">
|
||||||
{{ if isset .Params "description" }}
|
{{ if isset .Params "description" }}
|
||||||
|
@ -20,10 +20,13 @@
|
|||||||
|
|
||||||
{{- template "_internal/opengraph.html" . -}}
|
{{- template "_internal/opengraph.html" . -}}
|
||||||
{{- template "_internal/twitter_cards.html" . -}}
|
{{- template "_internal/twitter_cards.html" . -}}
|
||||||
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:500,100,300" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:200,300" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
|
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/normalize.css" />
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
|
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
|
||||||
|
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") }}
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/dark.css" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
|
{{- if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
||||||
|
44
static/css/dark.css
Normal file
44
static/css/dark.css
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
body {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-selection {
|
||||||
|
background: #666;
|
||||||
|
text-shadow: none
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: #666;
|
||||||
|
text-shadow: none
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,h2,h3,h4,h5,h6 {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,a:hover {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header nav,
|
||||||
|
.footer {
|
||||||
|
border-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
@ -9,20 +9,21 @@ body {
|
|||||||
a, a:hover {
|
a, a:hover {
|
||||||
color: #a00;
|
color: #a00;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,button,input,select,textarea {
|
html,button,input,select,textarea {
|
||||||
color: #222
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-moz-selection {
|
::-moz-selection {
|
||||||
background: #b3d4fc;
|
background: #b3d4fc;
|
||||||
text-shadow: none
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background: #b3d4fc;
|
background: #b3d4fc;
|
||||||
text-shadow: none
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
@ -31,7 +32,7 @@ hr {
|
|||||||
border: 0;
|
border: 0;
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid #ccc;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
padding: 0
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@ -52,11 +53,11 @@ figure {
|
|||||||
fieldset {
|
fieldset {
|
||||||
border: 0;
|
border: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
resize: vertical
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
@ -66,12 +67,12 @@ blockquote {
|
|||||||
font-family: Georgia,bitstream charter,serif;
|
font-family: Georgia,bitstream charter,serif;
|
||||||
border-left: 3px solid;
|
border-left: 3px solid;
|
||||||
border-color: #a00;
|
border-color: #a00;
|
||||||
padding-left: 20px
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote cite {
|
blockquote cite {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
opacity: .8
|
opacity: .8;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote em {
|
blockquote em {
|
||||||
@ -91,33 +92,33 @@ h1,h2,h3,h4,h5,h6 {
|
|||||||
font-family: raleway,sans-serif;
|
font-family: raleway,sans-serif;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 100
|
font-weight: 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.75rem
|
font-size: 2.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 2rem
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.6rem
|
font-size: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1.2rem
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 1rem
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h6 {
|
h6 {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: .9rem
|
font-size: .9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.align-center {
|
.align-center {
|
||||||
@ -133,7 +134,7 @@ h6 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 800px
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@ -148,7 +149,7 @@ ul.flat {
|
|||||||
ul.flat li {
|
ul.flat li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-left: 0
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prevent-collapse {
|
.prevent-collapse {
|
||||||
@ -156,15 +157,15 @@ ul.flat li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
margin: 0
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.smaller {
|
.smaller {
|
||||||
font-size: 70%
|
font-size: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: disc inside
|
list-style: disc inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post ul li {
|
.post ul li {
|
||||||
@ -179,11 +180,12 @@ ul {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #FAFAFA !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
background: 0 0
|
background: 0 0;
|
||||||
|
background-color: #FAFAFA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
@ -244,6 +246,8 @@ ul {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
|
min-width: 50px;
|
||||||
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .site-description nav ul svg {
|
.header .site-description nav ul svg {
|
||||||
@ -288,6 +292,15 @@ ul {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post .draft-label {
|
||||||
|
color: #a00;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 2px 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-left: 6px;
|
||||||
|
background-color: #f9f2f4;
|
||||||
|
}
|
||||||
|
|
||||||
.list .posts .post .meta {
|
.list .posts .post .meta {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
@ -348,28 +361,22 @@ ul {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2rem
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.6rem
|
font-size: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.2rem
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 1rem
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
body {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -6,7 +6,7 @@ license = "MIT"
|
|||||||
licenselink = "https://github.com/vividvilla/ezhil/blob/master/LICENSE.md"
|
licenselink = "https://github.com/vividvilla/ezhil/blob/master/LICENSE.md"
|
||||||
description = "Clean and minimal personal blog and portfolio theme."
|
description = "Clean and minimal personal blog and portfolio theme."
|
||||||
homepage = "https://github.com/vividvilla/ezhil"
|
homepage = "https://github.com/vividvilla/ezhil"
|
||||||
tags = ["minimal", "clean", "blog", "responsive", "personal", "simple", "minimalist", "portfolio"]
|
tags = ["minimal", "clean", "blog", "responsive", "personal", "simple", "minimalist", "portfolio", "dark"]
|
||||||
features = ["blog", "Clean and minimal", "Responsive", "Social media links", "Syntax highlighting"]
|
features = ["blog", "Clean and minimal", "Responsive", "Social media links", "Syntax highlighting"]
|
||||||
min_version = "0.37.0"
|
min_version = "0.37.0"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user