Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Nov 29, 2024
1 parent 4491922 commit 51fbf4d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 66 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Hydejack uses KaTeX to efficiently render math.

Use the the form below to purchase Hydejack PRO:

<div class="gumroad-product-embed" data-gumroad-product-id="nuOluY"><a href="https://gumroad.com/l/nuOluY">Loading…</a></div>
<a class="no-mark" href="https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI"><img src="https://polar.sh/embed/product.svg?organizationId=b750a733-43ac-41dd-acee-c0433b7c3d34&productId=6533b366-39b9-4af1-a7e4-9fbdbd658d2b" alt="Hydejack PRO" /></a>

[jekyll]: https://jekyllrb.com

Expand Down Expand Up @@ -170,7 +170,7 @@ Use the the form below to purchase Hydejack PRO:
[kit]: https://github.com/hydecorp/hydejack-starter-kit/releases
[src]: https://github.com/hydecorp/hydejack
[gem]: https://rubygems.org/gems/jekyll-theme-hydejack
[buy]: https://gum.co/nuOluY
[buy]: https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI

[gpss]: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fhydejack.com%2Fdocs%2F
[rouge]: http://rouge.jneen.net
Expand Down
10 changes: 3 additions & 7 deletions _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@ qwtel:
|:------------------------------|:-------------------:|:-------------------:|
| [Features][fea] | &#x2714; | &#x2714; |
| [PRO Features][pro] | | &#x2714; |
| __Price__ | __Free__ | __$99__{:.price} <small>One-Time Purchase</small>[^xx] |
| __Price__ | __Free__ | __$79__{:.price} <small>One-Time Purchase</small>[^xx] |
|===============================+=====================+=====================|
| | [__Download__][kit] | [__Buy PRO__][buy]{:.gumroad-button.no-mark data-gumroad-single-product="true"} |
| | [__Download__][kit] | [__Buy PRO__][buy]{:.btn.btn-primary} |
{:.stretch-table.dl-table}
[fea]: /#features
[pro]: /download/
[kit]: https://github.com/hydecorp/hydejack-starter-kit/archive/v9.2.1.zip
[nfy]: https://app.netlify.com/start/deploy?repository=https://github.com/hydecorp/hydejack-starter-kit
[dtn]: https://www.netlify.com/img/deploy/button.svg
[buy]: https://gum.co/nuOluY
[^xx]:
Discounts may apply, check [Gumroad][buy]{:data-gumroad-single-product="true"} for up-to-date pricing.
{:.price-desc}
[buy]: https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI
# This photo will be used in the about section
picture:
Expand Down
43 changes: 1 addition & 42 deletions _includes/my-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,4 @@
<script>(function () { window.counterscale = { q: [["set", "siteId", "hydejack.com"], ["trackPageview"]] } })()</script>
<script defer id="counterscale-script" src="https://counterscale-bio.pages.dev/tracker.js"></script>
{% endunless %}
<link rel="dns-prefetch" href="https://assets.gumroad.com">
<script type="module">
const loadJS = x => new Promise(r => window.loadJS(x).addEventListener('load', r));

let p1, p2, io1, io2, embedCreated, overlayCreated;
document.querySelector('hy-push-state').addEventListener('load', () => {
io1 ||= new IntersectionObserver(async (entries) => {
if (entries.some(x => x.isIntersecting)) {
p1 = p1 || loadJS('https://gumroad.com/js/gumroad-embed.js');
await p1;
!embedCreated && await new Promise(function check1(res) {
if (typeof createGumroadEmbed !== 'undefined') {
embedCreated = 1;
res(createGumroadEmbed());
}
else setTimeout(() => check1(res), 200);
});
await new Promise(function check2(res) {
if (typeof GumroadEmbed !== 'undefined') res(GumroadEmbed.reload());
else setTimeout(() => check2(res), 200);
});
}
}, { rootMargin: '1440px' });

io2 ||= new IntersectionObserver(async (entries) => {
if (entries.some(x => x.isIntersecting)) {
p2 = p2 || loadJS('https://gumroad.com/js/gumroad.js');
await p2;
!overlayCreated && await new Promise(function check(res) {
if (typeof createGumroadOverlay !== 'undefined') {
overlayCreated = 1;
res(createGumroadOverlay());
}
else setTimeout(() => check(res), 200);
});
}
}, { rootMargin: '300px' });

document.querySelectorAll('.gumroad-product-embed').forEach(el => io1.observe(el));
document.querySelectorAll('.gumroad-button').forEach(el => io2.observe(el));
});
</script>
<script defer src="https://cdn.jsdelivr.net/npm/@polar-sh/[email protected]/dist/embed.global.js" data-auto-init></script>
8 changes: 2 additions & 6 deletions _includes/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ The table below shows what's included in each version:
| No Hydejack Branding | | &#x2714; |
| License | [GPL-3.0][lic] | [PRO] |
| Source | [GitHub][src] | Included |
| __Price__ | __Free__ | __$99__{:.price} <small>One-Time Purchase</small>[^xx] |
| __Price__ | __Free__ | __$79__{:.price} <small>One-Time Purchase</small> |
|===============================+=====================+=====================|
| | [__Download__][kit] | [__Buy PRO__][buy]{:.gumroad-button.no-mark data-gumroad-single-product="true"} |
| | [__Download__][kit] | [__Buy PRO__][buy]{:.btn.btn-primary} |
{:.stretch-table.dl-table}

