Skip to content

Commit

Permalink
mobile friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed Jan 27, 2024
1 parent 31fc191 commit d4f0d1a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion content/resources/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ main {
max-width: 70ch;
}

@media screen and (max-width: 500px) {
main {
padding: 3em 2em;
}
}

main.index {
max-width: 50ch;
}
Expand Down Expand Up @@ -170,7 +176,15 @@ footer {
footer nav {
display: flex;
flex-direction: row;
gap: 12px;
gap: 16px;
align-items: center;
}

.footer-wrap {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 4px 16px;
}

.cover {
Expand Down
4 changes: 2 additions & 2 deletions src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ <h1 class="main-title">{{title}}</h1>
<article class="post-summary">
<a href="{{path}}"><h1>{{{title}}}</h1></a>
<sub>by {{author}}{{#if date}} &mdash; {{date}}{{/if}}</sub>
{{#if summary}}<div>{{{summary}}}</div>{{/if}}
<!-- <a href="{{path}}">Read more</a> -->
</article>
{{/each}}
<footer>
<nav>
&hearts;
<div class="footer-wrap">
<a href="https://mckayla.dev">McKayla</a> &middot;
<a href="https://github.com/aslilac">Git</a> &middot;
<a href="https://twitch.tv/aslilac">Twitch</a> &middot;
<a href="https://youtube.com/@aslilac">YouTube</a> &middot;
<a href="/feed.xml">RSS</a>
<!-- <img style="height: 1em; aspect-ratio: 1;" src="https://cdn.mckayla.cloud/-/58b68b5ed/rss.svg" /> -->
</div>
</nav>
</footer>
</main>
Expand Down

0 comments on commit d4f0d1a

Please sign in to comment.