Skip to content

Commit

Permalink
# plain theme html fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Mar 26, 2023
1 parent d6ba7be commit 91d3ddb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cast/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def render_option(self, name: str, selected_choices: set[str], option_value: str
# the current option is already selected, so add a hidden input field
# to preserve the selection and add the class "selected" to the link
option_attrs = ' class="selected"'
hidden_input = f'<input type="hidden" name="{name}" value="{option_value}" />'
hidden_input = f'<input type="hidden" name="{name}" value="{option_value}">'
option_string = self.option_string() % {
"attrs": option_attrs,
"query_string": url,
Expand Down
6 changes: 3 additions & 3 deletions cast/templates/cast/plain/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
{% block meta %}
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width">
{% block robots %}
<meta name="robots" content="index, follow" />
<meta name="robots" content="index, follow">
{% endblock robots %}
{% block title %}
<title>Title of my Site!</title>
{% endblock title %}
{% block description %}
<meta name="description" content="Description of my site" />
<meta name="description" content="Description of my site">
{% endblock description %}
{% endblock %}

Expand Down
8 changes: 5 additions & 3 deletions cast/templates/cast/plain/blog_list_of_posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
{% endblock %}

{% block description %}
<meta name="description" content="{{ page.search_description }}" />
<meta name="description" content="{{ page.search_description }}">
{% endblock %}

{% block header %}
<header>
<h1>{{ page.title }}</h1>
<section>
<p>{{ page.description|richtext }}</p>
<h4>Description</h4>
{{ page.description|richtext }}
</section>
<section>
<h4>Feed</h4>
<a href="{% url "cast:latest_entries_feed" slug=blog.slug %}">
Link to RSS feed
</a>
Expand All @@ -34,7 +36,7 @@ <h1>{{ page.title }}</h1>

{% block navigation %}
<nav>
<form action="" method="get">
<form method="get">
{{ filterset.form }}
<button type="submit">Filter</button>
</form>
Expand Down

0 comments on commit 91d3ddb

Please sign in to comment.