bep / gallerydeluxe

Fast Hugo gallery theme/module suitable for lots of images.
MIT License
146 stars 31 forks source link

Error: Error building site: failed to render pages: render of "home" failed: #20

Closed varunchandak closed 1 year ago

varunchandak commented 1 year ago
Error: Error building site: failed to render pages: render of "home" failed: 
"/codebuild/output/src039271864/src/github.com/varunchandak/XXXXXXXXX/layouts/index.html:19:17": execute of 
template failed: template: index.html:19:17: executing "index.html" at <partial "gallerydeluxe/init.html" (dict "sourcePath" 
"images")>: error calling partial: partial "gallerydeluxe/init.html" timed out after 30s. This is most likely due to infinite 
recursion. If this is just a slow template, you can try to increase the 'timeout' config setting.
varunchandak commented 1 year ago

my config.toml

baseURL      = "https://XXXXXXX/"
title        = "XXXXXXX"
disableKinds = ["section", "taxonomy", "term"]

[params]
    # Set to enable Plausible Analytics.
    plausible_domain = ""

    [params.gallerydeluxe]
        # Shuffle the images in the gallery to give the impression of a new gallery each page load.
        shuffle = false

        # Reverse the order of the images in the gallery.
        reverse = false

        # Enable Exif data in the gallery.
        # See https://gohugo.io/content-management/image-processing/#exif-data for how to filter tags.
        enable_exif = false

[caches]
    [caches.images]
        dir    = ':cacheDir/gallerydeluxe'
        maxAge = "4320h"                   # 6 months.

[imaging]
    resampleFilter = "CatmullRom"
    quality        = 71
    anchor         = "smart"
    [imaging.exif]
        disableDate    = false
        disableLatLong = true
        includeFields  = 'Artist|LensModel|FNumber|ExposureTime'

[server]
    [[server.headers]]
        for = '/**'
        [server.headers.values]
            Referrer-Policy = 'strict-origin-when-cross-origin'

[module]
    [[module.mounts]]
        source = "assets"
        target = "assets"
    [[module.mounts]]
        source = "layouts"
        target = "layouts"
    [[module.mounts]]
        source = "content"
        target = "content"
    [[module.mounts]]
        source = "static"
        target = "static"
    [[module.imports]]
        path = "github.com/bep/gallerydeluxe"
varunchandak commented 1 year ago

my go.mod file

module github.com/varunchandak/XXXXXX

go 1.19

require github.com/bep/gallerydeluxe v0.9.3 // indirect
bep commented 1 year ago

current photos count is 239 (more coming soon)

OK,