Use CSS to add navigation dots

This commit is contained in:
Gabriel Augendre 2021-01-03 19:39:32 +01:00
parent 118320ada1
commit fa56dd138a
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 8 additions and 5 deletions

View file

@ -15,3 +15,11 @@ footer {
footer > :first-child { footer > :first-child {
margin-top: 1em; margin-top: 1em;
} }
nav a:not(:first-child):before {
content: '\00B7';
padding-right: 5px;
color: var(--nc-tx-1);
text-decoration: none;
display: inline-block;
}

View file

@ -1,15 +1,10 @@
<nav> <nav>
<a href="{% url 'articles-list' %}">Home</a> <a href="{% url 'articles-list' %}">Home</a>
&centerdot;
<a href="{% url 'complete-feed' %}">RSS</a> <a href="{% url 'complete-feed' %}">RSS</a>
&centerdot;
{% if user.is_authenticated %} {% if user.is_authenticated %}
<a href="{% url 'admin:articles_article_add' %}">Write</a> <a href="{% url 'admin:articles_article_add' %}">Write</a>
&centerdot;
<a href="{% url 'drafts-list' %}">View drafts <span class="pill">{{ drafts_count }}</span></a> <a href="{% url 'drafts-list' %}">View drafts <span class="pill">{{ drafts_count }}</span></a>
&centerdot;
<a href="{% url 'admin:index' %}">Admin</a> <a href="{% url 'admin:index' %}">Admin</a>
&centerdot;
<a href="{% url 'admin:logout' %}?next={{ request.get_full_path }}">Log out</a> <a href="{% url 'admin:logout' %}?next={{ request.get_full_path }}">Log out</a>
{% else %} {% else %}
<a href="{% url 'admin:login' %}?next={{ request.get_full_path }}">Log in</a> <a href="{% url 'admin:login' %}?next={{ request.get_full_path }}">Log in</a>