Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Reference image in page template #192

Closed
JavierSegoviaCordoba opened this issue Apr 12, 2021 · 2 comments
Closed

Reference image in page template #192

JavierSegoviaCordoba opened this issue Apr 12, 2021 · 2 comments

Comments

@JavierSegoviaCordoba
Copy link

JavierSegoviaCordoba commented Apr 12, 2021

I have the about template:

---
layout: page
title: About
permalink: /about/
image: '{{site.baseurl_root}}/images/60.jpg'
---

{% translate_file _pages/about.md %}

I tried:

image: '{{site.baseurl_root}}/images/60.jpg'

and

image: '/images/60.jpg'

It doesn't work for me, I am trying to avoid duplicate images, with

exclude_from_localizations: ["javascript", "images", "css", "scripts", "favicon.ico"]
@favarete
Copy link

What's the resulting URL from the {{site.baseurl_root}}/images/60.jpg? Does this URL make sense to you accordingly with the value on baseurl from your _config.yml? It's working on the default language at least or isn't working at all?

@JavierSegoviaCordoba
Copy link
Author

JavierSegoviaCordoba commented Apr 26, 2021

The problem was on the HTML or javascript side so I haven't define there the URL, sorry, I am new in web development.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants