8000 Hardcoded low-resolution cover image URL · Issue #32 · Zenithar/hugo-theme-bleak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.
This repository was archived by the owner on Feb 11, 2020. It is now read-only.
Hardcoded low-resolution cover image URL #32
Open
@bstegmaier

Description

@bstegmaier

Summary
The low resolution cover image is not configurable and hard-coded as /images/cover.low.jpg.

Steps to reproduce

  • Remove any static/images/cover* files
  • Add an image static/images/any_name_other_than_cover.jpg
  • Configure it to be the cover image:
   cover = "/images/any_name_other_than_cover.jpg"
  • Serve and browse the site

Result
Chrome console complains about a non-existing /images/cover/low.jpg file.

Suggested fix
How about making the low res cover configurable via e.g. .Site.Params.coverLow?
This is the relevant line:

<div class="header-cover blured-image" style="background-color: darkgreen; background-image: url(/images/cover.low.jpg)" data-src="{{ .Site.Params.cover }}"></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0