Skip to content

Commit

Permalink
fix(site): More Nits
Browse files Browse the repository at this point in the history
404, Pagination, Search, Squiggle
  • Loading branch information
maydayv7 committed Feb 13, 2025
1 parent 216901c commit 9c19cad
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 26 deletions.
1 change: 0 additions & 1 deletion site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions site/content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions site/sass/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}

Expand Down
2 changes: 1 addition & 1 deletion site/sass/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions site/sass/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 5 additions & 1 deletion site/sass/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
margin-bottom: 1rem;

.title {
margin: 5px;
margin-bottom: -3px;
}

a {
Expand All @@ -85,6 +85,10 @@
&:first-of-type {
margin-top: 0;
}

&:last-of-type {
border: none;
}
}
}
}
7 changes: 6 additions & 1 deletion site/templates/404.html
Original file line number Diff line number Diff line change
@@ -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 -%}
1 change: 1 addition & 0 deletions site/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
{%- 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() }} {%-
Expand Down
6 changes: 4 additions & 2 deletions site/templates/macros/lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ <h1 class="post-title">
</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 -%}
Expand Down
7 changes: 4 additions & 3 deletions site/templates/macros/pagination.html
Original file line number Diff line number Diff line change
@@ -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 -%}
Expand All @@ -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"
Expand All @@ -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>
Expand Down
10 changes: 0 additions & 10 deletions site/templates/shortcodes/vimeo.html

This file was deleted.

0 comments on commit 9c19cad

Please sign in to comment.