Code Monkey home page Code Monkey logo

Comments (3)

danielmgauthier avatar danielmgauthier commented on June 10, 2024 2

This has been sitting here for a little while, but in case anyone out there runs into this: you've probably just got relative file paths in your config.yml instead of absolute paths. Instead of this...

app_icon: assets/appicon.png

do this:

app_icon: /assets/appicon.png

Same goes for other resources that are accessible from multiple pages, like your press kit 👍

from automatic-app-landing-page.

StrymTV avatar StrymTV commented on June 10, 2024 1

I managed to fix it by editing header.html file.

from this:
{% if page.url != '/' %} <a href="../" target="_self"><img class="headerIcon" src="{{ site.app_icon }}"></a> {% else %} <img class="headerIcon" src="{{ site.app_icon }}"> {% endif %}

to this :

{% if page.url != '/' %} <a href="../index.html" target="_self"><img class="headerIcon" src="../assets/appicon.png"></a> {% else %} <img class="headerIcon" src="{{ site.app_icon }}"> {% endif %}

hope it helps! 👍🏻

from automatic-app-landing-page.

thatvirtualboy avatar thatvirtualboy commented on June 10, 2024

Did something change to where this isn't working as of late? I recently loaded this template and am trying to add images to presskit.md and other pages using

![](/assets/image.png)

It shows fine in the "Preview" pane on Github, but after publishing, the images don't show up. I have older sites deployed from this template that use this exact method that work fine.

Thanks!

@emilbaehr @danielmgauthier

from automatic-app-landing-page.

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.