1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-27 18:20:24 +02:00

share news posts

This commit is contained in:
Pomax
2020-09-22 04:58:55 -07:00
parent 0ad4207ac5
commit e7844eae19
8 changed files with 60 additions and 15 deletions

View File

@@ -31,7 +31,7 @@
<meta property="og:locale" content="en-GB" /> <meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-20T21:20:31+00:00" /> <meta property="og:updated_time" content="2020-09-22T11:58:20+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />
@@ -84,7 +84,6 @@
</map> </map>
</div> </div>
<!-- Because people probably want to share this article -->
<div class="notforprint scl"> <div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" /> <img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap"> <map name="rhtimap">
@@ -108,7 +107,7 @@
class="sclnk-twt" class="sclnk-twt"
shape="rect" shape="rect"
coords="0, 40, 19, 55" 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" alt="tweet your read"
title="tweet your read" title="tweet your read"
/> />

View File

@@ -33,7 +33,7 @@
<meta property="og:locale" content="ja-JP" /> <meta property="og:locale" content="ja-JP" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-20T21:20:31+00:00" /> <meta property="og:updated_time" content="2020-09-22T11:58:20+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />
@@ -86,7 +86,6 @@
</map> </map>
</div> </div>
<!-- Because people probably want to share this article -->
<div class="notforprint scl"> <div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" /> <img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap"> <map name="rhtimap">
@@ -110,7 +109,7 @@
class="sclnk-twt" class="sclnk-twt"
shape="rect" shape="rect"
coords="0, 40, 19, 55" 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" alt="tweet your read"
title="tweet your read" title="tweet your read"
/> />

View File

@@ -45,7 +45,7 @@ class Tracker {
} }
get_twt() { 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`; return `https://twitter.com/intent/tweet?original_referer=${this.url}&text=${text}&hashtags=bezier,curves,maths`;
} }
} }

View File

@@ -27,7 +27,7 @@
<meta property="og:locale" content="en-GB" /> <meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2020-09-18T12:00:00+00:00" /> <meta property="og:published_time" content="2020-09-18T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-20T21:20:31+00:00" /> <meta property="og:updated_time" content="2020-09-22T11:58:20+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />
@@ -83,6 +83,37 @@
</header> </header>
<main> <main>
<!-- Because people probably want to share this article -->
<div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap">
<area
class="sclnk-rdt"
shape="rect"
coords="0, 0, 19, 15"
href="https://www.reddit.com/submit?url=https://pomax.github.io/bezierinfo/news/2020-09-18.html&title==A Primer on Bézier Curves - Rewriting the tech stack&text=An update about the Primer on Bézier curves."
alt="submit to reddit"
title="submit to reddit"
/>
<area
class="sclnk-hn"
shape="rect"
coords="0, 20, 19, 35"
href="https://news.ycombinator.com/submitlink?u=https://pomax.github.io/bezierinfo/news/2020-09-18.html&t=A Primer on Bézier Curves - Rewriting the tech stack"
alt="submit to hacker news"
title="submit to hacker news"
/>
<area
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 “Rewriting the tech stack” by @TheRealPomax over on https://pomax.github.io/bezierinfo/news/2020-09-18.html"
alt="tweet your read"
title="tweet your read"
/>
</map>
</div>
<p> <p>
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 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 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

View File

@@ -33,7 +33,7 @@
<meta property="og:locale" content="zh-CN" /> <meta property="og:locale" content="zh-CN" />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" /> <meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2020-09-20T21:20:31+00:00" /> <meta property="og:updated_time" content="2020-09-22T11:58:20+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" /> <meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" /> <meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" /> <meta property="og:tag" content="Bézier Curves" />
@@ -86,7 +86,6 @@
</map> </map>
</div> </div>
<!-- Because people probably want to share this article -->
<div class="notforprint scl"> <div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" /> <img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap"> <map name="rhtimap">
@@ -110,7 +109,7 @@
class="sclnk-twt" class="sclnk-twt"
shape="rect" shape="rect"
coords="0, 40, 19, 55" 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" alt="tweet your read"
title="tweet your read" title="tweet your read"
/> />

View File

@@ -0,0 +1,15 @@
<!-- Because people probably want to share this article -->
<div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap">
<area class="sclnk-rdt" shape="rect" coords="0, 0, 19, 15"
href="https://www.reddit.com/submit?url=https://pomax.github.io/bezierinfo/news/{{ filename }}&title==A Primer on Bézier Curves - {{ title }}&text=An update about the Primer on Bézier curves."
alt="submit to reddit" title="submit to reddit">
<area class="sclnk-hn" shape="rect" coords="0, 20, 19, 35"
href="https://news.ycombinator.com/submitlink?u=https://pomax.github.io/bezierinfo/news/{{ filename }}&t=A Primer on Bézier Curves - {{ title }}"
alt="submit to hacker news" title="submit to hacker news">
<area 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 “{{ title }}” by @TheRealPomax over on https://pomax.github.io/bezierinfo/news/{{ filename }}"
alt="tweet your read" title="tweet your read">
</map>
</div>

View File

@@ -1,4 +1,3 @@
<!-- Because people probably want to share this article -->
<div class="notforprint scl"> <div class="notforprint scl">
<img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" /> <img src="images/icons.gif" usemap="#rhtimap" title="Share this on social media" />
<map name="rhtimap"> <map name="rhtimap">
@@ -9,7 +8,7 @@
href="https://news.ycombinator.com/submitlink?u=https://pomax.github.io/bezierinfo&t=A Primer on Bézier Curves" 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"> alt="submit to hacker news" title="submit to hacker news">
<area class="sclnk-twt" shape="rect" coords="0, 40, 19, 55" <area 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"> alt="tweet your read" title="tweet your read">
</map> </map>
</div> </div>

View File

@@ -11,8 +11,11 @@
{% block share %}{% endblock %} {% block share %}{% endblock %}
{% block main %}{{ post }}{% endblock %} {% block main %}
{% include "./fragments/share-post.html" %}
{{ post }}
{% endblock %}
{% block footer %} {% block footer %}
This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a> This post is a news entry for the <a href="https://pomax.github.io/bezierinfo/">Primer on Bézier Curves</a>
{% endblock%} {% endblock %}