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

Portrait photo path on posts page #1

Open
josswinn opened this issue Feb 18, 2012 · 1 comment
Open

Portrait photo path on posts page #1

josswinn opened this issue Feb 18, 2012 · 1 comment

Comments

@josswinn
Copy link
Owner

The apache mod_rewrite config needs more work. The posts layout should not need the full image src URL.

    <figure>
        <img src="http://hackingtheuniversity.net/images/portraits/{{page.slug}}.jpg" alt="{{page.person}}" width="500" height="335" class="portrait">
        {% if page.credits %}<figcaption>Photo by {% if page.credits.url %}<a href="{{page.credits.url}}" title="{{page.person}} by {{page.credits.name}}.">{{page.credits.name}}</a>{% else %}{{page.credits.name}}{% endif %}</figcaption>{% endif %}
    </figure>

@josswinn
Copy link
Owner Author

Same problem on 404 page image

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

1 participant