Skip to content

Commit

Permalink
Updated header and index
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Mar 30, 2019
1 parent 16f55ac commit e496231
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 7 deletions.
2 changes: 2 additions & 0 deletions app/brochure/routes/featured/build.js
Expand Up @@ -45,6 +45,7 @@ function build(callback) {
.slice(1)
.join(" ")
.split(",")[0];
var firstName = name.split(" ")[0];
var bio = words
.slice(1)
.join(" ")
Expand All @@ -62,6 +63,7 @@ function build(callback) {
link: link,
host: host,
name: name,
firstName: firstName,
bio: bio,
favicon: faviconPath + "/" + favicons[host]
});
Expand Down
43 changes: 43 additions & 0 deletions app/brochure/routes/featured/featured.json
Expand Up @@ -3,300 +3,343 @@
"link": "https://www.tillmanjex.info",
"host": "www.tillmanjex.info",
"name": "Tillman Jex",
"firstName": "Tillman",
"bio": " is a composer based in Berlin",
"favicon": "/images/featured/www.tillmanjex.info.png"
},
{
"link": "https://photos.rachelpietraszek.com",
"host": "photos.rachelpietraszek.com",
"name": "Rachel Pietraszek",
"firstName": "Rachel",
"bio": " is a lawyer based in Toronto",
"favicon": "/images/featured/photos.rachelpietraszek.com.jpg"
},
{
"link": "https://blog.andrewjanjigian.com",
"host": "blog.andrewjanjigian.com",
"name": "Andrew Janjigian",
"firstName": "Andrew",
"bio": " is a photographer at Cook’s Illustrated",
"favicon": "/images/featured/blog.andrewjanjigian.com.jpg"
},
{
"link": "https://hannautkin.com",
"host": "hannautkin.com",
"name": "Hanna Utkin",
"firstName": "Hanna",
"bio": " is a filmmaker and producer from New York City",
"favicon": "/images/featured/hannautkin.com.jpg"
},
{
"link": "https://keywords.oxus.net",
"host": "keywords.oxus.net",
"name": "Kerim Friedman",
"firstName": "Kerim",
"bio": " teaches anthropology in Taiwan",
"favicon": "/images/featured/keywords.oxus.net.jpg"
},
{
"link": "https://com.johnbeeler.com",
"host": "com.johnbeeler.com",
"name": "John Beeler",
"firstName": "John",
"bio": " is the label director at Asthmatic Kitty Records",
"favicon": "/images/featured/com.johnbeeler.com.jpg"
},
{
"link": "https://bitdepth.org",
"host": "bitdepth.org",
"name": "Chris Campbell",
"firstName": "Chris",
"bio": " is a filmmaker based in Nova Scotia",
"favicon": "/images/featured/bitdepth.org.jpg"
},
{
"link": "https://www.matthewbattles.org",
"host": "www.matthewbattles.org",
"name": "Matthew Battles",
"firstName": "Matthew",
"bio": " directs metaLAB at Harvard",
"favicon": "/images/featured/www.matthewbattles.org.jpg"
},
{
"link": "https://www.rebeccatron.com",
"host": "www.rebeccatron.com",
"name": "Rebecca Kukshtel",
"firstName": "Rebecca",
"bio": " is an engineer based in New York City",
"favicon": "/images/featured/www.rebeccatron.com.jpg"
},
{
"link": "https://blog.aurynn.com",
"host": "blog.aurynn.com",
"name": "Aurynn Shaw",
"firstName": "Aurynn",
"bio": " is a writer and engineer from New Zealand",
"favicon": "/images/featured/blog.aurynn.com.jpg"
},
{
"link": "https://www.skincarriedaway.com",
"host": "www.skincarriedaway.com",
"name": "Tiffany Cecilia",
"firstName": "Tiffany",
"bio": " writes about skincare from San Francisco",
"favicon": "/images/featured/www.skincarriedaway.com.jpg"
},
{
"link": "https://www.kristianhjelle.com",
"host": "www.kristianhjelle.com",
"name": "Kristian Hjelle",
"firstName": "Kristian",
"bio": " is a designer and partner at Bakken & Bæck",
"favicon": "/images/featured/www.kristianhjelle.com.jpg"
},
{
"link": "https://www.alexgibson.nyc",
"host": "www.alexgibson.nyc",
"name": "Alexander Gibson",
"firstName": "Alexander",
"bio": " is an artist from New York City",
"favicon": "/images/featured/www.alexgibson.nyc.png"
},
{
"link": "https://www.jacobyyoung.com/about",
"host": "www.jacobyyoung.com",
"name": "Jacoby Young",
"firstName": "Jacoby",
"bio": " works at Kapālama Elementary School in Hawaii",
"favicon": "/images/featured/www.jacobyyoung.com.png"
},
{
"link": "https://john.pavlusoffice.com",
"host": "john.pavlusoffice.com",
"name": "John Pavlus",
"firstName": "John",
"bio": " is a writer and filmmaker based in Portland, Oregon",
"favicon": "/images/featured/john.pavlusoffice.com.jpg"
},
{
"link": "https://iiiiiiiii.in",
"host": "iiiiiiiii.in",
"name": "Ishtaarth Dalmia",
"firstName": "Ishtaarth",
"bio": " writes about internet culture from Bengaluru",
"favicon": "/images/featured/iiiiiiiii.in.jpg"
},
{
"link": "https://kiefer.design",
"host": "kiefer.design",
"name": "Kiefer Sutherland",
"firstName": "Kiefer",
"bio": " is a freelance designer and art director",
"favicon": "/images/featured/kiefer.design.jpg"
},
{
"link": "https://www.failuretolerated.com",
"host": "www.failuretolerated.com",
"name": "Sean McCoy",
"firstName": "Sean",
"bio": " is a game designer from Dallas Texas",
"favicon": "/images/featured/www.failuretolerated.com.jpg"
},
{
"link": "https://mrfris.by",
"host": "mrfris.by",
"name": "Stuart Frisby",
"firstName": "Stuart",
"bio": " is the Director of Design at Booking.com",
"favicon": "/images/featured/mrfris.by.jpg"
},
{
"link": "https://www.querlin.com",
"host": "www.querlin.com",
"name": "Querlin Ricci",
"firstName": "Querlin",
"bio": " is a designer based in Atlanta",
"favicon": "/images/featured/www.querlin.com.jpg"
},
{
"link": "https://eli.li",
"host": "eli.li",
"name": "Eli Mellen",
"firstName": "Eli",
"bio": " is a web developer based in Portland Maine",
"favicon": "/images/featured/eli.li.jpg"
},
{
"link": "https://rile.yt",
"host": "rile.yt",
"name": "Riley Tomasek",
"firstName": "Riley",
"bio": " is a software engineer based in New York City",
"favicon": "/images/featured/rile.yt.png"
},
{
"link": "https://juicenews.com",
"host": "juicenews.com",
"name": "Jan van Iperen",
"firstName": "Jan",
"bio": " analyzes the juice industry",
"favicon": "/images/featured/juicenews.com.jpg"
},
{
"link": "https://paul.af",
"host": "paul.af",
"name": "Paul Esch-Laurent",
"firstName": "Paul",
"bio": " is a software engineer from Michigan",
"favicon": "/images/featured/paul.af.jpg"
},
{
"link": "https://diary.craigwhite.nyc",
"host": "diary.craigwhite.nyc",
"name": "Craig White",
"firstName": "Craig",
"bio": " is a visual artist based in Harlem New York",
"favicon": "/images/featured/diary.craigwhite.nyc.jpg"
},
{
"link": "https://shashwati.com",
"host": "shashwati.com",
"name": "Shashwati Talukdar",
"firstName": "Shashwati",
"bio": " is an independent filmmaker",
"favicon": "/images/featured/shashwati.com.jpg"
},
{
"link": "https://shawn.medero.net",
"host": "shawn.medero.net",
"name": "Shawn Medero",
"firstName": "Shawn",
"bio": " is a software engineer based in Claremont",
"favicon": "/images/featured/shawn.medero.net.jpg"
},
{
"link": "https://mariusmasalar.me",
"host": "mariusmasalar.me",
"name": "Marius Masalar",
"firstName": "Marius",
"bio": " is a photographer and journalist based in Toronto",
"favicon": "/images/featured/mariusmasalar.me.jpg"
},
{
"link": "https://www.thingelstad.com",
"host": "www.thingelstad.com",
"name": "Jamie Thingelstad",
"firstName": "Jamie",
"bio": " is CTO at SPS Commerce in Minneapolis",
"favicon": "/images/featured/www.thingelstad.com.jpg"
},
{
"link": "https://www.ishshah.me",
"host": "www.ishshah.me",
"name": "Ish Shah",
"firstName": "Ish",
"bio": " is an engineer based in San Francisco",
"favicon": "/images/featured/www.ishshah.me.jpg"
},
{
"link": "https://www.chrbutler.com",
"host": "www.chrbutler.com",
"name": "Chris Butler",
"firstName": "Chris",
"bio": " is a designer based in Chapel Hill",
"favicon": "/images/featured/www.chrbutler.com.png"
},
{
"link": "https://tyler.vc",
"host": "tyler.vc",
"name": "Tyler Menezes",
"firstName": "Tyler",
"bio": " is a programmer based in Seattle",
"favicon": "/images/featured/tyler.vc.jpg"
},
{
"link": "https://benlog.net",
"host": "benlog.net",
"name": "Ben Greenberg",
"firstName": "Ben",
"bio": " is an investigative reporter based in Boston",
"favicon": "/images/featured/benlog.net.jpg"
},
{
"link": "https://www.enzel.io",
"host": "www.enzel.io",
"name": "David Enzel",
"firstName": "David",
"bio": " is a lawyer based in Washington D.C.",
"favicon": "/images/featured/www.enzel.io.jpg"
},
{
"link": "https://journal.cheribaker.com",
"host": "journal.cheribaker.com",
"name": "Cheri Baker",
"firstName": "Cheri",
"bio": " is a writer based in Seattle",
"favicon": "/images/featured/journal.cheribaker.com.jpg"
},
{
"link": "https://blog.amitgawande.com",
"host": "blog.amitgawande.com",
"name": "Amit Gawande",
"firstName": "Amit",
"bio": " is software developer based in Pune India",
"favicon": "/images/featured/blog.amitgawande.com.jpg"
},
{
"link": "https://www.crossingthethreshold.net",
"host": "www.crossingthethreshold.net",
"name": "David Johnson",
"firstName": "David",
"bio": " is a life coach in Maui Hawaii",
"favicon": "/images/featured/www.crossingthethreshold.net.jpg"
},
{
"link": "https://www.inthemargins.ca",
"host": "www.inthemargins.ca",
"name": "Sameer Vasta",
"firstName": "Sameer",
"bio": " writes letters and takes long walks in Ontario, Canada",
"favicon": "/images/featured/www.inthemargins.ca.jpg"
},
{
"link": "https://www.jmablog.com",
"host": "www.jmablog.com",
"name": "James Adams",
"firstName": "James",
"bio": " is a sports therapist based in London",
"favicon": "/images/featured/www.jmablog.com.jpg"
},
{
"link": "https://www.seanmcdevitt.com",
"host": "www.seanmcdevitt.com",
"name": "Sean McDevitt",
"firstName": "Sean",
"bio": " is a writer from Illinois",
"favicon": "/images/featured/www.seanmcdevitt.com.jpg"
},
{
"link": "https://afc.letterspace.org",
"host": "afc.letterspace.org",
"name": "Robert van Vliet",
"firstName": "Robert",
"bio": " is a writer in Minneapolis",
"favicon": "/images/featured/afc.letterspace.org.jpg"
},
{
"link": "https://discombobulated.co.nz",
"host": "discombobulated.co.nz",
"name": "Jessica Nickelsen",
"firstName": "Jessica",
"bio": " is a writer from New Zealand",
"favicon": "/images/featured/discombobulated.co.nz.jpg"
},
{
"link": "https://blog.tomwhite.io",
"host": "blog.tomwhite.io",
"name": "Thomas White",
"firstName": "Thomas",
"bio": " is a biologist at the University of Sydney",
"favicon": "/images/featured/blog.tomwhite.io.jpg"
}
Expand Down
6 changes: 5 additions & 1 deletion app/brochure/routes/index.js
Expand Up @@ -41,10 +41,14 @@ brochure.use(function(req, res, next) {
res.locals.base = "";
res.locals.selected = {};

req.originalUrl.split('/').forEach(function(slug){
var slugs = req.originalUrl.split('/');

slugs.forEach(function(slug, i){
res.locals.selected[slug] = 'selected';
});

res.locals.selected[slugs[slugs.length - 1] + 'Index'] = 'selected';

// Handle index page of site.
if (req.originalUrl === '/') res.locals.selected.index = 'selected';

Expand Down
2 changes: 1 addition & 1 deletion app/brochure/views/index.html
Expand Up @@ -38,7 +38,7 @@

{{#featured}}
<a target="_blank" rel="noopener" href="{{{link}}}"> <b> <img style="width:16px;height:16px;" src="{{{favicon}}}">
{{name}}</b></a> {{bio}}. {{name}} uses the <a href="/templates/{{templateLower}}">Default</a> template.<br>
{{name}}</b></a> {{bio}}. {{firstName}} uses the <a href="/templates/{{templateLower}}">Default</a> template.<br>
{{/featured}}

</div>
Expand Down

0 comments on commit e496231

Please sign in to comment.