[^21]: Large screens (> 1664px width) only.

[^xx]:
Discounts may apply, check [Gumroad][buy]{:data-gumroad-single-product="true"} for up-to-date pricing.
{:.price-desc}

<script type="module">
document.querySelectorAll('a[href="#_search-input"]').forEach(el => {
if (!el.dataset.done) {
Expand Down
2 changes: 1 addition & 1 deletion _sass/my-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
}

.btn, .gumroad-button {
.btn {
margin: 1rem 0;
}
}
4 changes: 2 additions & 2 deletions download.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ image: /assets/img/blog/hydejack-8.png

Use the the form below to purchase Hydejack PRO:

<div class="gumroad-product-embed" data-gumroad-product-id="nuOluY"><a href="https://gumroad.com/l/nuOluY">Loading…</a></div>
<a class="no-mark" href="https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI"><img src="https://polar.sh/embed/product.svg?organizationId=b750a733-43ac-41dd-acee-c0433b7c3d34&productId=6533b366-39b9-4af1-a7e4-9fbdbd658d2b" alt="Hydejack PRO" /></a>


[blog]: /blog/
Expand All @@ -44,7 +44,7 @@ Use the the form below to purchase Hydejack PRO:
[kit]: https://github.com/hydecorp/hydejack-starter-kit/releases
[src]: https://github.com/hydecorp/hydejack
[gem]: https://rubygems.org/gems/jekyll-theme-hydejack
[buy]: https://gum.co/nuOluY
[buy]: https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI

[gpss]: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fhydejack.com%2Fdocs%2F
[rouge]: http://rouge.jneen.net
Expand Down
4 changes: 2 additions & 2 deletions functions/[[catchall]].ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const onRequestGet: PagesFunction<Env> = async (context) => {
const discountBacklink = `&nbsp;<a href="#fnref:xx" class="reversefootnote" role="doc-backlink">↩︎</a>`;

const transformedResponse = new HTMLRewriter()
.on(".price", {
.on(".gumroad-price", {
async element(element) {
const result = await (_promise ??= getPrices(request, env, context.waitUntil));
if (result != null) {
Expand All @@ -120,7 +120,7 @@ export const onRequestGet: PagesFunction<Env> = async (context) => {
}
}
})
.on(".price-desc", {
.on(".gumroad-price-desc", {
async element(element) {
const result = await (_promise ??= getPrices(request, env, context.waitUntil));
if (result != null) {
Expand Down
2 changes: 1 addition & 1 deletion hydejack/_posts/2018-09-01-introducing-dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ hydejack:
Dark Mode is now available for buyers of the [PRO version][buy].
[buy]: https://app.simplegoods.co/i/NATYVLYT
[buy]: https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI
<script type="module">
const classes = document.body.classList.toString();
Expand Down
5 changes: 2 additions & 3 deletions hydejack/_posts/2020-07-03-introducing-hydejack-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ The Free Version of Hydejack is now availabe on [RubyGems](https://rubygems.org/
and for the first time also on [GitHub Packages](https://github.com/hydecorp/hydejack/packages).
The source code is available on [GitHub](https://github.com/hydecorp/hydejack) as always.

The PRO Version is scheduled to release on July 7th on Gumroad. Pre-Orders are open now:

<div class="gumroad-product-embed" data-gumroad-product-id="nuOluY"><a href="https://gumroad.com/l/nuOluY">Loading…</a></div>
The PRO Version is scheduled to release on July 7th on ~~Gumroad~~. Pre-Orders are open now:

<a class="no-mark" href="https://buy.polar.sh/polar_cl_CczddJM50iZgR_iuUhc_54RcSg1KasTEJtOSqTvlpUI"><img src="https://polar.sh/embed/product.svg?organizationId=b750a733-43ac-41dd-acee-c0433b7c3d34&productId=6533b366-39b9-4af1-a7e4-9fbdbd658d2b" alt="Hydejack PRO" /></a>


[^1]: If you are a fan of the old two-column layout, or don't like modern design tropes such as mega headlines, Hydejack lets you revert these changes on a case-by-case basis via configuration options.
Expand Down

0 comments on commit 51fbf4d

Please sign in to comment.