dotfiles

My PC Dotfiles & Website
commit 9c19cad487acefd151d3d7b864f25174ce218c89
parent 216901c375a73178a28397073f32d1888ccc18c2
Author: maydayv7 <maydayv7@gmail.com>
Date:   Thu, 13 Feb 2025 19:37:27 +0530

fix(`site`): More Nits

404, Pagination, Search, Squiggle

Diffstat:

12 files changed, 27 insertions(+), 26 deletions(-)

diff --git a/site/README.md b/site/README.md @@ -44,7 +44,6 @@ To build the site, run `nix build`. In order to override the Base URL, <code>nix - [x] Figure : Extends Image - <code>{{ figure(caption_position="<i>left</i>", caption="<b>CAPTION</b>", caption_style="<i>font-weight: bold;</i>") }}</code> - [x] GitHub : Star Count - <code>{{ github(repo="<b>USER</b>/<b>NAME</b>") }}</code> - [x] YouTube : Embed Video - <code>{{ youtube(id="<b>ID</b>") }}</code> - - [x] Vimeo : Embed Video - <code>{{ vimeo(id="<b>ID</b>") }}</code> #### Credits diff --git a/site/config.toml b/site/config.toml @@ -48,7 +48,6 @@ include_content = true # Site Theme theme_color = "red" color_schemes = ["black", "blue", "red"] -read_more = "Read More..." # Enable Math Typesetting with KaTeX # Use 'math=true' in [extra] on individual pages diff --git a/site/content/about.md b/site/content/about.md @@ -16,6 +16,6 @@ Tech enthusiast (_read:_ fanatic) and avid reader Ways to follow or get in contact with me - Mail: <maydayv7@gmail.com> -- Github: @[maydayv7 ](https://github.com/maydayv7) -- Reddit: @[maydayv7 ](https://reddit.com/u/maydayv7) +- Github: @[maydayv7 ](https://github.com/maydayv7) +- Reddit: @[maydayv7 ](https://reddit.com/u/maydayv7) - Discord: @MayDayV7#8064 diff --git a/site/sass/_footer.scss b/site/sass/_footer.scss @@ -4,13 +4,13 @@ flex-direction: column; flex-grow: 0; opacity: 0.5; - padding: 30px 0 10px 0; + padding: 20px 0 10px 0; &__inner { align-items: center; display: flex; justify-content: center; - margin: 0; + margin-top: 20px; width: 100%; } diff --git a/site/sass/_pagination.scss b/site/sass/_pagination.scss @@ -26,7 +26,7 @@ button { background: var(--background); border-color: var(--accent-secondary); - border-radius: 5px; + border-radius: $corner-radius; color: var(--color); font-family: inherit; padding: 3px 8px; diff --git a/site/sass/_post.scss b/site/sass/_post.scss @@ -24,7 +24,7 @@ blockquote { .copy { background: var(--background); border-color: var(--accent-secondary); - border-radius: 5px; + border-radius: $corner-radius; color: var(--color); font-family: inherit; display: block; @@ -250,7 +250,7 @@ blockquote { .scroll-back { background-color: var(--accent-alpha-20); - border-radius: 10px; + border-radius: $corner-radius; border: none; bottom: 20px; color: var(--accent-secondary); diff --git a/site/sass/_search.scss b/site/sass/_search.scss @@ -63,7 +63,7 @@ margin-bottom: 1rem; .title { - margin: 5px; + margin-bottom: -3px; } a { @@ -85,6 +85,10 @@ &:first-of-type { margin-top: 0; } + + &:last-of-type { + border: none; + } } } } diff --git a/site/templates/404.html b/site/templates/404.html @@ -1,5 +1,10 @@ {% extends "base.html" -%} {%- block title %} <title>Error 404 - {{ config.extra.author }}</title> {%- endblock title -%} {%- block main -%} -<h1 class="post-title">Error 404 - Page Not Found</h1> +<article class="post"> + <h1 class="post-title">Error 404 - Page Not Found</h1> + <p>Go back to <a href="{{ config.base_url | safe }}">homepage </a></p> + <p></p> +</article> + {%- endblock main -%} diff --git a/site/templates/base.html b/site/templates/base.html @@ -45,6 +45,7 @@ squiggle -%} {% import "macros/edit.html" as edit -%} {% import {%- block pagination -%} {{ pagination::paginate(pagelink = current_url) }} {%- endblock pagination -%} {%- block footer -%} <footer class="footer"> + {{ squiggle::squiggle() }} <div class="footer__inner"> {%- block copyright -%} {{ footer::copyright(config = config) }} {%- endblock copyright -%} {%- block script -%} {{ js::mobile() }} {%- diff --git a/site/templates/macros/lists.html b/site/templates/macros/lists.html @@ -16,8 +16,10 @@ </div> {% if page.description or page.summary -%} <div> - <a class="read-more button" href="{{ page.permalink }}" - >{{ config.extra.read_more }} →</a + <i + ><a class="read-more button" href="{{ page.permalink }}" + >Read More -></a + ></i > </div> {% endif -%} diff --git a/site/templates/macros/pagination.html b/site/templates/macros/pagination.html @@ -1,4 +1,5 @@ -{% macro paginate(pagelink) %} {% if paginator %} +{% macro paginate(pagelink) %} {% if paginator and paginator.number_pagers > 1 +%} <div class="pagination"> <div class="pagination__buttons"> {% if paginator.previous -%} @@ -7,7 +8,7 @@ <span class="button__text"><- newer</span> </a> </span> - {% endif -%} {% if paginator.number_pagers > 1 -%} + {% endif -%} <div class="pagination__buttons-input"> <form class="pagination__form" @@ -26,7 +27,7 @@ <button>Go</button> </form> </div> - {% endif -%} {% if paginator.next -%} + {% if paginator.next -%} <span class="pagination__buttons-next"> <a href="{{ paginator.next }}"> <span class="button__text">older -></span> diff --git a/site/templates/shortcodes/vimeo.html b/site/templates/shortcodes/vimeo.html @@ -1,10 +0,0 @@ -<div class="vimeo is-flex is-justify-content-center is-align-items-center"> - <iframe - width="848" - height="510" - title="vimeo-player" - src="https://player.vimeo.com/video/{{ id }}" - frameborder="0" - allowfullscreen> - </iframe> -</div>