Skip to content

Commit

Permalink
bug fixed for aquo
Browse files Browse the repository at this point in the history
  • Loading branch information
tinikov committed Nov 11, 2024
1 parent acc55a1 commit ca99d16
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions content/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title = "Hello World!"
date = 2000-01-01T00:00:00+00:00
description = "Sample post."
authors = ["Hello", "World"]
[taxonomies]
categories = ["samples"]
+++
Expand Down
9 changes: 5 additions & 4 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ ol {
padding-left: 1.2rem;
}

.re137-aquo {
margin: 0 3px 0 4px;
vertical-align: 1px;
}

// Homepage
.header-site-title {
margin-top: 0;
Expand Down Expand Up @@ -231,10 +236,6 @@ ol {
font-size: 0.75rem;
}

.page-front-date-aquo {
margin: 0 3px 0 4px;
}

.page-front-aux {
font-size: 0.7rem;
}
Expand Down
12 changes: 6 additions & 6 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h1 class="header-site-title">
<a href="{{ item.url | replace(from="$BASE_URL", to=config.base_url) | safe }}">{{ item.name }}</a>
{% if loop.last %}
{% else %}
<span>&middot;</span>
<span>·</span>
{% endif %}
{% endfor %}
</nav>
Expand Down Expand Up @@ -126,20 +126,20 @@ <h2 class="year-title">
<div>
{% if config.extra.establishdate %}
{% if config.extra.establishdate == now() | date(format="%Y") %}
{{ now() | date(format="%Y") }} <span>&copy;</span> {{ config.author }}
{{ now() | date(format="%Y") }} <span>©</span> {{ config.author }}
{% else %}
{{ config.extra.establishdate }}-{{ now() | date(format="%Y") }} <span>&copy;</span> {{ config.author }}
{{ config.extra.establishdate }}-{{ now() | date(format="%Y") }} <span>©</span> {{ config.author }}
{% endif %}
{% else %}
<span>&copy;</span> {{ config.author }}
<span>©</span> {{ config.author }}
{% endif %}
{% if config.extra.license %}
<span id="page-front-date-aquo">&laquo;</span> <a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>
<span class="re137-aquo">«</span> <a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>
{% endif %}
</div>
<div>
{% if config.extra.show_zola_theme %}
<a href="https://www.getzola.org">Zola</a> <span id="page-front-date-raquo">&raquo;</span> <b><a href="https://github.com/tinikov/re137">re137</a></b>
<a href="https://www.getzola.org">Zola</a> <span class="re137-aquo">»</span> <b><a href="https://github.com/tinikov/re137">re137</a></b>
{% endif %}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "index.html" %}
{# Change to this page's metadata #}
{% block title %}
{{ page.title }} &middot; {{ config.title }}
{{ page.title }} · {{ config.title }}
{% endblock title %}
{% block description %}
{{ page.description | default(value=config.description) }}
Expand Down Expand Up @@ -37,7 +37,7 @@ <h1 class="page-title">
发布于 <time datetime="{{ page.date | date(format=" %+") }}">{{ page.date | date(format="%Y/%m/%d") }}</time>
{%- endif -%}
{% if page.updated %}
<span id="page-front-date-raquo">&raquo;</span> 更新于 <time datetime="{{ page.updated | date(format=" %+") }}">{{ page.updated | date(format="%Y/%m/%d") }}</time>
<span class="re137-aquo">»</span> 更新于 <time datetime="{{ page.updated | date(format=" %+") }}">{{ page.updated | date(format="%Y/%m/%d") }}</time>
{%- endif -%}
</div>
{%- endif -%}
Expand Down

0 comments on commit ca99d16

Please sign in to comment.