Skip to content

Commit

Permalink
Add title to blog index page and image to newsletter (#252)
Browse files Browse the repository at this point in the history
* Add title to blog index page

* Add blog image and credit

* Include alt, but not super useful
  • Loading branch information
ericholscher authored Feb 1, 2024
1 parent 3d6c702 commit 6fd5d4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Binary file added content/images/feb-2024.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions content/posts/newsletter-february-2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ category: Newsletter
tags: newsletter, community
authors: Eric Holscher
status: published
image: /images/feb-2024.jpg
image_credit: Photo by <a href="https://unsplash.com/@kevinoetiker?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Kevin Oetiker</a> on <a href="https://unsplash.com/photos/snow-covered-brown-trees-_AL1zHGc5_Q?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>


## News and updates

Expand Down
4 changes: 2 additions & 2 deletions readthedocs_theme/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="ui medium header">
{{ article.title }}
</div>

<div class="ui text menu">
<time class="item" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>

Expand Down Expand Up @@ -53,7 +53,7 @@

<div class="ui divider"></div>

<img class="ui big rounded centered image" src="{{ article.image or '/images/posts/default.svg' }}" alt="{{ article.image_credit }}">
<img class="ui big rounded centered image" src="{{ article.image or '/images/posts/default.svg' }}" alt="{{ article.image }}">
{% if article.image and article.image_credit %}
<div class="ui basic center aligned segment">
<p><i>{{ article.image_credit}}</i></p>
Expand Down
4 changes: 3 additions & 1 deletion readthedocs_theme/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% macro article_card(article) %}
<a class="ui card" href="/{{ article.url }}">
<div class="image">
<img src="{{ article.image or '/images/posts/default.svg'}}" alt="{{ article.image_credit }}">
<img src="{{ article.image or '/images/posts/default.svg'}}" alt="{{ article.image }}">
</div>
<div class="content">
<div class="header">{{ article.title }}</div>
Expand Down Expand Up @@ -38,6 +38,8 @@
</a>
{% endmacro %}

{% block title%} Blog - Read the Docs {% endblock %}

{% block content %}

<section>
Expand Down

0 comments on commit 6fd5d4f

Please sign in to comment.