feat: add navigation bar
This commit is contained in:
parent
dc1b19af1e
commit
63dc8393aa
@ -4,26 +4,33 @@
|
|||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<section class="full-page">
|
<section class="full-page">
|
||||||
<header>
|
<header>
|
||||||
<section class="container">
|
<section class="container">
|
||||||
<h1>{{ setting.title }}</h1>
|
<h1>{{ setting.title }}</h1>
|
||||||
<p>{{ setting.description }}</p>
|
<p>{{ setting.description }}</p>
|
||||||
</section>
|
<nav>
|
||||||
</header>
|
<a href="/">HOMEPAGE</a>
|
||||||
|
<a href="https://portfolios.kilerd.me">PORTFOLIOS</a>
|
||||||
<section class="container">
|
<a href="/about">ABOUT</a>
|
||||||
{% for article in articles %}
|
</nav>
|
||||||
<section class="article">
|
|
||||||
<p class="mate">{{ article.timestamp | date(format="%B %d, %Y") }}</p>
|
|
||||||
<a class="title" href="{% if article.article.url %}{{ article.article.url }}{% else %}archives/{{ article.article.id }}{% endif %}">{{ article.article.title }}</a>
|
|
||||||
<section class="yue desc">
|
|
||||||
{{ article.description|safe }}
|
|
||||||
</section>
|
</section>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="container">
|
||||||
|
{% for article in articles %}
|
||||||
|
<section class="article">
|
||||||
|
<p class="mate">{{ article.timestamp | date(format="%B %d, %Y") }}</p>
|
||||||
|
<a class="title"
|
||||||
|
href="{% if article.article.url %}{{ article.article.url }}{% else %}archives/{{ article.article.id }}{% endif %}">{{
|
||||||
|
article.article.title }}</a>
|
||||||
|
<section class="yue desc">
|
||||||
|
{{ article.description|safe }}
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endblock body %}
|
{% endblock body %}
|
@ -40,10 +40,29 @@ header p {
|
|||||||
color: #A3ABB3;
|
color: #A3ABB3;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
padding-bottom: 2rem;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header nav {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav a:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav a {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
color: #dc1313;
|
||||||
|
margin: 0 5px;
|
||||||
|
/* font-size: .9rem; */
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav a:hover {
|
||||||
|
border-bottom: 1px solid #dc1313;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
section.article {
|
section.article {
|
||||||
padding: 3rem 0 2rem;
|
padding: 3rem 0 2rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user