Code cleaned up v1

This commit is contained in:
monerooo 2022-04-02 11:21:09 +02:00
parent aaaebfcccc
commit 91ba1bb533
11 changed files with 183 additions and 210 deletions

View File

@ -1 +1,3 @@
<footer class="footer"><span>2022 - Revuo Monero.</span></footer>
<footer class="footer">
<span>2022 - Revuo Monero.</span>
</footer>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
{% include head.html %}
@ -23,40 +23,33 @@
<!-- Main content -->
<div id="container">
<main>
{{ content }}
</main>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.total_pages > 1 %}
<div class="page-numbers"><p>
<div class="page-numbers">
<p>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path}}" class="page-button prev">Prev</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% assign total = paginator.total_pages %}
{% if page == paginator.page %}
{{ page }} of {{total}}
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path}}" class="page-button next">Next</a>
{% endif %}
</p></div>
</p>
</div>
{% endif %}
</div>
</div>
<!-- Footer -->
@ -65,6 +58,6 @@
<!-- Script -->
{% include script.html %}
</div>
</div><!-- div#wrap -->
</body>
</html>

View File

@ -2,7 +2,5 @@
layout: revuo-period
---
<article id="page">
{{ content }}
</article>

View File

@ -5,9 +5,7 @@ layout: default
<h2>{{ page.title }}</h2>
<time datetime="{{ page.date | date_to_xmlschema }}" class="by-line">{{ page.date | date_to_string }}</time>
<div class="content">
{{ content }}
</div>
</article>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
{% include head.html %}
@ -24,11 +24,8 @@
<!-- Main content -->
<div id="container">
<main>
{{ content }}
</main>
<!-- Pagination links -->
@ -60,14 +57,14 @@
</div>
{% endif %}
</div>
</div><!-- div#container -->
<!-- Footer -->
{% include footer.html %}
<!-- Script -->
{% include script.html %}
</div>
</div>
</div><!-- div#periodical -->
</div><!-- div#wrap -->
</body>
</html>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
{% include head.html %}
@ -26,9 +26,7 @@
<div id="container">
<main>
{{ content }}
</main>
<!-- Pagination links -->
@ -41,13 +39,8 @@
{% for page in (1..paginator.total_pages) %}
{% assign total = paginator.total_pages %}
{% if page == paginator.page %}
<p class="page-numbers-display">{{ page }} of {{total}}</p>
{% endif %}
{% endfor %}
@ -58,14 +51,14 @@
{% endif %}
</div>
</div>
</div><!-- div#container -->
<!-- Footer -->
{% include footer.html %}
<!-- Script -->
{% include script.html %}
</div>
</div>
</div><!-- div#weekly -->
</div><!-- div#wrap -->
</body>
</html>

View File

@ -1,4 +0,0 @@
---
---
@import "minima";

View File

@ -45,7 +45,7 @@
--block-bg-color: #2f3234;
--block-bg-color-secondary: #444444;
--block-bg-color-heading: #333333;
--table-color: #fff;
--table-color: #ffffff;
--head-nav-bg-color: transparent;
--head-nav-text-color: #888888;
}
@ -81,16 +81,16 @@ h1 {
a {
color: var(--primary-color);
}
.moneroversary-table,
.price-table{
.price-table {
color: var(--table-color);
}
#weekly .revuo-classes a.wk {
background-color: var(--head-nav-bg-color);
color: var(--head-nav-text-color);
}
#periodical .revuo-classes a.pd, #wrap.periodical .revuo-classes a.pd:active, #wrap.periodical .revuo-classes a.pd:focus {
#weekly .revuo-classes a.wk,
#periodical .revuo-classes a.pd,
#wrap.periodical .revuo-classes a.pd:active,
#wrap.periodical .revuo-classes a.pd:focus {
background-color: var(--head-nav-bg-color);
color: var(--head-nav-text-color);
}

View File

@ -5,15 +5,11 @@ image: /img/revuo-monero.png
---
<!-- Posts -->
<ul id="posts">
{% for post in paginator.posts %}
{% for post in paginator.posts %}
<li class="post">
<h2><a href="{% if site.baseurl == "/" %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}.html">{{ post.title }}</a></h2>
<time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">{{ post.date | date_to_string }}</time>
<p>{{ post.excerpt }}</p>
</li>
{% endfor %}
{% endfor %}
</ul>

View File

@ -19,8 +19,8 @@ function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
}
else { document.documentElement.setAttribute('data-theme', 'light');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}