Switch to using TOML for the list of links

This commit is contained in:
NeilBrommer 2018-06-12 13:19:59 -07:00
parent 2d8636d167
commit 03c3bcf193
4 changed files with 57 additions and 60 deletions

View file

@ -14,4 +14,4 @@ draft = false
</p> </p>
</div> </div>
{{< linkCardList "data/links.json" >}} {{< linkCardList >}}

View file

@ -1,56 +0,0 @@
[
{
"title": "Ok→Cancel versus Cancel→Ok",
"description": "A look at button ordering in GUIs from the Factorio blog",
"URL": "https://www.factorio.com/blog/post/fff-246"
},
{
"title": "Principles of Lighting and Rendering with John Carmack at QuakeCon 2013",
"description": "John Carmack talking about various 3D rendering concepts.",
"URL": "https://www.youtube.com/watch?v=IyUgHPs86XM"
},
{
"title": "Why the Flash Crash Really Matters",
"description": "An article on the flash crash of 2010 and the <a href=\"https://en.wikipedia.org/wiki/High-frequency_trading\" target=\"_blank\">high-frequency trading</a> programs that caused it.",
"URL": "http://nautil.us/issue/23/dominoes/why-the-flash-crash-really-matters"
},
{
"title": "Algorithms and Bias: Q. and A. With Cynthia Dwork",
"description": "An interview with Cynthia Dwork of Microsoft Research on how algorithms show bias and where those biases come from.",
"URL": "https://www.nytimes.com/2015/08/11/upshot/algorithms-and-bias-q-and-a-with-cynthia-dwork.html?abt=0002&abg=1"
},
{
"title": "Origin of Quake3s Fast InvSqrt() ",
"description": "An article on the inverse square root function in Quake 3 looking into how it works and its history.",
"URL": "https://www.beyond3d.com/content/articles/8/"
},
{
"title": "Real Time Rendering: An Overview for Artists",
"description": "A look at various aspects of real time 3D rendering, especially in video games.",
"URL": "https://jesshiderue4.wordpress.com/real-time-rendering-an-overview-for-artists/"
},
{
"title": "Entering the Quantum Era—How Firefox got fast again and where its going to get faster",
"description": "An article that looks at various architectural changes to Firefox in version 57 and changes planned for future versions.",
"URL": "https://hacks.mozilla.org/2017/11/entering-the-quantum-era-how-firefox-got-fast-again-and-where-its-going-to-get-faster/"
},
{
"title": "The whole web at maximum FPS: How WebRender gets rid of jank ",
"description": " An article that gives a high level description how Firefoxs new rendering engine works.",
"URL": "https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/"
},
{
"title": "Inside a super fast CSS engine: Quantum CSS (aka Stylo)",
"description": "A high level overview of how Firefoxs new CSS engine Stylo works.",
"URL": "https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/"
},
{
"title": "The Judges Code",
"description": "An article on Judge William Alsup, who was the judge for the first <a href=\"https://en.wikipedia.org/wiki/Oracle_America,_Inc._v._Google,_Inc.\" target=\"_blank\"> Oracle v. Google</a> case over whether an API can be copywritten, and is now the judge for the <a href=\"http://www.businessinsider.com/google-waymo-v-uber-case-explained-2017-5\" target=\"_blank\">Waymo (Google) v. Uber</a>."
},
{
"title": "Linkedin Dark Patterns",
"description": "An in depth blog post detailing how LinkedIn used dark patterns to trick users.",
"URL": "https://schlosser.io/writing/linkedin-dark-patterns/"
}
]

54
data/links.toml Normal file
View file

@ -0,0 +1,54 @@
[[link]]
title = "Ok→Cancel versus Cancel→Ok"
description = "A look at button ordering in GUIs from the Factorio blog"
URL = "https://www.factorio.com/blog/post/fff-246"
[[link]]
title = "Principles of Lighting and Rendering with John Carmack at QuakeCon 2013"
description = "John Carmack talking about various 3D rendering concepts."
URL = "https://www.youtube.com/watch?v=IyUgHPs86XM"
[[link]]
title = "Why the Flash Crash Really Matters"
description = "An article on the flash crash of 2010 and the <a href=\"https://en.wikipedia.org/wiki/High-frequency_trading\" target=\"_blank\">high-frequency trading</a> programs that caused it."
URL = "http://nautil.us/issue/23/dominoes/why-the-flash-crash-really-matters"
[[link]]
title = "Algorithms and Bias: Q. and A. With Cynthia Dwork"
description = "An interview with Cynthia Dwork of Microsoft Research on how algorithms show bias and where those biases come from."
URL = "https://www.nytimes.com/2015/08/11/upshot/algorithms-and-bias-q-and-a-with-cynthia-dwork.html?abt=0002&abg=1"
[[link]]
title = "Origin of Quake3s Fast InvSqrt()"
description = "An article on the inverse square root function in Quake 3 looking into how it works and its history."
URL = "https://www.beyond3d.com/content/articles/8/"
[[link]]
title = "Real Time Rendering: An Overview for Artists"
description = "A look at various aspects of real time 3D rendering, especially in video games."
URL = "https://jesshiderue4.wordpress.com/real-time-rendering-an-overview-for-artists/"
[[link]]
title = "Entering the Quantum Era—How Firefox got fast again and where its going to get faster"
description = "An article that looks at various architectural changes to Firefox in version 57 and changes planned for future versions."
URL = "https://hacks.mozilla.org/2017/11/entering-the-quantum-era-how-firefox-got-fast-again-and-where-its-going-to-get-faster/"
[[link]]
title = "The whole web at maximum FPS: How WebRender gets rid of jank "
description = " An article that gives a high level description how Firefoxs new rendering engine works."
URL = "https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/"
[[link]]
title = "Inside a super fast CSS engine: Quantum CSS (aka Stylo)"
description = "A high level overview of how Firefoxs new CSS engine Stylo works."
URL = "https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/"
[[link]]
title = "The Judges Code"
description = "An article on Judge William Alsup, who was the judge for the first <a href=\"https://en.wikipedia.org/wiki/Oracle_America,_Inc._v._Google,_Inc.\" target=\"_blank\"> Oracle v. Google</a> case over whether an API can be copywritten, and is now the judge for the <a href=\"http://www.businessinsider.com/google-waymo-v-uber-case-explained-2017-5\" target=\"_blank\">Waymo (Google) v. Uber</a>."
URL = "https://www.theverge.com/2017/10/19/16503076/oracle-vs-google-judge-william-alsup-interview-waymo-uber"
[[link]]
title = "LinkedIn Dark Patterns"
description = "An in depth blog post detailing how LinkedIn used dark patterns to trick users."
URL = "https://schlosser.io/writing/linkedin-dark-patterns/"

View file

@ -1,8 +1,7 @@
{{ with .Get 0 }} {{ with $.Site.Data.links }}
{{ $cardData := getJSON . }}
<div class="card-columns"> <div class="card-columns">
{{ range $cardData }} {{ range .link }}
{{ partial "linkCard" . }} {{ partial "linkCard" . }}
{{ end }} {{ end }}
</div> </div>