in

Easy Pesto Potato Salad

Pesto potato salad in white ceramic bowl with white linen on side, parsley sprinkled around, on beige and white surface


Welcome to the easiest pesto potato salad ever! Crispy roasted potatoes and onions come together with plenty of your favorite pesto, plus a few fresh herbs for good measure. Serve it as a side dish to your favorite main, whether it’s summer barbecue or for any season.

Pesto potato salad in white ceramic bowl with white linen on side, parsley sprinkled around, on beige and white surface

This simple pesto potato salad is nothing short of delicious, and it is READY for all your upcoming summer barbecues! Whether you eat it warm, room temp, or cold, this potato salad is sure to become a new side dish favorite.

[feast_advanced_jump_to]

Ingredients

Below are all the ingredients you need to make this delicious pesto potato salad.

Pesto, olive oil, salt, pepper, potatoes, parsley, chives, and red onion on light beige and white surface
  • Potatoes – Potatoes are nutrient-packed, with a ton of protein and fiber to fill you up. I used the potatoes we got in our first CSA share of the season (yay!), which were a smaller, brown potato with a texture similar to red potatoes. Red potatoes, Yukon golds, fingerling, or any small potato variety will work well.
  • Red onion – Once roasted, red onion will add an element of sweetness to the potato salad.
  • Pesto – Use your favorite store bought pesto, or make your own pesto! I used my homemade vegan parsley walnut pesto recipe, but I subbed in a little bit of basil and fresh chives to use up some herbs.
  • Extra virgin olive oil – For roasting the potatoes and onions.
  • Salt and pepper – Also for roasting the potatoes and onions.
  • Fresh parsley and chives – For tossing in at the end to add fresh flavor.

Instructions

Okay, so here’s the long and short of making this potato salad: you’ll roast the potatoes and onions, then toss in pesto and fresh herbs. Boom. See the exact steps below:

Potatoes and red onions diced large and coated in olive oil, salt, and pepper, on baking sheet

Preheat your oven to 400 degrees. Toss large-diced potatoes and red onion in olive oil, salt, and pepper. Spread evenly onto a baking sheet.

Roasted potatoes and red onions on baking sheet with wooden spoon scooping some potatoes

Roast the potatoes and onions for 30 minutes, then broil for 2 minutes to crisp up the potatoes. Remove from the oven and allow to cool for 5 minutes.

Pesto potato salad ingredients in white ceramic bowl

Transfer the potatoes and onions to a large bowl, and add pesto, parsley, and chives.

Pesto potato salad in white ceramic bowl with white linen on side, parsley sprinkled around, on beige and white surface

Toss to coat evenly, then taste and add more pesto, herbs, and/or salt as needed.

Hint: Line your baking sheet with parchment paper or a silicone baking mat to keep potatoes from sticking! Even with a good coating of olive oil, my potatoes stuck in some spots on my sheet pan (it’s getting worn out). An extra nonstick layer always helps!

Pesto potato salad in ceramic white serving bowl next to potato salad scooped in copper spoon on small white plate, next to small white bowl of pesto

Substitutions & Variations

Try the following substitutions and variations to make this recipe work for you!

  • Vegan – To make this pesto potato salad vegan, make sure you use a vegan pesto. My parsley pesto recipe is vegan if you want to make your own, otherwise you can use your favorite store bought brand!
  • Reheat – While this recipe is intended to be a potato salad… we kinda-sorta love to crisp it up in our air fryer as leftovers! It’s less potato salad-y and a lot more like pesto roasted potatoes, but gosh is it good.
  • Breakfast wrap filling – If you reheat the potato salad on the stove, in the oven, or in an air fryer, those crisped potatoes are delicious in a breakfast wrap with eggs.
  • Plant-based protein – Add some drained chickpeas (toss in olive oil and salt) to the roasting pan for the last few minutes of roasting the potatoes and eggs. They will cook slightly (but not overly so). Toss the lightly toasted chickpeas in with the potato salad for a plant-based protein boost!
  • Hard-boiled eggs – Roughly chop 3-4 hard-boiled eggs and toss in them with the potato salad for extra richness and protein. I’m completed obsessed with using my Ninja Foodi to make hard-boiled eggs.
  • Bacon – Need I elaborate?
