Skip to content

Latest commit

 

History

History
84 lines (69 loc) · 2.6 KB

quotes.md

File metadata and controls

84 lines (69 loc) · 2.6 KB
layout title description image byline_extra byline
default
Nuclear-friendly statements of famous people
These famous people have said positive things about nuclear energy
/img/quotes/arnold.jpg
Contributions from many on github
true

On this page we have a collection of statements made by relatively famous people about nuclear energy.


{% comment %} For sorting, we have lots of options, but we're just going to start by sorting by the person with the most recent quote. If the person has multiple quotes, all of them will be shown alongside the most recent one. This is a PITA in Liquid templates but it is doable, as you can see below... {% endcomment %}

{% capture datesandpeople %} {%- for person in site.data.quotes -%} {%- for quote in person.quotes -%} {{ quote.date }} {{person.name}} , {%-endfor-%} {%-endfor-%} {% endcapture%}

{% assign datesandpeople = datesandpeople | split: "," | sort |reverse %}

{% comment %} Now cut the sorted dates off the list (hacky) {% endcomment %} {% capture people %} {%-for dp in datesandpeople-%} {{ dp | slice: 10,80 | strip}}, {%-endfor-%} {% endcapture %}

{% assign names = people | split: "," | uniq %} {% for name in names %} {% assign person = site.data.quotes | where: "name", name | first%} {% assign quotes = person.quotes %}

{{ person.name }} §

{%- if person.title %}
{{ person.title }}
{%- endif -%} {%- if person.img -%} Image of {{person.name}} {%- endif %}

{% for quote in quotes -%}

{{ quote.quote}}

[{%- if quote.venue -%}{{quote.venue}}, {% endif %}{{ quote.date }}]({{quote.url}})

{% endfor %} {% endfor %}


This page is open source. You can update this page or point us to new quotes by making an [issue](https://github.com/whatisnuclear/website/issues) or a PR on [this file](https://github.com/whatisnuclear/website/blob/master/_data/quotes.yml) on our GitHub, or just by [contacting us]({% link contact.md %}). (We may skip some to keep the signal to noise high).

Related collections