Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/plopcas/papaya.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c46361aad89d90efb9dfc4092f9408471389a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Papaya

Minimalist Hugo theme with social buttons and analytics.

## Getting started

1. Install Hugo https://gohugo.io/getting-started/quick-start/
2. Clone or download this theme into the `themes` directory
3. Update your `config.toml`file to point to the theme
````
theme = "papaya"
````
4. Start the server with `hugo server``
5. Go to http://localhost:1313

## Example config.toml

````
baseURL = "https://example.com/"
languageCode = "en-gb"
title = "Example"

theme = "papaya"

[taxonomies]
  tag = "tags"

# The value of pre is the icon name in https://feathericons.com/
[menu]
  [[menu.main]]
    name = "Home"
    pre = "home"
    url = "/"
    weight = 1
  [[menu.main]]
    name = "Blog"
    pre = "edit"
    url = "/blog/"
    weight = 2
  [[menu.main]]
    name = "Tags"
    pre = "tag"
    url = "/tags/"
    weight = 3

[params]
  dateFormat = "Jan 2, 2006"
  authorName = "John Doe"
  googleAdSense = "ca-pub-0000000000000000"
  googleAnalytics = "UA-000000000-1"

[social]
  twitter = "Example"
````

*dateFormat* will be the format used to display the of the posts

*authorName* will be displayed on the home page, but note that each post can have its own author

*googleAdSense* (optional) your Google AdSense code

*googleAnalytics* (optional) your Google Analytics code

*twitter* handle that you want to show as source with `via` when sharing on Twitter