Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support per-article icons/images #24

Open
GreatEmerald opened this issue Sep 4, 2016 · 1 comment
Open

Support per-article icons/images #24

GreatEmerald opened this issue Sep 4, 2016 · 1 comment

Comments

@GreatEmerald
Copy link
Contributor

Right now all items on the home page are statically set to use the fa-sticky-note icon. Instead, it would be nice if it made use of metadata inside a post, such as icon: fa-user or image: /images/my-thumbnail.png. Same goes for the posts-per-category view and the proposed collections-based projects.

@RTbecard
Copy link

I just did this on my branch. All you need to do is modify this line to:

<img src= {{post.image}} />

Then the YAML image tags will work fine, like the following example:

---
layout: post
title: Distributing TMB code in R packages
comments: true
catagories: TMB R c++
image: https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/R_logo.svg/724px-R_logo.svg.png
---

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

No branches or pull requests

2 participants