Skip to content

Commit

Permalink
fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouTimeMachine committed Jun 5, 2024
1 parent ea2742b commit 02ac221
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 5 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% if site.footer_fixed %}
<footer class="fixed-bottom">
<div class="container mt-0">
<div class="text">
&copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}.
{{ site.footer_text }}
{%- if site.impressum_path -%}
Expand All @@ -9,8 +10,11 @@
{%- if site.last_updated -%}
Last updated: {{ "now" | date: '%B %d, %Y' }}.
{%- endif %}
</div>
&nbsp;&nbsp;
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fzhoutimemachine.github.io&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" style="height: 10%;width: 10%;"/></a>
<div class="image">
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fzhoutimemachine.github.io&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false"/></a>
</div>
</div>
</footer>
{%- else -%}
Expand Down
2 changes: 1 addition & 1 deletion _includes/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tr>
<th scope="row">2022</th>
<td class="news-title">
2nd Price, Contemporary Undergraduate Mathematical Contest in Modeling(<a href="http://www.mcm.edu.cn">CUMCM</a>)
2nd Prize, Contemporary Undergraduate Mathematical Contest in Modeling(<a href="http://www.mcm.edu.cn">CUMCM</a>)
</td>
</tr>
<tr>
Expand Down
15 changes: 13 additions & 2 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,21 @@ footer.fixed-bottom {
background-color: var(--global-footer-bg-color);
font-size: 0.75rem;

.text {
color: var(--global-footer-text-color);
flex: 1;
}
.image {
height: auto;
max-width: 100%;
vertical-align: middle;
}

.container {
color: var(--global-footer-text-color);
padding-top: 9px;
padding-bottom: 8px;
padding-top: 5px;
padding-bottom: 5px;
display: flex;
}

a {
Expand Down

0 comments on commit 02ac221

Please sign in to comment.