Minor fixes (#52)
* Add beach image jpg and webp * Fix images and avatar css * Increase border width, add links to feather icons in basic doc * Add robots txt file * Remove paginate * Update documentation
This commit is contained in:
@@ -7,18 +7,19 @@ Gokarna is an opinionated theme with a focus on minimalism and simplicity.
|
|||||||
1. [Yash Mehrotra](https://yashmehrotra.com)
|
1. [Yash Mehrotra](https://yashmehrotra.com)
|
||||||
2. [Avijit Gupta](https://twitter.com/526avijit)
|
2. [Avijit Gupta](https://twitter.com/526avijit)
|
||||||
|
|
||||||
#### Demo: [https://gokarna-hugo.netlify.app](https://gokarna-hugo.netlify.app)
|
### Demo: [https://gokarna-hugo.netlify.app](https://gokarna-hugo.netlify.app)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Minimalistic & fast
|
- Minimalistic & fast
|
||||||
- Customizable header
|
- Customizable header
|
||||||
- Responsive
|
- Responsive
|
||||||
- Support for light and dark themes
|
- Available in light and dark themes
|
||||||
- Native fonts
|
- Native fonts and support for [feather icons](https://feathericons.com/)
|
||||||
- Syntax highlighting
|
- Syntax highlighting
|
||||||
- SEO Ready
|
- SEO Ready
|
||||||
- Option to add custom javascript and css
|
- Option to add custom javascript and css
|
||||||
|
- RSS Feed
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ theme = "gokarna"
|
|||||||
languageCode = "en"
|
languageCode = "en"
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
# Choose one of emacs, trac or perldoc
|
# Choose one of emacs, trac or perldoc
|
||||||
pygmentsStyle = "monokai"
|
pygmentsStyle = "monokai"
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ date: 2020-05-06T21:29:01+08:00
|
|||||||
description: "Discover how to maximise Gokarna's potential"
|
description: "Discover how to maximise Gokarna's potential"
|
||||||
tags: ["installation", "configuration", "markdown"]
|
tags: ["installation", "configuration", "markdown"]
|
||||||
type: post
|
type: post
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Gokarna is an opinionated theme with a focus on minimalism and simplicity.
|
Gokarna is an opinionated theme with a focus on minimalism and simplicity.
|
||||||
@@ -23,6 +22,7 @@ This is the default blog post type which will be shown in your "Posts" section a
|
|||||||
title: "Hello, world!"
|
title: "Hello, world!"
|
||||||
date: 2021-01-01
|
date: 2021-01-01
|
||||||
description: "A blog post"
|
description: "A blog post"
|
||||||
|
image: "path/to/image.png"
|
||||||
type: "post"
|
type: "post"
|
||||||
tags: ["blog"]
|
tags: ["blog"]
|
||||||
---
|
---
|
||||||
@@ -38,6 +38,7 @@ We introduced this type to distinguish between blog posts and normal markdown pa
|
|||||||
```markdown
|
```markdown
|
||||||
---
|
---
|
||||||
title: "Hello, world!"
|
title: "Hello, world!"
|
||||||
|
image: "path/to/image.png"
|
||||||
type: "page"
|
type: "page"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -109,3 +110,40 @@ pygmentsStyle = "monokai"
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can read more about syntax highlighting on the [official hugo docs](https://gohugo.io/content-management/syntax-highlighting/).
|
You can read more about syntax highlighting on the [official hugo docs](https://gohugo.io/content-management/syntax-highlighting/).
|
||||||
|
|
||||||
|
## Site Metadata
|
||||||
|
|
||||||
|
Gokarna enables you to improve the SEO performance of your website with minimal effort.
|
||||||
|
|
||||||
|
### Image preview
|
||||||
|
|
||||||
|
We make sure your pages are social media ready.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
title: "Hello, world!"
|
||||||
|
image: "path/to/image.png"
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
> Note: If no image is specified in the markdown metadata, the site avatar is automatically used instead.
|
||||||
|
|
||||||
|
### SEO keywords
|
||||||
|
|
||||||
|
The keywords relevant for SEO are composed of the page `tags` as defined below:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
title: "Hello, world!"
|
||||||
|
tags: ["hello", "world"]
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
and the `metaKeywords` specified in the config.toml:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
[params]
|
||||||
|
metaKeywords = ["blog", "gokarna", "hugo"]
|
||||||
|
```
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ title = "My New Hugo Site"
|
|||||||
|
|
||||||
theme = "gokarna"
|
theme = "gokarna"
|
||||||
|
|
||||||
|
# Automatically generate robots.txt
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
[menu]
|
[menu]
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
# Unique identifer for a menu item
|
# Unique identifer for a menu item
|
||||||
@@ -84,7 +87,7 @@ theme = "gokarna"
|
|||||||
url = "https://github.com"
|
url = "https://github.com"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
# We use feather-icons
|
# We use feather-icons: https://feathericons.com/
|
||||||
pre = "<span data-feather='github'></span>"
|
pre = "<span data-feather='github'></span>"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -148,6 +151,9 @@ In addition to [Hugo global configuration](https://gohugo.io/overview/configurat
|
|||||||
# Ideal usecase for this is to import custom js/css or add your analytics snippet
|
# Ideal usecase for this is to import custom js/css or add your analytics snippet
|
||||||
customHeadHTML = ""
|
customHeadHTML = ""
|
||||||
|
|
||||||
|
# Keywords relevant for SEO
|
||||||
|
metaKeywords = ["blog", "gokarna", "hugo"]
|
||||||
|
|
||||||
# If you want to display posts on the homepage, the options are
|
# If you want to display posts on the homepage, the options are
|
||||||
# "popular" (order posts by weight), "recent" (order posts by date)
|
# "popular" (order posts by weight), "recent" (order posts by date)
|
||||||
# or "" (do not display, default option)
|
# or "" (do not display, default option)
|
||||||
@@ -225,6 +231,13 @@ You can add custom HTML in head section
|
|||||||
|
|
||||||
Read more in the advanced section [here](/posts/theme-documentation-advanced/#custom-head-html)
|
Read more in the advanced section [here](/posts/theme-documentation-advanced/#custom-head-html)
|
||||||
|
|
||||||
|
### robots.txt
|
||||||
|
|
||||||
|
Automatically generate robots.txt
|
||||||
|
|
||||||
|
```toml
|
||||||
|
enableRobotsTXT = true
|
||||||
|
```
|
||||||
|
|
||||||
### Favicons, Browserconfig, Manifest
|
### Favicons, Browserconfig, Manifest
|
||||||
|
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ a:hover .feather-sun {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.post-tags .post-tag {
|
.post-tags .post-tag {
|
||||||
border: 1px solid;
|
border: 1.5px solid;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
Reference in New Issue
Block a user