diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store
diff --git a/README.md b/README.md
index 7128cac..942ad07 100644
--- a/README.md
+++ b/README.md
@@ -19,11 +19,12 @@ Gokarna is an opinionated theme with a focus on minimalism and simplicity.
- Customizable header
- Responsive
- Available in light and dark themes
-- Native fonts and support for [feather icons](https://feathericons.com/)
+- Native fonts and support for [feather icons](https://feathericons.com/) and [svg icons](http://localhost:1313/posts/theme-documentation-advanced/#icons-on-homepage)
- Syntax highlighting
- SEO Ready
- Option to add custom javascript and css
- RSS Feed
+- Math typesetting using [Katex](https://gokarna-hugo.netlify.app/posts/theme-documentation-advanced/#katex)
## Screenshots
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 57d585a..63daa60 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -21,7 +21,14 @@ pygmentsStyle = "monokai"
"""
- showPostsOnHomePage = "popular"
+ socialIcons = [
+ {name = "twitter", url = "https://example.com"},
+ {name = "linkedin", url = "https://example.com"},
+ {name = "stackoverflow", url = "https://example.com"},
+ {name = "dribbble", url = "https://example.com"},
+ {name = "instagram", url = "https://example.com"},
+ {name = "twitch", url = "https://example.com"},
+ ]
metaKeywords = ["blog", "gokarna", "hugo"]
[menu]
@@ -45,16 +52,16 @@ pygmentsStyle = "monokai"
url = "/tags/"
weight = 4
- [[menu.main]]
- identifier = "coffee"
- pre = ""
- url = "https://www.buymeacoffee.com/avijitgupta"
- weight = 5
-
[[menu.main]]
identifier = "github"
pre = ""
url = "https://github.com/526avijitgupta/gokarna"
+ weight = 5
+
+ [[menu.main]]
+ identifier = "buymeacoffee"
+ pre = ""
+ url = "https://www.buymeacoffee.com/avijitgupta"
weight = 6
[[menu.main]]
diff --git a/exampleSite/content/posts/theme-documentation-advanced.md b/exampleSite/content/posts/theme-documentation-advanced.md
index 26c00b3..aba24b8 100644
--- a/exampleSite/content/posts/theme-documentation-advanced.md
+++ b/exampleSite/content/posts/theme-documentation-advanced.md
@@ -11,7 +11,7 @@ Gokarna is an opinionated theme with a focus on minimalism and simplicity.
## Content Types
-This theme supports two types of content types: `post` and `page`. To specify them, you need to add them in your markdown metadata.
+This theme supports two types of content types: `post` and `page`. To specify them, you need to add them in your markdown metadata.
### Post
@@ -54,20 +54,54 @@ The `weight` attribute can be added in the markdown metadata for `post` types. W
2. Show recent posts on home page if the value is set to `recent`
3. Do not show anything if the variable is unset or an empty string.
-## Icons in header
+## Icons
+Gokarna supports popular social media icons (Github, Linkedin, Twitter, StackOverflow, Dribbble, etc.) out of the box. See full list of supported icons [here](https://github.com/526avijitgupta/gokarna/tree/main/static/icons).
-We have used [feather](https://feathericons.com) as our icons library. Here is an example of how to add custom icons in the header:
+### Icons on homepage
+To display icons on the homepage, simply update the `socialIcons` config param with a list of name and url of each icon. The specified `name` should exactly match one of the names from [here](https://github.com/526avijitgupta/gokarna/tree/main/static/icons).
+If you want to add more icons, you can download the svg directly from [here](https://simpleicons.org/) and place them in your local icons directory (`/static/icons/`)
+
+```toml
+ [params]
+ socialIcons = [
+ {name = "twitter", url = "https://example.com"},
+ {name = "linkedin", url = "https://example.com"},
+ {name = "stackoverflow", url = "https://example.com"},
+ ]
```
+
+Preview:
+
+
+
+
+### Icons in header
+
+[Feather](https://feathericons.com) icons has a comprehensive list of icons which are more general purpose and not limited to social media.
+Therefore, we use feather as an additional source of icons. Here is an example of how to add custom icons in the header using feather:
+
+```toml
[[menu.main]]
identifier = "github"
url = "https://github.com"
weight = 3
-
- # We use feather-icons
+ # Using feather-icons
pre = ""
```
+The same icon in this case could also be added without feather:
+
+```toml
+ [[menu.main]]
+ identifier = "github"
+ url = "https://www.buymeacoffee.com/"
+ weight = 3
+ # Without using feather-icons
+ pre = ""
+```
+
+
## Custom Head HTML
The goal of this feature is to give the user more control over the theme. It's functioning is very straightforward - "You can inject any HTML you want in the `
` tag" . This may seem simple at first, but it opens up a lot of possibilities.
@@ -92,7 +126,7 @@ We preferred privacy friendly tools like [Umami](https://umami.is/) & [Fathom An
Giving users the freedom to add anything in the HTML via config.toml seemed like an elegant way to solve the problem.
-```markdown
+```toml
[params]
customHeadHTML = """
@@ -103,7 +137,7 @@ Giving users the freedom to add anything in the HTML via config.toml seemed like
Katex is a math typesetting library for the web which lets you write beautiful equations. To use it, add the javascript as mentioned in [their documentation](https://katex.org/docs/browser.html) in our `params.customHeadHTML`.
-```markdown
+```toml
[params]
customHeadHTML = """
diff --git a/exampleSite/static/images/theme-documentation-advanced/icons-homepage-preview.png b/exampleSite/static/images/theme-documentation-advanced/icons-homepage-preview.png
new file mode 100644
index 0000000..c4b95df
Binary files /dev/null and b/exampleSite/static/images/theme-documentation-advanced/icons-homepage-preview.png differ
diff --git a/images/screenshot-dark-home.png b/images/screenshot-dark-home.png
index 73e3903..cd0c783 100644
Binary files a/images/screenshot-dark-home.png and b/images/screenshot-dark-home.png differ
diff --git a/images/screenshot-dark-list.png b/images/screenshot-dark-list.png
index 1518ae1..4eb1967 100644
Binary files a/images/screenshot-dark-list.png and b/images/screenshot-dark-list.png differ
diff --git a/images/screenshot-dark-post.png b/images/screenshot-dark-post.png
index b066bcb..fa8450b 100644
Binary files a/images/screenshot-dark-post.png and b/images/screenshot-dark-post.png differ
diff --git a/images/screenshot-light-home.png b/images/screenshot-light-home.png
index 26b5ba9..42990a0 100644
Binary files a/images/screenshot-light-home.png and b/images/screenshot-light-home.png differ
diff --git a/images/screenshot-light-list.png b/images/screenshot-light-list.png
index b2fa894..072a299 100644
Binary files a/images/screenshot-light-list.png and b/images/screenshot-light-list.png differ
diff --git a/images/screenshot-light-post.png b/images/screenshot-light-post.png
index 70bc602..06aca8c 100644
Binary files a/images/screenshot-light-post.png and b/images/screenshot-light-post.png differ
diff --git a/images/screenshot.png b/images/screenshot.png
index 6707d66..b48e1e0 100644
Binary files a/images/screenshot.png and b/images/screenshot.png differ
diff --git a/images/tn.png b/images/tn.png
index 6707d66..b48e1e0 100644
Binary files a/images/tn.png and b/images/tn.png differ
diff --git a/layouts/index.html b/layouts/index.html
index 10d9632..5ce5656 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,6 +11,20 @@
+{{ if isset .Site.Params "socialicons" }}
+
+