Coder Social home page Coder Social logo

Comments (4)

budparr avatar budparr commented on August 28, 2024

Thank you, @Eidolonic It's very likely something I did trying to get the URLs to work on any instance, including where the install is in a nested folder. I'll have a look tonight.

from gohugo-theme-ananke.

budparr avatar budparr commented on August 28, 2024

Hey, @Eidolonic

Specifying in site config.toml featured_image -- Does not appear to be respected at all; Network tab shows no attempt to find file

At some point I changed this to not use a config default because I felt like the behavior should be not to have anything if you didn't have an image on the page. If you want the default from the config, I can show you how to do that {{ $featured_image := .Params.featured_image | default .Site.Params.featured_image }}

Specifying in content/_index.md front matter featured_image: 'static/images/file.jpg' -- Site tries to pull from //localhost:1313/static/images/file.jpg but always 404s.

The reference should not include static

Copying the specified hero image to (site root)/static/images/file.jpg, (site root)/content/static/images/file.jpg and same structures inside theme folder.

"(site root)/static/images/file.jpg" looks right to me.

I tested the theme with the sample content and it seems to work okay. If you want to post your repo, I'm happy to have a look.

from gohugo-theme-ananke.

davebrothers avatar davebrothers commented on August 28, 2024

@budparr Thanks for your detailed response and sorry for squirreling you on a non-issue. Simply removing the static portion of the front matter reference fixed the problem. Thought I had tried that, but clearly not. 😎 Thanks for a killer theme.

from gohugo-theme-ananke.

budparr avatar budparr commented on August 28, 2024

Awesome! Glad to hear you got it figured out.

from gohugo-theme-ananke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.