Pesto potato salad scoop on large copper spoon on small white plate, on beige and white surface

Storage

Store pesto potato salad in an airtight container in the fridge for up to a week.

You could freeze this potato salad in an airtight container for up to three months, but the texture of the potatoes and pesto is best when fresh, so I recommend enjoying this potato salad without freezing it.

Pesto Potato Salad FAQs

Can pesto potato salad be made vegan?

Yes! I use a homemade vegan pesto (so easy to make at home), and you could also use a store bought vegan pesto if desired. All the rest of the ingredients are from plants.

How do I serve pesto potato salad?

I love this pesto potato salad most at room temp, but honestly it’s delicious warm or cold too. It’s easily served as a side dish (double or triple the recipe for more people), but we’ve also eaten the leftovers in wraps or with eggs.

Print

.tasty-recipes-print-button{background-color:#667;border:none;display:inline-block;padding:.5em 1em;text-decoration:none}body:not(.tasty-recipes-print-view) .tasty-recipes-print-button.tasty-recipes-print-above-card{color:#fff;display:none}body:not(.tasty-recipes-print-view) .tasty-recipes-print-button.tasty-recipes-print-above-card:hover{background-color:#b2b2bb;color:#fff;display:inline-block;padding:.5em 1em;text-decoration:none}.tasty-recipes-image-button-container{display:flex;flex-direction:column;flex-wrap:wrap;float:right;margin-left:10px}body.tasty-recipes-print-view .tasty-recipes-buttons{display:none}.tasty-recipes-image-button-container .tasty-recipes-buttons{margin-bottom:10px;margin-top:10px}.tasty-recipes-image-button-container .tasty-recipes-button-wrap{box-sizing:border-box;margin-bottom:10px}.tasty-recipes-image-button-container .tasty-recipes-buttons a{background-color:#f9f9f9;border:1px solid #aaa;border-radius:0;color:#aaa;display:block;font-size:16px;font-weight:700;line-height:16px;margin-top:0;padding:8px;text-align:center;text-decoration:none;text-transform:uppercase}.tasty-recipes-image-button-container .tasty-recipes-buttons .button:hover{background-color:#aaa;border:1px solid #aaa;color:#fff;opacity:1}.tasty-recipes-image-button-container .tasty-recipes-buttons a:hover{background-color:#979599;text-decoration:none}.tasty-recipes-image-button-container .tasty-recipes-buttons svg{display:none}.tasty-recipes-yield-scale{border:1px solid #979599;border-radius:2px;color:#979599;font-size:.7rem;margin-left:3px;padding:0 4px}.tasty-recipes-units-scale-container{display:flex;flex-wrap:wrap}.tasty-recipes-convert-container{padding:0 1em 1em 0}.tasty-recipes-convert-container .tasty-recipes-convert-label{align-self:center;color:#979599;font-size:.6rem;text-transform:uppercase}.tasty-recipes-convert-container button{background:transparent;border:1px solid #353547;border-radius:2px;color:#353547;letter-spacing:0;margin-left:5px;min-width:34px;padding:2px 4px;text-align:center}.tasty-recipes-convert-container button.tasty-recipes-convert-button-active{background-color:#000;border-color:#000;color:#fff}.tasty-recipes-convert-container button:focus{outline:none}.tasty-recipes-scale-container{display:flex;padding:0 0 1em}.tasty-recipes-scale-container .tasty-recipes-scale-label{align-self:center;color:#979599;font-size:.6rem;text-transform:uppercase}.tasty-recipes-scale-container button{background:transparent;border:1px solid #353547;border-radius:2px;color:#353547;letter-spacing:0;margin-left:5px;min-width:34px;padding:2px 4px}.tasty-recipes-scale-container button.tasty-recipes-scale-button-active{background-color:#000;border-color:#000;color:#fff}.tasty-recipes-scale-container button:focus{outline:none}.tasty-recipes-ingredients-header{margin:1em 0}@media only screen and (min-width:520px){.tasty-recipes-ingredients-header{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}}.tasty-recipes-ingredients-header .tasty-recipes-ingredients-clipboard-container{align-items:baseline;display:inline-flex}.tasty-recipes-ingredients-header h3{margin:0 10px 10px 0}.tasty-recipes-ingredients-clipboard-container .tasty-recipes-copy-button{background:transparent;border:none;color:#353547;height:24px;padding:0;position:relative;width:24px}.tasty-recipes-ingredients-clipboard-container .tasty-recipes-copy-button:hover{opacity:.5}.tasty-recipes-instructions-header{align-items:baseline;display:flex;flex-wrap:wrap;justify-content:space-between;margin:1em 0}.tasty-recipes-entry-content .tasty-recipes-instructions h3{margin:0 0 1rem}@media only screen and (min-width:520px){.tasty-recipes-entry-content .tasty-recipes-instructions h3{margin:0}}button[name=tasty-recipes-video-toggle]{background:#979599;border:#979599;border-radius:2px;display:inline-block;font-size:14px;height:30px;line-height:20px;margin:0;padding:0;text-align:center;vertical-align:middle;width:86px}button[name=tasty-recipes-video-toggle] span{padding:0 4px;pointer-events:none}button[name=tasty-recipes-video-toggle][aria-checked=false] :last-child,button[name=tasty-recipes-video-toggle][aria-checked=true] :first-child{background:#fff;border-radius:2px;color:#979599;padding:2px 4px}button[name=tasty-recipes-video-toggle][aria-checked=false] :first-child,button[name=tasty-recipes-video-toggle][aria-checked=true] :last-child{color:#fff}label[for=tasty-recipes-video-toggle]{color:#979599;font-size:.6rem;line-height:30px;padding-right:8px;text-transform:uppercase;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-o-user-select:none;vertical-align:middle}.tasty-recipe-responsive-iframe-container{margin:10px 0}.tasty-recipes-equipment{display:flex;flex-wrap:wrap;justify-content:space-evenly}.tasty-recipes-equipment>h3{flex:0 0 100%}.tasty-recipes-equipment .tasty-link-card{flex:0 0 50%;padding:1.5rem 1rem;text-align:center}@media screen and (min-width:500px){.tasty-recipes-equipment .tasty-link-card{flex:0 0 33%}}.tasty-recipes-equipment .tasty-link-card p{font-size:1em;font-weight:700;margin-bottom:0}.tasty-recipes-equipment .tasty-link-card p a{color:initial}.tasty-recipes-equipment .tasty-link-card span{font-size:.9em}.tasty-recipes .tasty-recipes-nutrition ul{list-style-type:none;margin:0;padding:0}.tasty-recipes .tasty-recipes-nutrition ul:after{clear:both;content:” “;display:block}.tasty-recipes .tasty-recipes-nutrition li{float:left;list-style-type:none;margin-bottom:0;margin-left:0;margin-right:16px}.tasty-recipes-plug{align-items:center;display:flex;flex-wrap:wrap;justify-content:center;margin-bottom:1em;text-align:center}.tasty-recipes-plug a{box-shadow:none;text-decoration:none}.tasty-recipes-plug a img{display:inline-block;height:auto;margin:5px 0 0 8px;width:150px}.tasty-recipes-footer-content{padding:1.5em;text-align:center}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:0}.tasty-recipes-footer-content img,.tasty-recipes-footer-content svg{width:60px}.tasty-recipes-entry-content .tasty-recipes-entry-footer h3{font-size:1.25em;margin:0 0 .25em;padding:0}.tasty-recipes-entry-footer p{font-size:.75em;margin:0}.tasty-recipes-entry-footer p a{border-bottom:none;box-shadow:none;text-decoration:underline}.tasty-recipes-flash-message{background-color:#fff;border-radius:4px;box-shadow:0 .3px .4px 0 rgba(0,0,0,.024),0 .9px 1.5px 0 rgba(0,0,0,.05),0 3.5px 6px 0 rgba(0,0,0,.1);color:#313135;display:inline-block;font-size:13px;letter-spacing:0;line-height:1.2em;margin-left:10px;padding:4px 10px}@media screen and (min-width:500px){.tasty-recipes-flash-message{padding:4px 10px}}.tasty-recipes-flash-message p{margin:0;padding:0;text-transform:none}@media screen and (min-width:500px){.tasty-recipes-footer-content{align-items:center;display:flex;justify-content:center;padding:1.5em 0;text-align:left}.tasty-recipes-footer-content .tasty-recipes-footer-copy{margin-left:.8em}}@media print{.tasty-recipes-no-print,.tasty-recipes-no-print *{display:none!important}}[data-tr-ingredient-checkbox]{cursor:pointer;list-style-position:outside;list-style-type:none!important;margin-left:0!important}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container{position:relative}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]+label{display:inline-block;position:relative;vertical-align:middle}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]+label:before{border:1px solid;border-radius:2px;content:””;display:inline-block;height:20px;margin-right:10px;position:relative;width:20px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]:checked+label:after{border-bottom:2px solid;border-left:2px solid;content:””;display:inline-block;height:6px;left:4px;position:absolute;top:4px;transform:rotate(-45deg);width:12px}[data-tr-ingredient-checkbox] .tr-ingredient-checkbox-container input[type=checkbox]:focus+label:before{box-shadow:0 0 8px #5e9ed6;outline:1px solid #5d9dd5}[data-tr-ingredient-checkbox=checked]{opacity:.8;text-decoration:line-through}/* Tasty Recipes Simple recipe card styles */ .tasty-recipes-display{border:0.15em solid #ededed;padding:1.5em;margin-bottom:1em}.tasty-recipes-plug{margin-bottom:1em}.tasty-recipes-display ul,.tasty-recipes-display ol{margin-left:0}.tasty-recipes-display h2{font-weight:400;text-transform:lowercase;padding-top:0;margin-top:0}.tasty-recipes-details{font-size:0.8em}.tasty-recipes-label{color:#797B7C}.tasty-recipes-details ul li{list-style-type:none;margin-left:0}.prep-time,.total-time,.cook-time{display:inline-block;width:20%;margin:0.8em 0;vertical-align:top}.tasty-recipes-rating a{text-decoration:none}.tasty-recipes-rating p{margin-bottom:1rem;display:inline-block}.tasty-recipes-rating .rating-label{font-style:italic;font-size:0.8em}.tasty-recipes-notes{margin-bottom:1rem}.tasty-recipes-nutrition{padding:0.5em;border-top:.15em solid #ededed}.tasty-recipes-nutrition ul li{list-style-type:none;font-size:0.8em;margin-left:0}@media only screen and (min-width:520px){.tasty-recipes-nutrition ul li{width:30%}}.tasty-recipe-ingredients h3,.tasty-recipes-ingredients h3,.tasty-recipe-instructions h3,.tasty-recipes-instructions h3,.tasty-recipes-equipment h3,.tasty-recipes-notes h3{font-weight:200;margin-top:0.6em;margin-bottom:1.2em;text-transform:lowercase}.tasty-recipe-ingredients h4,.tasty-recipes-ingredients h4,.tasty-recipe-instructions h4,.tasty-recipes-instructions h4{font-size:1.2em;font-weight:700;text-transform:lowercase;color:#797B7C}.tasty-recipes-description p{font-size:.8em;font-style:italic}.tasty-recipe-video-embed~.tasty-recipes-equipment{padding-top:1em}.tasty-recipes-nutrition h3{font-size:1em;text-align:center;margin-top:1em}.tasty-recipes-notes h3{font-size:1.2em}.tasty-recipes-notes p,.tasty-recipes-notes ul{font-size:0.8em}.tasty-recipes-keywords p{font-size:.8em;margin-top:1em;margin-bottom:1em}.tasty-recipes-entry-footer{text-align:center;padding-top:1rem}.tasty-recipes-source-link{text-align:center}/*Print styles*/ .tasty-recipes-print{font-size:11px;line-height:1.5em}.tasty-recipes-print .tasty-recipes-description p{font-size:1em;line-height:1.5em}.tasty-recipes-print ul,.tasty-recipes-print ol{padding-left:1.25em}.tasty-recipes-print .tasty-recipes-details ul{padding-left:0}.tasty-recipes-print-view h3{font-size:1.2em;letter-spacing:0.1em;margin:0 0 10px 0}.tasty-recipes-print-view .tasty-recipes-ingredients-header,.tasty-recipes-print-view .tasty-recipes-instructions-header{margin:0}.tasty-recipes-print-view .tasty-recipes-ingredients,.tasty-recipes-print-view .tasty-recipes-instructions{padding:1.25em 0}

Easy Pesto Potato Salad

Pesto potato salad scoop on large copper spoon on small white plate, on beige and white surface


Print Recipe

5 from 1 reviews

An easy pesto potato salad with roasted potatoes and red onions tossed in your favorite pesto, with fresh parsley and chives. Serve warm or room temp as a side dish for summer barbecues or any time of year!

  • Author: Tera
  • Prep Time: 5 minutes
  • Cook Time: 35 minutes
  • Total Time: 40 minutes
  • Yield: ~5 cups
  • Category: Sides
  • Method: Roast
  • Cuisine: Mediterranean

Ingredients


Units

  • 1 pound small potatoes, diced large
  • 1 small red onion, diced large
  • 2 tablespoons extra virgin olive oil
  • ½ teaspoon salt
  • ¼ teaspoon pepper
  • cup pesto
  • ½ cup fresh parsley, chopped
  • 2 tablespoons fresh chives, finely chopped

Instructions

  1. Preheat & prep. Preheat your oven to 400 degrees. If desired, line a baking sheet with parchment paper or a silicone baking mat.
  2. Prep potatoes & onions. Toss potatoes, red onions, olive oil, salt, and pepper together in a large bowl. Spread mixture in an even layer across the prepared baking sheet.
  3. Roast potatoes & onions. Roast the potatoes and onions at 400 degrees for 30 minutes, or until potatoes are slightly browned and easily pierced with a fork. Set your oven to broil for 2 more minutes to help those potatoes crisp up, then remove from the oven and allow to cool for 5 minutes on the pan.
  4. Combine. Add roasted potatoes, pesto, and chopped parsley and chives to a large bowl. Toss to coat everything in pesto. Taste, and add more pesto, salt, and/or pepper if desired. Serve at room temp or slightly warm.

Equipment

Notes

1. Storage Instructions: Store leftover pesto potato salad in an airtight container in the fridge for up to a week. After that, you can either enjoy it cold, allow it to come to room temperature, or reheat it in an air fryer, oven, or stovetop (in this case, it’s less like potato salad and more like roasted potatoes… still SO good).

(function(){
window.addEventListener( ‘message’, function( event ){
if ( ( ‘https://nutrifox.com’ !== event.origin && ‘https://nutrifox.test’ !== event.origin ) ||
typeof event.data !== ‘string’ ) {
return;
}
var payload = JSON.parse( event.data );
switch ( payload.event ) {
case ‘setHeight’:
var iframe = document.getElementById( ‘nutrifox-label-‘ + payload.recipeId );
iframe.style.height = payload.height + ‘px’;
break;
}
} );
}())

Keywords: pesto potato salad, vegan pesto potato salad

Did you make this recipe?

If you loved this recipe, please consider giving it a star rating (below)! Star ratings help Roots and Radishes recipes reach more people, which helps support the continued production of our content. Also, we’d LOVE to see what you make! Tag @rootsnradishes on Instagram and hashtag it #rootsnradishes

(function(){
/* frac.js (C) 2012-present SheetJS — http://sheetjs.com */
/* bothEquals() avoids use of &&, which gets prettified by WordPress. */
var bothEquals = function( d1, d2, D ) {
var ret = 0;
if (d1<=D) {
ret++;
}
if (d2<=D) {
ret++;
}
return ret === 2;
};
var frac =function frac(x,D,mixed){var n1=Math.floor(x),d1=1;var n2=n1+1,d2=1;if(x!==n1)while(bothEquals(d1,d2,D)){var m=(n1+n2)/(d1+d2);if(x===m){if(d1+d2d2)d2=D+1;else d1=D+1;break}else if(xD){d1=d2;n1=n2}if(!mixed)return[0,n1,d1];var q=Math.floor(n1/d1);return[q,n1-q*d1,d1]};frac.cont=function cont(x,D,mixed){var sgn=x<0?-1:1;var B=x*sgn;var P_2=0,P_1=1,P=0;var Q_2=1,Q_1=0,Q=0;var A=Math.floor(B);while(Q_1<D){A=Math.floor(B);P=A*P_1+P_2;Q=A*Q_1+Q_2;if(B-AD){if(Q_1>D){Q=Q_2;P=P_2}else{Q=Q_1;P=P_1}}if(!mixed)return[0,sgn*P,Q];var q=Math.floor(sgn*P/Q);return[q,sgn*P-q*Q,Q]};

/* {‘¼’: ‘¼’,’½’: ‘½’,’¾’: ‘¾’,’⅓’: ‘⅓’,’⅔’:’⅔’,’⅕’:’⅕’,’⅖’:’⅖’,’⅗’:’⅗’,’⅘’:’⅘’,’⅙’:’⅙’,’⅚’:’⅚’,’⅛’:’⅛’,’⅜’:’⅜’,’⅝’:’⅝’,’⅞’:’⅞’} */
window.tastyRecipesVulgarFractions = JSON.parse(decodeURIComponent(“%7B%22%C2%BC%22%3A%221%2F4%22%2C%22%C2%BD%22%3A%221%2F2%22%2C%22%C2%BE%22%3A%223%2F4%22%2C%22%E2%85%93%22%3A%221%2F3%22%2C%22%E2%85%94%22%3A%222%2F3%22%2C%22%E2%85%95%22%3A%221%2F5%22%2C%22%E2%85%96%22%3A%222%2F5%22%2C%22%E2%85%97%22%3A%223%2F5%22%2C%22%E2%85%98%22%3A%224%2F5%22%2C%22%E2%85%99%22%3A%221%2F6%22%2C%22%E2%85%9A%22%3A%225%2F6%22%2C%22%E2%85%9B%22%3A%221%2F8%22%2C%22%E2%85%9C%22%3A%223%2F8%22%2C%22%E2%85%9D%22%3A%225%2F8%22%2C%22%E2%85%9E%22%3A%227%2F8%22%7D”));

window.tastyRecipesFormatAmount = function(amount, el) {
if ( parseFloat( amount ) === parseInt( amount ) ) {
return amount;
}
var roundType=”frac”;
if (typeof el.dataset.amountShouldRound !== ‘undefined’) {
if (‘false’ != el.dataset.amountShouldRound) {
if ( ‘number’ === el.dataset.amountShouldRound ) {
roundType=”number”;
} else if (‘frac’ === el.dataset.amountShouldRound) {
roundType=”frac”
} else if (‘vulgar’ === el.dataset.amountShouldRound) {
roundType=”vulgar”
} else {
roundType=”integer”;
}
}
}
if (‘number’ === roundType) {
amount = Number.parseFloat(amount).toPrecision(2);
} else if (‘integer’ === roundType) {
amount = Math.round(amount);
} else if (‘frac’ === roundType || ‘vulgar’ === roundType) {
var denom = 8;
if (typeof el.dataset.unit !== ‘undefined’) {
var unit = el.dataset.unit;
if ([‘cups’,’cup’,’c’].includes(unit)) {
denom = 4;
if (0.125 === amount) {
denom = 8;
}
if (“0.1667″ === Number.parseFloat( amount ).toPrecision(4)) {
denom = 6;
}
}
if ([‘tablespoons’,’tablespoon’,’tbsp’].includes(unit)) {
denom = 2;
}
if ([‘teaspoons’,’teaspoon’,’tsp’].includes(unit)) {
denom = 8;
}
}
var amountArray = frac.cont( amount, denom, true );
var newAmount=””;
if ( amountArray[1] !== 0 ) {
newAmount = amountArray[1] + ‘/’ + amountArray[2];
if (‘vulgar’ === roundType) {
Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) {
if (newAmount === window.tastyRecipesVulgarFractions[vulgar]) {
newAmount = vulgar;
}
});
}
}
if ( newAmount ) {
newAmount=” ” + newAmount;
}
if ( amountArray[0] ) {
newAmount = amountArray[0] + newAmount;
}
amount = newAmount;
}
return amount;
}
}())

(function(){
var buttonClass=”tasty-recipes-convert-button”,
buttonActiveClass=”tasty-recipes-convert-button-active”,
buttons = document.querySelectorAll(‘.tasty-recipes-convert-button’);
if ( ! buttons ) {
return;
}
buttons.forEach(function(button){
button.addEventListener(‘click’, function(event){
event.preventDefault();
var recipe = event.target.closest(‘.tasty-recipes’);
if ( ! recipe ) {
return;
}
var otherButtons = recipe.querySelectorAll(‘.’ + buttonClass);
otherButtons.forEach(function(bt){
bt.classList.remove(buttonActiveClass);
});
button.classList.add(buttonActiveClass);
var unitType = button.dataset.unitType;
var dataset=”nf” + unitType.charAt(0).toUpperCase() + unitType.slice(1);
var convertables = recipe.querySelectorAll(‘span[data-nf-original]’);
convertables.forEach(function(convertable){
if (typeof convertable.dataset.amountOriginalType === ‘undefined’
&& ‘usc’ === convertable.dataset.nfOriginal) {
if (-1 !== convertable.innerText.indexOf(‘/’)) {
convertable.dataset.amountOriginalType=”frac”;
}
if (-1 !== convertable.innerText.indexOf(‘.’)) {
convertable.dataset.amountOriginalType=”number”;
}
Object.keys(window.tastyRecipesVulgarFractions).forEach(function(vulgar) {
if (-1 !== convertable.innerText.indexOf(vulgar)) {
convertable.dataset.amountOriginalType=”vulgar”;
}
})
}
convertable.innerText = convertable.dataset[dataset];
if (typeof convertable.dataset.unit !== ‘undefined’) {
convertable.dataset.unit = convertable.dataset[dataset + ‘Unit’];
}
if (typeof convertable.dataset.amount !== ‘undefined’) {
convertable.dataset.amount = convertable.dataset[dataset];
if (‘metric’ === unitType) {
convertable.dataset.amountShouldRound = parseInt(convertable.dataset.amount) >= 10 ? ‘integer’ : ‘number’;
} else if (typeof convertable.dataset.amountOriginalType !== ‘undefined’) {
convertable.dataset.amountShouldRound = convertable.dataset.amountOriginalType;
} else {
convertable.dataset.amountShouldRound = false;
}
convertable.innerText = window.tastyRecipesFormatAmount(convertable.dataset[dataset], convertable);
}
if (convertable.classList.contains(‘nutrifox-unit’)) {
if (‘gram’ === convertable.dataset[dataset]) {
convertable.innerText=”grams”;
}
}
});
/* Trigger the correct amount if scaling is active */
document.querySelectorAll(‘.tasty-recipes-scale-button-active’).forEach(function(scaleButton){
scaleButton.click();
});
});
});
}())

The post Easy Pesto Potato Salad appeared first on Roots and Radishes.





Source link

Written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Tips for Repurposing Food Scraps in Your Kitchen

Tips for Repurposing Food Scraps in Your Kitchen

20-Minute Salmon Picatta

20-Minute Salmon Picatta