fix display bug & add back to top button
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
40dd19b570
commit
960399636e
@ -1,6 +1,7 @@
|
||||
#This data file contains all the global site information.
|
||||
---
|
||||
title: SharpeTronics
|
||||
legal_title: SharpeTronics, LLC
|
||||
support_email: info@sharpetronics.com
|
||||
sales_email: sales@sharpetronics.com
|
||||
info_email: info@sharpetronics.com
|
||||
@ -23,7 +24,7 @@ location_coords: "39.63;-79,96"
|
||||
terms_link: /blog/legal/2020/02/03/our-terms-and-conditions/
|
||||
privacy_link: /blog/legal/2020/02/03/our-privacy-policy/
|
||||
sitemap_link: /sitemap.xml
|
||||
license_shorthand: This is Free Software released under <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3</a>
|
||||
license_shorthand: This is Free Software released under <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3</a>.
|
||||
license_longhand: >- # this means to ignore newlines
|
||||
This is Free Software released under GPLv3. Any misuse of this software
|
||||
will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
|
@ -4,10 +4,10 @@ header:
|
||||
- url: /
|
||||
title: Home
|
||||
identifier: header
|
||||
- url: /blog/
|
||||
- url: /blog
|
||||
title: Journal
|
||||
identifier: header
|
||||
# - url: /products/
|
||||
# - url: /products
|
||||
# title: Shop
|
||||
# identifier: header
|
||||
---
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,7 +2,14 @@
|
||||
The author metadata for both posts and post single pages.
|
||||
{% endcomment %}
|
||||
|
||||
<div class="meta">
|
||||
<time class="published">{{ post.date | date_to_string }} {{ page.date | date_to_string }}</time>
|
||||
<h5 class="author"><img src="{{ author.avatar }}" alt="{{ author.first_name }} {{ author.last_name }}" /><span class="name">{{ author.first_name }}</span></h5>
|
||||
</div>
|
||||
|
||||
{% if post == blank %}
|
||||
{% comment %}
|
||||
Fix display bug when author data is empty.
|
||||
{% endcomment %}
|
||||
{% else %}
|
||||
<div class="meta">
|
||||
<time class="published">{{ post.date | date_to_string }} {{ page.date | date_to_string }}</time>
|
||||
<h5 class="author"><img src="{{ author.avatar }}" alt="{{ author.first_name }} {{ author.last_name }}" /><span class="name">{{ author.first_name }}</span></h5>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
1
_includes/back-to-top.html
Normal file
1
_includes/back-to-top.html
Normal file
@ -0,0 +1 @@
|
||||
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
|
@ -8,9 +8,9 @@
|
||||
<li><a href="mailto:{{ site.data.global.info_email }}" class="icon solid fa-envelope" target="_blank"><span class="label">Email</span></a></li>
|
||||
</ul>
|
||||
<p class="copyright">
|
||||
© 2013-<script>document.write(new Date().getFullYear())</script> SharpeTronics <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br />
|
||||
© 2013-<script>document.write(new Date().getFullYear())</script> {{ site.data.global.legal_title }} <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br />
|
||||
<a href="/humans.txt" target="_blank">Imagined by humans</a>, <a href="https://jekyllrb.com/" target="_blank">built with Jekyll</a>,
|
||||
<a href="https://git.sharpetronics.com/SharpeTronics/sharpetronics.com" target="_blank">hosted by SharpeTronics</a><br />
|
||||
<a href="https://git.sharpetronics.com/SharpeTronics/sharpetronics.com" target="_blank">hosted by {{ site.data.global.legal_title }}</a><br />
|
||||
<!-- Creative Commons Attribution-NoDerivs 3.0 United States License -->
|
||||
{{ site.data.global.license_shorthand }}
|
||||
</p>
|
||||
|
@ -143,7 +143,7 @@
|
||||
We provide value to communities and businesses in a friendly super awesome way.</p>
|
||||
</section>
|
||||
<div id="thank-you-message">Thank You! You have been added to our mailing list.</div>
|
||||
<form method="post" action="https://dash.sharpetronics.com/api/newsletters" id="newsletter-form" autocomplete="off">
|
||||
<form method="post" action="https://dash.sharpetronics.com/api/newsletters" id="newsletter-form" autocomplete="on">
|
||||
<label for="name" placeholder="Enter your Name">Name</label>
|
||||
<input type="text" id="name" name="name" />
|
||||
<label for="email" placeholder="Enter your Email">Email</label>
|
||||
|
@ -42,5 +42,4 @@
|
||||
</div>
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -9,3 +9,5 @@ layout: default
|
||||
{%- include banner.html -%}
|
||||
|
||||
{%- include sections.html -%}
|
||||
|
||||
{%- include back-to-top.html -%}
|
||||
|
@ -29,7 +29,7 @@ pagination:
|
||||
{{ content }}
|
||||
{% assign author = site.data.authors[page.author] %}
|
||||
{%- include author_card.html -%}
|
||||
|
||||
{%- include back-to-top.html -%}
|
||||
<!-- Related posts collection -->
|
||||
<section class="row related-items">
|
||||
<div class="col-12">
|
||||
@ -38,7 +38,10 @@ pagination:
|
||||
{%- assign related_posts = site.posts | where_exp:"post", "post.url != page.url" | sample:3 -%}
|
||||
{%- include product_related.html -%}
|
||||
</section>
|
||||
|
||||
<!-- A Placeholder for Community Discussion aka Comments -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
@ -9,6 +9,7 @@ layout: post
|
||||
<div class="content">
|
||||
<!-- This loops through the paginated posts collection posts-->
|
||||
{% for post in paginator.posts %}
|
||||
|
||||
<!-- Post layout structure -->
|
||||
<article class="post">
|
||||
<header>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This software gathers all collection types from an API or headless CMS, then saves that data into the Jekyll _data/ folder.
|
||||
# Copyright (C) SharpeTronics, Inc. 2013-2023
|
||||
# Copyright (C) SharpeTronics, LLC, 2013-2023
|
||||
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, Inc.
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
|
||||
# License: GPLv3
|
||||
# Version: 1.3
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
# will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
# https://www.softwarefreedom.org/
|
||||
|
||||
# If you incorporate or include any code from SharpeTronics, Inc., your
|
||||
# If you incorporate or include any code from SharpeTronics, LLC,, your
|
||||
# code must be licensed as GPLv3 (not GPLv2 or MIT)
|
||||
|
||||
# The GPLv3 software license applies to the code directly included in this source distribution.
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
|
||||
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
|
||||
# software on a *case-by-case* basis, for an agreed upon price. Please email
|
||||
# info@sharpetronics.com.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This software generates mardown formatted posts from json data.
|
||||
# Copyright (C) SharpeTronics, Inc. 2013-2023
|
||||
# Copyright (C) SharpeTronics, LLC, 2013-2023
|
||||
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, Inc.
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
|
||||
# License: GPLv3
|
||||
# Version: 1.3
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
# will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
# https://www.softwarefreedom.org/
|
||||
|
||||
# If you incorporate or include any code from SharpeTronics, Inc., your
|
||||
# If you incorporate or include any code from SharpeTronics, LLC,, your
|
||||
# code must be licensed as GPLv3 (not GPLv2 or MIT)
|
||||
|
||||
# The GPLv3 software license applies to the code directly included in this source distribution.
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
|
||||
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
|
||||
# software on a *case-by-case* basis, for an agreed upon price. Please email
|
||||
# info@sharpetronics.com.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This software generates mardown formatted products from json data.
|
||||
# Copyright (C) SharpeTronics, Inc. 2013-2023
|
||||
# Copyright (C) SharpeTronics, LLC, 2013-2023
|
||||
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, Inc.
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
|
||||
# License: GPLv3
|
||||
# Version: 1.3
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
# will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
# https://www.softwarefreedom.org/
|
||||
|
||||
# If you incorporate or include any code from SharpeTronics, Inc., your
|
||||
# If you incorporate or include any code from SharpeTronics, LLC,, your
|
||||
# code must be licensed as GPLv3 (not GPLv2 or MIT)
|
||||
|
||||
# The GPLv3 software license applies to the code directly included in this source distribution.
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
|
||||
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
|
||||
# software on a *case-by-case* basis, for an agreed upon price. Please email
|
||||
# info@sharpetronics.com.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This software refactors static json image data and downloads unknown images for building a Jekyll web app.
|
||||
# Copyright (C) SharpeTronics, Inc. 2013-2023
|
||||
# Copyright (C) SharpeTronics, LLC, 2013-2023
|
||||
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, Inc.
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
|
||||
# License: GPLv3
|
||||
# Version: 1.3
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
# will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
# https://www.softwarefreedom.org/
|
||||
|
||||
# If you incorporate or include any code from SharpeTronics, Inc., your
|
||||
# If you incorporate or include any code from SharpeTronics, LLC,, your
|
||||
# code must be licensed as GPLv3 (not GPLv2 or MIT)
|
||||
|
||||
# The GPLv3 software license applies to the code directly included in this source distribution.
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
|
||||
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
|
||||
# software on a *case-by-case* basis, for an agreed upon price. Please email
|
||||
# info@sharpetronics.com.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# This software creates product data from the Stripe API and populates it on Strapi frontend dashboard.
|
||||
# Copyright (C) SharpeTronics, Inc. 2013-2023
|
||||
# Copyright (C) SharpeTronics, LLC 2013-2023
|
||||
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, Inc.
|
||||
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
|
||||
# License: GPLv3
|
||||
# Version: 1.3
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
# will be followed up with GPL enforcement via Software Freedom Law Center:
|
||||
# https://www.softwarefreedom.org/
|
||||
|
||||
# If you incorporate or include any code from SharpeTronics, Inc., your
|
||||
# If you incorporate or include any code from SharpeTronics, LLC, your
|
||||
# code must be licensed as GPLv3 (not GPLv2 or MIT)
|
||||
|
||||
# The GPLv3 software license applies to the code directly included in this source distribution.
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
|
||||
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
|
||||
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
|
||||
# software on a *case-by-case* basis, for an agreed upon price. Please email
|
||||
# info@sharpetronics.com.
|
||||
|
||||
|
@ -4,7 +4,7 @@ body a {
|
||||
|
||||
body.landing {
|
||||
background-attachment: scroll !important;
|
||||
background-color: #f4f4f4;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
body.single {
|
||||
@ -286,6 +286,14 @@ a.author {
|
||||
input[type="submit"], input[type="reset"], input[type="button"], button, .button {
|
||||
padding: 0 2.9em;
|
||||
}
|
||||
/* ---------Back to Top------------- */
|
||||
#myBtn {
|
||||
padding: 0 .50em;
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: .25em !important;
|
||||
right: .25em !important;
|
||||
}
|
||||
}
|
||||
|
||||
#footer .copyright a, #footer .copyright {
|
||||
@ -488,7 +496,7 @@ a.author {
|
||||
padding: 0 .5em 0 .5em;
|
||||
}
|
||||
.product-cart .button.back {
|
||||
margin: 1.5em;
|
||||
margin: 0 0 1em 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@ -534,3 +542,46 @@ a.author {
|
||||
.related-products h3 {
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
|
||||
/* ---------Comment Discussion Styling------------- */
|
||||
ul.simple-nested li {
|
||||
margin-left: 3em;
|
||||
}
|
||||
|
||||
div.comment {
|
||||
background-color: #fff;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
em.date {
|
||||
font-size: .75em
|
||||
}
|
||||
|
||||
section.comments ul {
|
||||
list-style: disclosure-closed;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ---------Back to Top------------- */
|
||||
/* https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_scroll_to_top */
|
||||
#myBtn {
|
||||
display: none;
|
||||
position: fixed;
|
||||
bottom: 1em;
|
||||
right: 1em;
|
||||
z-index: 99;
|
||||
font-size: 18px;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #f5f5f5;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#myBtn:hover {
|
||||
background-color: #67c3af3b;
|
||||
}
|
||||
|
@ -49,3 +49,23 @@
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
||||
// Get the button
|
||||
let mybutton = document.getElementById("myBtn");
|
||||
|
||||
// When the user scrolls down 20px from the top of the document, show the button
|
||||
window.onscroll = function() {scrollFunction()};
|
||||
|
||||
function scrollFunction() {
|
||||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
|
||||
mybutton.style.display = "block";
|
||||
} else {
|
||||
mybutton.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
// When the user clicks on the button, scroll to the top of the document
|
||||
function topFunction() {
|
||||
document.body.scrollTop = 0;
|
||||
document.documentElement.scrollTop = 0;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
updatedAt: 2022-10-16T16:23:51.006Z
|
||||
updatedAt: 2022-10-21T17:38:49.434Z
|
||||
layout: post
|
||||
title: Upgrade your Crosshair VI Hero Motherboard Firmware with System76's PopOS!
|
||||
subheading: I was doing a bit of yak shaving this morning, and it looks like it might have paid off.
|
||||
|
BIN
uploads/Pentagonal_Moebius_strip_svg_500519e96a.png
Normal file
BIN
uploads/Pentagonal_Moebius_strip_svg_500519e96a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
Loading…
x
Reference in New Issue
Block a user