diff options
author | Divin Kong <divin@okayish.dev> | 2020-01-19 05:22:59 +0300 |
---|---|---|
committer | Divin Kong <divin@okayish.dev> | 2020-01-28 11:44:48 +0300 |
commit | 8e467e12a7a1a11879805c1697b28725819dbbb7 (patch) | |
tree | 2575c84f02214f6cae1c2348cb6c51e7e3523d1b | |
parent | 7a314e7468b8f8392b41b1952636ea1369f9fb4a (diff) |
Update theme's metadata
-rw-r--r-- | README.md | 88 | ||||
-rw-r--r-- | images/screenshot.png | bin | 140896 -> 276684 bytes | |||
-rw-r--r-- | images/tn.png | bin | 67873 -> 131467 bytes | |||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | theme.toml | 6 |
5 files changed, 91 insertions, 5 deletions
@@ -1 +1,87 @@ -# Ok-ish Blog Theme
\ No newline at end of file +# Ok-ish Blog Hugo Theme + +An ok-ish blog theme based on [Vanilla](https://vanillaframework.io/). The theme +is responsive and supports multi-language mode, multi-author posts, and many +more. It's suitable for all types of blog posts. + +![Screenshot of the theme](https://github.com/kongdivin/hugo-theme-okayish-blog/blob/master/images/screenshot.png) + +## Getting Started + +> I assume that you already have a Hugo site project. If not, you can create one +> by following [Quick Start](https://gohugo.io/getting-started/quick-start/). + +To use the theme, add it to your site's theme directory: + +```sh +git submodule add https://github.com/kongdivin/hugo-theme-okayish-blog.git themes/hugo-theme-okayish-blog +``` + +Then tell Hugo to use `hugo-theme-okayish-blog` by adding/updating the following +in `config.toml` + +```toml +theme = "hugo-theme-okayish-blog" +``` + +### Cloning an existing repository + +If you have an existing repository that was setup with the steps above, you have +to pull in the theme submodule after cloning your repository using the following +command: + +```sh +git submodule update --init +``` + +## Usage + +Head over to [Content Managment](https://gohugo.io/content-management/) to learn +more how to manage your content. + +### Custom Home Page + +The default homepage is showing the list of pages in the main sections. In case +you want a custom homepage, you can create `layouts/index.html`. For example, + +```html +<!-- File: layouts/index.html --> + +{{ define "main"}} +<h1>My New Home Page</h1> +{{ end }} +``` + +Since the theme is using Vanilla. You can use all its available components. See +its [docs](https://docs.vanillaframework.io/) for more details. Need +inspirations? There you go, https://vanillaframework.io/showcase. + +### Custom Style + +To provide a custom stylesheet, create `layouts/partials/head-extension.html` in +your site directory to override the one the theme's created. Then put the link +to your stylesheet in that file. For example, + +```html +<!-- File: layouts/partials/head-extension.html --> + +<link href={{ "css/custom.css" | absURL }} rel="stylesheet"><link> + +<link href="https://fonts.googleapis.com/css?family=Hanuman:400,700|Inconsolata|Roboto:400,400i,700,700i&display=swap&subset=khmer" rel="stylesheet"><link> +``` + +N.B. The theme includes fonts here. You might want to copy the `<link>` +over; otherwise, the fonts will be default to Vanilla's default fonts +([Ubuntu font](https://design.ubuntu.com/font/)). + +## Contributing + +If you spot any bugs, please use +[Issue Tracker](https://github.com/kongdivin/hugo-theme-okayish-blog/issues). +Or if you want to add a new feature directly, please create a new +[Pull Request](https://github.com/kongdivin/hugo-theme-okayish-blog/pulls). + +## License + +Licensed under +[The MIT License](https://github.com/kongdivin/hugo-theme-okayish-blog/blob/master/LICENSE). diff --git a/images/screenshot.png b/images/screenshot.png Binary files differindex baffa6c..c5e7ae8 100644 --- a/images/screenshot.png +++ b/images/screenshot.png diff --git a/images/tn.png b/images/tn.png Binary files differindex 41c9321..6536b83 100644 --- a/images/tn.png +++ b/images/tn.png diff --git a/package.json b/package.json index 08482f9..e21e74d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugo-theme-okayish-blog", "version": "1.0.0", - "description": "Ok-ish blog theme for Hugo", + "description": "An ok-ish blog theme for Hugo", "repository": { "type": "git", "url": "git+https://github.com/kongdivin/hugo-theme-okayish-blog.git" @@ -1,9 +1,9 @@ -name = "Okayish Blog Theme" +name = "Okayish Blog Hugo Theme" license = "MIT" licenselink = "https://github.com/kongdivin/hugo-theme-okayish-blog/blob/master/LICENSE" -description = "A Vanilla-based Hugo theme for simple blogs" +description = "An ok-ish blog theme based on Vanilla" homepage = "https://github.com/kongdivin/hugo-theme-okayish-blog#readme" -tags = ["blog"] +tags = ["blog", "responsive", "i18n"] features = ["responsive", "i18n"] min_version = "0.62.2" |