diff --git a/docs/index.html b/docs/index.html index 422d8e18..b4e4d1ff 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,7 @@ - + @@ -84,7 +84,6 @@ -
@@ -108,7 +107,7 @@ class="sclnk-twt" shape="rect" coords="0, 40, 19, 55" - href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading%20%22A%20Primer%20on%20Bezier%20Curves%22%20by%20@TheRealPomax%20over%20on%20https://pomax.github.io/bezierinfo" + href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading “A Primer on Bezier Curves” by @TheRealPomax over on https://pomax.github.io/bezierinfo" alt="tweet your read" title="tweet your read" /> diff --git a/docs/ja-JP/index.html b/docs/ja-JP/index.html index 94770ad8..6c0fc144 100644 --- a/docs/ja-JP/index.html +++ b/docs/ja-JP/index.html @@ -33,7 +33,7 @@ - + @@ -86,7 +86,6 @@
-
@@ -110,7 +109,7 @@ class="sclnk-twt" shape="rect" coords="0, 40, 19, 55" - href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading%20%22A%20Primer%20on%20Bezier%20Curves%22%20by%20@TheRealPomax%20over%20on%20https://pomax.github.io/bezierinfo" + href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading “A Primer on Bezier Curves” by @TheRealPomax over on https://pomax.github.io/bezierinfo" alt="tweet your read" title="tweet your read" /> diff --git a/docs/js/site/social-updater.js b/docs/js/site/social-updater.js index d69b7168..d8d43641 100644 --- a/docs/js/site/social-updater.js +++ b/docs/js/site/social-updater.js @@ -45,7 +45,7 @@ class Tracker { } get_twt() { - var text = encodeURIComponent(`Reading "${this.sectionTitle}" by @TheRealPomax over on `) + this.url; + var text = encodeURIComponent(`Reading “${this.sectionTitle}” by @TheRealPomax over on `) + this.url; return `https://twitter.com/intent/tweet?original_referer=${this.url}&text=${text}&hashtags=bezier,curves,maths`; } } diff --git a/docs/news/2020-09-18.html b/docs/news/2020-09-18.html index 1a07bcaa..a592f73d 100644 --- a/docs/news/2020-09-18.html +++ b/docs/news/2020-09-18.html @@ -27,7 +27,7 @@ - + @@ -83,6 +83,37 @@
+ +
+ + + submit to reddit + submit to hacker news + tweet your read + +
+

Once upon a time, I needed to draw some Bezier curves because I was trying to create a Japanese kanji composition system that turned strokes into outlines, and that required knowing how to offset Bezier curves and... at the time (2011, time flies) there was no good single source of diff --git a/docs/zh-CN/index.html b/docs/zh-CN/index.html index 3a0a8391..f781937d 100644 --- a/docs/zh-CN/index.html +++ b/docs/zh-CN/index.html @@ -33,7 +33,7 @@ - + @@ -86,7 +86,6 @@

-
@@ -110,7 +109,7 @@ class="sclnk-twt" shape="rect" coords="0, 40, 19, 55" - href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading%20%22A%20Primer%20on%20Bezier%20Curves%22%20by%20@TheRealPomax%20over%20on%20https://pomax.github.io/bezierinfo" + href="https://twitter.com/intent/tweet?hashtags=bezier,curves,maths&original_referer=https://pomax.github.io/bezierinfo&text=Reading “A Primer on Bezier Curves” by @TheRealPomax over on https://pomax.github.io/bezierinfo" alt="tweet your read" title="tweet your read" /> diff --git a/src/html/fragments/share-post.html b/src/html/fragments/share-post.html new file mode 100644 index 00000000..c9502394 --- /dev/null +++ b/src/html/fragments/share-post.html @@ -0,0 +1,15 @@ + +
+ + + submit to reddit + submit to hacker news + tweet your read + +
diff --git a/src/html/fragments/share.html b/src/html/fragments/share.html index f09fe8b1..d3ecc08a 100644 --- a/src/html/fragments/share.html +++ b/src/html/fragments/share.html @@ -1,4 +1,3 @@ -
@@ -9,7 +8,7 @@ href="https://news.ycombinator.com/submitlink?u=https://pomax.github.io/bezierinfo&t=A Primer on Bézier Curves" alt="submit to hacker news" title="submit to hacker news"> tweet your read
diff --git a/src/html/post.template.html b/src/html/post.template.html index 23bff743..d5552878 100644 --- a/src/html/post.template.html +++ b/src/html/post.template.html @@ -11,8 +11,11 @@ {% block share %}{% endblock %} -{% block main %}{{ post }}{% endblock %} +{% block main %} + {% include "./fragments/share-post.html" %} + {{ post }} +{% endblock %} {% block footer %} This post is a news entry for the Primer on Bézier Curves -{% endblock%} \ No newline at end of file +{% endblock %} \ No newline at end of file