Skip to content

Commit

Permalink
Merge pull request #96 from JoHyukJun/develop
Browse files Browse the repository at this point in the history
feat: Update nav bar
  • Loading branch information
JoHyukJun authored Aug 14, 2024
2 parents 338c68a + 4c44fca commit 0392bc1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
26 changes: 8 additions & 18 deletions src/unluckystrike/blog/templates/blog_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,17 @@

{% block title%}Blog - Unlucky Strike{% endblock title %}

{% block category %}
<ul>
{% for category in categories %}
<li><a href="{% url 'blog_category' category.name %}"> {{ category.name }} ({{ category.posts.count }})</a></li>
{% endfor %}
</ul>
{% endblock category %}

{% block content %}

<h2 id="blog">Blog</h2>
<div>
<ul class="tree-view" style="float: right;">
<li>
<details open>
<summary>Categories</summary>
<ul>
{% for category in categories %}
<li>
<a href="{% url 'blog_category' category.name %}"> {{ category.name }} ({{ category.posts.count }})</a>
</li>
{% endfor %}
</ul>
</details>
</li>
</ul>
<br>
</div>

<hr>
{% if not post_list %}
<h4>No results were found for your search</h4>
Expand Down
8 changes: 7 additions & 1 deletion src/unluckystrike/main/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@
<a href="{% url 'home_index' %}">Unlucky Strike</a>
<ul>
<li><a href="{% url 'home_index' %}">Home</a></li>
<li><a href="{% url 'blog_index' %}">Blog</a></li>
<li>
<details>
<summary><a href="{% url 'blog_index' %}">Blog</a></summary>
{% block category %}
{% endblock category %}
</details>
<a href="{% url 'blog_index' %}">Blog</a></li>
<li>
<details>
<summary><a href="{% url 'project_index' %}">Project</a></summary>
Expand Down

0 comments on commit 0392bc1

Please sign in to comment.