artemsheludko / flexible-jekyll

Flexible-Jekyll is a simple and clean theme for Jekyll

Home Page:https://artemsheludko.github.io/flexible-jekyll/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photo Credits

redeemefy opened this issue · comments

I don't know if the feature exists or not...
I'm using photos from Flickr with "All creative commons" license in my posts and I would like to include the author of the picture or in some way give credit to the person who shot the photograph. Could be a note just below the image or on top of the image on one of the bottom corners. If you can point me in the right direction I'll appreciated.

@diazgilberto Added a feature. Now you can leave a signature under the pictures. I hope it will be useful. For example,

screen shot 2018-05-31 at 5 49 53 pm

screen shot 2018-05-31 at 5 50 15 pm

Well, I normally don't add images to the post, but the image I'm talking about is the one that get pulled from the img property in the header.

---
layout: post
title: "Estados Unidos Descubierto en la Biblia"
date: 2018-05-29 22:05:20 -0300
description: El capitulo 7 de Daniel nos revela cuales las naciones de la actualidad y nos ayudan a identificar el desempeño que Estados Unidos tendría en el último tiempo. 
img:  aguila.jpg # Add image post (optional)
tags: # (optional)
---

@diazgilberto Ok, done.

screen shot 2018-06-02 at 11 14 04 am

screen shot 2018-06-02 at 11 13 49 am

Thanks, that was quick. I clone the repo and copied the folder assets/css, and the file _layout/post.html to my project. Then I added a fig-caption to one of my posts, then jekyll build and push to gh-pages. After a while I went to my blog to see the change but the credit doesn't show. I inspected the element...

figcaption-position

@diazgilberto It was probably necessary to wait a little. Already everything works.

estados unidos descubierto en la biblia - el ultimo tiempo - google chrome

It took longer than before. Thank you so much!
Closing the issue.

@diazgilberto You are welcome!

I'm trying to change font-weight for the <figcaption>. Mi thought is that if I add font-weight: 300; in the _post-page.scss like so...

  figcaption {
    position: absolute;
    top: 20px;
    right: 20px;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 300;
  }

and in the post.html refactor the line to <figcaption>Photo By <b>{{page.fig-caption}}</b></figcaption>, after I run jekyll build, jekyll will compile my scss to css. I don't know if my assumption is wrong or not. I did the change and waited about 8 hours and I the change is not reflected. I inspected the element <figcaption> and I don't see font-weight: 300;. Can you point me to the right direction? If you like the change I can do a PR.

  • The caption will look better
  • Consistency with the prefix PHOTO BY
  • Just add the person's name in fig-caption: John Doe

PHOTO BY JOHN DOE