Skip to content

Commit

Permalink
docs: alter README
Browse files Browse the repository at this point in the history
  • Loading branch information
waynezhang committed Sep 26, 2024
1 parent de1e6e4 commit f3f5740
Showing 1 changed file with 1 addition and 75 deletions.
76 changes: 1 addition & 75 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,81 +77,7 @@ foto clear-cache

### Basic customize `foto.toml`

<details>
<summary>Click to expand</summary>

```toml
[site]
# The title of the site
title = "A new site"
# The name of the author
author = "Author Here"

# Site navigation links
# You can remove any navigation links or add more link by adding following lines
# [[site.nav]]
# icon = ""
# link = ""
# Navigation links are added in the order encountered.

[[site.nav]]
icon = "assets/icons/home.svg"
link = "https://"

[[site.nav]]
icon = "assets/icons/instagram.svg"
link = "https://instagram.com/xxx"

[[site.nav]]
icon = "assets/icons/twitter.svg"
link = "https://twitter.com/xxx"

# Setttings for photo size
[image]
# Width for thumbnail images
thumbnailWidth = 640
# Width for enlarged images
originalWidth = 2048
# Compress Quality (0~100), higher is better.
compressQuality = 75

# Layout for grids
[layout]
minColumn = 1
maxColumn = 4
minWidth = 200

# Photo sections
# You can remove or add more sections by adding following lines
# [[section]]
# title = "section title"
# text = "section description (HTML supported)"
# slug = "section-slug"
# folder = "folder of photos"
# ascending = false
# Photo sections are added in the order encountered.
[[section]]
title = "Section 1"
text = ""
slug = "section-1"
folder = "~/photos/section-1"
ascending = false

[[section]]
title = "Section 2"
text = ""
slug = "section-2"
folder = "~/photos/section-2"
ascending = false

# Other setings
[others]
# Folders that should be copied together when exporting sites
folders = [ "assets", "media" ]
# Show `Generated by foto` footer or not
show_foto_footer = true
```
</details>
See [foto.toml](./fs/static/foto.toml)

### Style customize

Expand Down

0 comments on commit f3f5740

Please sign in to comment.