Update README and config #26

This commit is contained in:
koirand 2019-03-29 02:53:05 +09:00
parent b61001175f
commit 07f76aeee6
4 changed files with 30 additions and 22 deletions

View file

@ -1,24 +1,33 @@
# pulp
![logo](https://user-images.githubusercontent.com/17229643/45928032-f0658a80-bf77-11e8-91a0-00a267e75c6e.png)
Pulp is a theme of Hugo framework for realize simple and readable personal blogs.
![logo](https://rawcdn.githack.com/koirand/pulp/5484f16d91e42c7796de8adc29b15c01eb782370/images/logo.png)
Pulp is a [Hugo](https://gohugo.io/) theme for getting a simple, easy-to-read blog site.
## Screenshots
![screenshot-top](https://github.com/koirand/pulp/blob/master/images/ss-top.png)
![screenshot-list](https://github.com/koirand/pulp/blob/master/images/ss-list.png)
![screenshot-page](https://github.com/koirand/pulp/blob/master/images/ss-page.png)
![screenshot-top](https://rawcdn.githack.com/koirand/pulp/5484f16d91e42c7796de8adc29b15c01eb782370/images/ss-top.png)
## Install and Use theme
1. Inside the folder of your Hugo site run:
![screenshot-list](https://rawcdn.githack.com/koirand/pulp/5484f16d91e42c7796de8adc29b15c01eb782370/images/ss-list.png)
![screenshot-page](https://rawcdn.githack.com/koirand/pulp/5484f16d91e42c7796de8adc29b15c01eb782370/images/ss-page.png)
## Installation
If your site is also under version control using git, the easiest way to install this theme is to add it as a submodule. If you have not created a git repo for your project yet, you need to run `git init` beforehand. Inside the folder of your Hugo site, run the following command.
```
cd themes
git submodule add https://github.com/koirand/pulp.git pulp
git submodule add https://github.com/koirand/pulp.git themes/pulp
```
2. Configure your config.toml with reference to exampleSite.
3. Build your site with `hugo server`.
Alternatively, you can clone the theme into your project.
For more information, read the official [guide](https://gohugo.io/themes/installing-and-using-themes/) of Hugo.
```
git clone https://github.com/koirand/pulp.git themes/pulp
```
## Configuration
Configure your config.toml with reference to exampleSite.
Put your own avatar image in /static/images/avatar.jpg of your own site, and also favicon.ico. Hugo will automatically use that imgaes instead of the standard one. It's not necessary to alter the theme.
## Update the theme
You can update the theme by issuing the following command inside your project folder.
@ -26,3 +35,5 @@ You can update the theme by issuing the following command inside your project fo
```
git submodule update --remote --rebase
```
If you have cloned the theme, you can run `git pull` inside the theme folder.

View file

@ -3,8 +3,8 @@ title = "Site Title"
theme = "pulp"
canonifyurls = true
hasCJKLanguage = true
pygmentsCodefences = false
pygmentsUseClasses = false
# pygmentsCodefences = true
# pygmentsUseClasses = true
# googleAnalytics = "{your tracking code}"
[params]
@ -15,8 +15,8 @@ pygmentsUseClasses = false
Please write anything here.
Profiles, backgrounds, favorite things etc.
"""
publicationYear = "2018"
listPageDateFormat = "January, 2006" # See https://gohugo.io/functions/format/
publicationYear = "2019"
listPageDateFormat = "January, 2006" # See https://gohugo.io/functions/format/
singlePageDateFormat = "January 2, 2006"
# custom_css = ["/css/custom.css"]
# custom_js = ["/js/custom.js"]
@ -26,7 +26,7 @@ pygmentsUseClasses = false
[[menu.main]]
name = "Blog"
pre = "<i class='fa fa-book-open fa-lg'></i>"
pre = "<i class='fa fa-book-open fa-lg'></i>" #Choose your favorite font from Font Awesome
url = "/blog/"
weight = 10

BIN
images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -4,13 +4,10 @@
name = "pulp"
license = "MIT"
licenselink = "https://github.com/koirand/pulp/blob/master/LICENSE"
description = "Pulp is theme of Hugo framework for realize simple and readable blog."
homepage = "https://github.com/koirand/pulp/"
tags = ["minimal", "blog", "simple", "light", "personal"]
features = ["blog", "themes"]
description = "Pulp is a Hugo theme for getting a simple, easy-to-read blog site."
tags = ["minimal", "blog", "simple", "light", "personal", "search"]
min_version = "0.41"
[author]
name = "koirand"
homepage = "https://koirand.github.io"