Compare commits

..

2 Commits

Author SHA1 Message Date
46746b2c07 reduce footer icon max-width to 20rem 2022-09-06 23:51:32 +08:00
ad2207816e move home_button to config.toml homeimg 2022-09-06 23:06:41 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ footer {
margin: 1rem 0;
}
.footer-home-icon {
max-width: 30rem;
max-width: 20rem;
border: 0.39rem solid pink;
border-radius: 4rem;
margin: 0;

View File

@@ -1,7 +1,8 @@
<footer class="side-padding" style="background-image: url('{{ "img/home-blob-flip.svg" | absURL }}');">
<a href="{{ $.Site.BaseURL }}" class="footer-link">
{{ with resources.Get "icons/home_button.jpg" }}
<img class="footer-home-icon" src="{{ .Permalink }}" alt="Home">
{{ with resources.GetMatch .Site.Params.homeimg -}}
{{ $homeButton := .Resize "990x Lanczos" }}
<img class="footer-home-icon" src="{{ $homeButton.Permalink }}" alt="Home">
{{ end }}
</a>
{{ if isset $.Site.Params "facebook"}}