include svg when looking for image extensions

This commit is contained in:
Thomas Reynolds 2011-11-26 20:53:05 -08:00
parent abbd489c91
commit 4cfbd6e5d9
5 changed files with 236 additions and 3 deletions

View file

@ -0,0 +1,231 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="256px" height="256px" viewBox="0 0 256 256" enable-background="new 0 0 256 256" xml:space="preserve">
<g id="Layer_2">
<g>
<circle fill="#4E4A4A" cx="128.075" cy="126.26" r="109"/>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="324.5693" y1="-144.0381" x2="427.235" y2="-261.3711" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#DED9D9"/>
<stop offset="1" style="stop-color:#6A6363"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M67.243,45.813c0,0-8.167,4.917-5.292,15.667s8.125,16.75,12.25,21.875s8.292,12.542,7.625,17.625
s-2.375,25.419,10.75,38.647c13.125,13.227,22.875,13.602,22.875,13.602l-3.25,2.375l-40.597,33.256l11.472,16.787l27.833,23.832
l-19.833-3.666l-1.417,5.25l28.917,0.416l-12-19.5l-20.5-18.832c0,0-3.584-3.793,3.583-9.043s42.167-32.043,42.167-32.043
l38.833-57.581c0,0,3.125,0.125,9,0.5s51.542,20.75,51.542,20.75s-0.778-15.379-1.542-22.75c-0.316-3.062,0.979-2.7,2.834,1.667
c1.854,4.366,0.75,12,0.75,12l-1.25-17.333l-6.917-9.333l-1.75,8c0,0,1.375,8.125,1.75,11.125s-1,4-5.375,2s-18.875-6.75-28.5-8
s-24.375-1.875-24.375-1.875l-75,1l-4,2.917c0,0,0.937-3.438-3.063-10.104S67.243,45.813,67.243,45.813z"/>
<path fill="#007A3F" d="M74.794,89.323c0,0,4.563,8.094,4.094,14.469c-0.437,5.938-0.813,31.187,23.188,45.562
c6.234,3.734,11.599,5.156,11.599,5.156l0.568,2.303l-13.979,1.104L65.076,122.98l0.375-28.25l5.125-5.5l2.75-0.625L74.794,89.323
z"/>
<path fill="#005A2B" d="M99.409,231.063c0,0,11.5,1,16.25,0.5s23.583,5.5,23.583,5.5s-2.751,4.138-8.667,5.109
c-5.917,0.975-36.583-7.525-36.583-7.525L99.409,231.063z"/>
<path fill="#00663F" d="M114.243,156.813c0,0-36.739,26.406-41.667,35.834c-4.928,9.429,8.499,21.668,17.083,28.834
s21.167,18.873,44.792,19.373c0,0-15.625,4.875-39.125-4.125s-49.75-59-49.75-59L114.243,156.813z"/>
<polygon fill="#262626" points="65.258,38.479 54.201,46.979 53.076,39.979 61.576,36.854 "/>
<path fill="#007A3F" d="M65.451,35.896c0,0-5.917-2.458-10,1.917s-6.041,22,11.792,40.5c0,0-12.584-16.998-12.25-30.5
c0.333-13.5,10.833-9.083,10.833-9.083L65.451,35.896z"/>
<radialGradient id="SVGID_2_" cx="351.8242" cy="-188.4795" r="175.0517" gradientTransform="matrix(1 0 0 -1 -256 -90)" gradientUnits="userSpaceOnUse">
<stop offset="0.0765" style="stop-color:#8DDB92"/>
<stop offset="0.1633" style="stop-color:#77CE7C"/>
<stop offset="0.3431" style="stop-color:#3EAB45"/>
<stop offset="0.5021" style="stop-color:#078A0F"/>
<stop offset="0.581" style="stop-color:#108C18"/>
<stop offset="0.7085" style="stop-color:#28922F"/>
<stop offset="0.7148" style="stop-color:#299230"/>
</radialGradient>
<path fill="url(#SVGID_2_)" d="M122.201,241.104c-20.125-2.125-38-19.125-45-26.5s-16.25-15.25-4.625-26.75
s41.667-31.041,41.667-31.041l0,0c-22.215-5.442-38.668-25.774-38.668-49.667c0-4.174,0.718-7.782,1.095-11.76
c0.239-2.531-1.969-7.781-8.844-16.156S54.55,60.185,53.263,50.167c-1.438-11.188,6.271-14.688,6.271-14.688
c-6.541,0.25-17.958,11.5-17.958,11.5c-33.75,31.75-45.667,84.667-22.333,130.667c23.332,46,66.333,61.166,86.833,64.834
c20.5,3.666,28.375-1.627,28.375-1.627C130.7,241.916,122.201,241.104,122.201,241.104z"/>
<path fill="#AF8513" d="M238.139,114.566L238.139,114.566c5.396,3.643,6.938,4.414,5.438-10.586s-15.125-36.5-15.125-36.5
l0.029,0.145c4.205,7.844,11.629,23.352,12.93,37.189C242.402,115.375,241.773,116.59,238.139,114.566z"/>
<path fill="#591F00" d="M231.075,82.604l2,38.75h13.25c0,0,4.5-25.25-21.25-58.25L231.075,82.604z"/>
<path fill="#8F0404" d="M81.887,83.542l2.875,1.5c0,0,15.979-21.896,37.48-23.729c21.5-1.833,38.499,10.833,44.166,17
s8.501,8.833,16.834,8.833s36.138,4.457,46.221,8.957l6.078-2.341l-30.133-28.449L103.243,39.979L81.887,83.542z"/>
<radialGradient id="SVGID_3_" cx="386.7256" cy="-214.623" r="116.2404" gradientTransform="matrix(1 0 0 -1 -256 -90)" gradientUnits="userSpaceOnUse">
<stop offset="0.6157" style="stop-color:#F60000"/>
<stop offset="0.7247" style="stop-color:#E70505"/>
<stop offset="0.9171" style="stop-color:#C41212"/>
<stop offset="1" style="stop-color:#DD7878"/>
</radialGradient>
<path fill="url(#SVGID_3_)" d="M81.887,83.542c0,0,8.813-17.813,29.188-24.063s42.25-3.25,59.375,17.375l1.75,1.875
c0,0,2.875,3.188,11.063,3.5c8.188,0.312,34.313,4.083,44.979,9.333l5.041,2.167c0,0,3.541,1.625,2.875-2.792
s-3.932-24.363-21.583-42.958c-21.833-23-57.25-36-84.25-35.75s-47.583,6.75-64.917,17.417c0,0-0.833,10.75,0.917,17.75
s10.083,25.167,14.083,31.167C80.409,78.563,82.002,80.854,81.887,83.542z"/>
<radialGradient id="SVGID_4_" cx="383.8242" cy="-189.3115" r="52.1069" gradientTransform="matrix(1 0 0 -1 -256 -90)" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#B1DDF4"/>
<stop offset="0.0742" style="stop-color:#A9D7F3"/>
<stop offset="0.1904" style="stop-color:#93C7F1"/>
<stop offset="0.3332" style="stop-color:#6EADEE"/>
<stop offset="0.4" style="stop-color:#5B9FEC"/>
<stop offset="0.5273" style="stop-color:#0B85D1"/>
<stop offset="0.6182" style="stop-color:#1375B3"/>
<stop offset="0.6537" style="stop-color:#166FA8"/>
<stop offset="0.716" style="stop-color:#1E608B"/>
<stop offset="0.7971" style="stop-color:#2B475C"/>
<stop offset="0.8424" style="stop-color:#33383F"/>
<stop offset="1" style="stop-color:#363233"/>
</radialGradient>
<ellipse fill="url(#SVGID_4_)" cx="128.075" cy="110.792" rx="46.25" ry="42.75"/>
<linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="287.0811" y1="-168.9683" x2="311.8112" y2="-301.8506" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0.53"/>
</linearGradient>
<path opacity="0.32" fill="url(#SVGID_5_)" enable-background="new " d="M51.493,45.813c0,0-32.666,37.333-32.334,78.166
c0.328,40.234,19.917,62,40.167,76.666c18.39,13.32,5.667,14.168-3.5,6.668c0,0-51.015-35.127-38.667-99.333
C23.827,73.313,51.493,45.813,51.493,45.813z"/>
<linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="303.5654" y1="-153.9297" x2="321.5654" y2="-194.5968" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.517" style="stop-color:#FFFFFF;stop-opacity:0.53"/>
</linearGradient>
<path opacity="0.5" fill="url(#SVGID_6_)" enable-background="new " d="M64.055,76.104c0,0-3.5,1.438-6.813-2.25
s-8.688,1.875-11.25,3s-5.438-1.938-5.375-4.438s-1-8.688,2.813-13.25s8.875-8.625,8.875-8.625S51.471,61.792,64.055,76.104z"/>
<linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="329.1895" y1="-367.6455" x2="329.1894" y2="-263.6457" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0.53"/>
</linearGradient>
<path opacity="0.3" fill="url(#SVGID_7_)" enable-background="new " d="M11.928,159.467c1.869,6.135,4.289,12.215,7.314,18.18
c23.332,46,66.333,61.166,86.833,64.834c20.5,3.666,28.375-1.627,28.375-1.627c-3.75,1.063-12.25,0.25-12.25,0.25
c-16.375-1.875-33.292-14.375-40.292-21.75c-0.007-0.008,4.75,4.125,0,0C49.555,217.084,22.928,174.439,11.928,159.467z"/>
<path opacity="0.5" fill="#FFFFFF" enable-background="new " d="M71.346,57.354c0,0,4-6,0.875-12.063
c-2.152-4.177-5.5-4.5-6.5-3.625C65.721,41.667,66.721,51.854,71.346,57.354"/>
<path opacity="0.5" fill="#FFFFFF" enable-background="new " d="M79.159,41.313c0,0,6.084-4.25,8.25-6.167
c2.168-1.917,0.418-5.417-1.916-5.083s-7.5,1.625-10.625,4.917c-2.49,2.624-2.271,5.604-0.521,6.938S78.243,41.979,79.159,41.313z
"/>
<linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="365.0869" y1="-116.2905" x2="436.2679" y2="-153.5437" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.7"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/>
</linearGradient>
<path opacity="0.32" fill="url(#SVGID_8_)" enable-background="new " d="M183.492,38.479
c-56.75-41.5-118.243-0.275-118.243-0.275s52.743-50.225,130.493-0.725L183.492,38.479z"/>
<linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="279.0625" y1="-183.9019" x2="299.7944" y2="-194.7521" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.7"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/>
</linearGradient>
<path opacity="0.6" fill="url(#SVGID_9_)" enable-background="new " d="M54.952,38.071c-0.017-0.484-0.668-0.216-0.668-0.216
C-12.341,89.48,14.346,162.042,14.346,162.042C-2.841,78.229,54.502,38.745,54.502,38.745S54.967,38.524,54.952,38.071z"/>
<linearGradient id="SVGID_10_" gradientUnits="userSpaceOnUse" x1="357.2529" y1="-164.501" x2="356.9078" y2="-217.6514" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.7"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/>
</linearGradient>
<path opacity="0.6" fill="url(#SVGID_10_)" enable-background="new " d="M109.493,79.229c0,0-14,11.625-11.375,38.75
c0,0-0.688,3.688-3.75-1.125S90.868,85.604,109.493,79.229z"/>
<linearGradient id="SVGID_11_" gradientUnits="userSpaceOnUse" x1="360.1279" y1="-174.2256" x2="381.9963" y2="-168.7585" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF;stop-opacity:0.7"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0"/>
</linearGradient>
<path opacity="0.6" fill="url(#SVGID_11_)" enable-background="new " d="M128.118,75.854c0,0-13.625,3.375-18.063,9.25
s-6.167-0.313-1.229-3.875S121.118,74.854,128.118,75.854z"/>
<path fill="#AF8513" d="M179.117,91.854l-1.625,3c0,0,9.333,27.958-6.084,47.125l2.479,0.354l11-21l1-21.667L179.117,91.854z"/>
<radialGradient id="SVGID_12_" cx="384.8271" cy="-208.9785" r="125.9904" gradientTransform="matrix(1 0 0 -1 -256 -90)" gradientUnits="userSpaceOnUse">
<stop offset="0.182" style="stop-color:#FFE650"/>
<stop offset="0.703" style="stop-color:#FFDB00"/>
<stop offset="1" style="stop-color:#D5B319"/>
</radialGradient>
<path fill="url(#SVGID_12_)" d="M129.408,159.229l-43.333,33.918c0,0-10.251,7.166-3.583,14.416
c6.666,7.25,29.333,31.666,56.083,33.916s71-19,91-50s32.5-85.499-4-128.999c0,0,14.001,22.833,15.834,42.333
s-1.834,7.166-19.834,1.333s-30.333-8.667-34.833-10.167s-7.042-3.5-7.667-4.063c0,0,7.229,22.302-0.375,37.813
C169.2,149.104,154.741,157.479,129.408,159.229z"/>
<g opacity="0.64">
<path fill="#FFFFFF" d="M103.169,164.258c6.383-4.395,11.073-7.445,11.073-7.445c-22.215-5.442-38.668-25.774-38.668-49.667
c0-4.174,0.718-7.782,1.095-11.76c0.175-1.84-0.956-5.125-4.223-9.996c-3.071,7.257-4.771,15.226-4.771,23.59
C67.675,133.447,82.206,154.539,103.169,164.258z"/>
<path fill="#FFFFFF" d="M184.486,82.295c-9.979-20.314-30.994-34.315-55.313-34.315c-21.213,0-39.918,10.655-50.974,26.863
c0.817,1.487,1.569,2.76,2.208,3.72c0,0,1.563,2.229,1.479,4.979c0,0,8.813-17.813,29.188-24.063s42.25-3.25,59.375,17.375
l1.75,1.875c0,0,2.875,3.188,11.063,3.5C183.631,82.244,184.049,82.267,184.486,82.295z"/>
<path fill="#FFFFFF" d="M179.075,91.917c0,0,7.229,22.302-0.375,37.812c-9.5,19.375-23.959,27.75-49.292,29.5l-12.238,9.58
c3.883,0.762,7.896,1.17,12.004,1.17c33.967,0,61.5-27.311,61.5-60.999c0-4.174-0.425-8.249-1.229-12.187
c-1.08-0.307-1.998-0.579-2.703-0.813C182.242,94.479,179.7,92.479,179.075,91.917z"/>
</g>
<linearGradient id="SVGID_13_" gradientUnits="userSpaceOnUse" x1="428.9199" y1="-367.645" x2="428.9199" y2="-263.6455" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="1" style="stop-color:#FFFFFF;stop-opacity:0.53"/>
</linearGradient>
<path opacity="0.3" fill="url(#SVGID_13_)" enable-background="new " d="M229.575,191.479
c6.829-10.584,12.78-23.908,16.208-38.598c-15.189,29.146-45.028,66.418-99.775,72.766c-17.174,1.99-32.454,1.158-45.951-1.514
c10.27,8.127,23.77,16.105,38.518,17.346C165.325,243.729,209.575,222.479,229.575,191.479z"/>
<linearGradient id="SVGID_14_" gradientUnits="userSpaceOnUse" x1="341.9707" y1="-167.7676" x2="410.4909" y2="-167.1665" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#29506B"/>
<stop offset="0.0677" style="stop-color:#304D68"/>
<stop offset="0.1639" style="stop-color:#424560"/>
<stop offset="0.2766" style="stop-color:#613854"/>
<stop offset="0.297" style="stop-color:#673551"/>
<stop offset="0.5515" style="stop-color:#4D7EBE"/>
<stop offset="0.7455" style="stop-color:#633753"/>
<stop offset="1" style="stop-color:#29506B"/>
</linearGradient>
<path fill="url(#SVGID_14_)" d="M89.583,87.094c0.742-0.339,4.361-2.203,19.41-11.927c17.667-11.417,24.833-1.333,31.667,0.667
s10.583-2,10.583-2s-0.095-0.066-0.265-0.176c-6.754-3.567-14.567-5.616-22.902-5.616C112.017,68.042,97.875,75.609,89.583,87.094
z"/>
<path opacity="0.15" fill="#FFFFFF" enable-background="new " d="M127.999,69.188c25.181,0,45.646,19.332,46.222,42.479
c0.01-0.333,0.027-0.665,0.027-1c0-23.61-20.707-42.75-46.25-42.75s-46.25,19.14-46.25,42.75c0,0.335,0.02,0.667,0.027,1
C82.353,88.52,102.819,69.188,127.999,69.188z"/>
<linearGradient id="SVGID_15_" gradientUnits="userSpaceOnUse" x1="415.9873" y1="-229.3955" x2="402.3207" y2="-172.3946" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#343539"/>
<stop offset="0.3212" style="stop-color:#29506B"/>
<stop offset="1" style="stop-color:#C7DD85"/>
</linearGradient>
<path opacity="0.6" fill="url(#SVGID_15_)" enable-background="new " d="M155.688,86.479c0,0,14,17.5,3.334,32
c-10.668,14.5-15.502,18.833-16.168,23.667c0,0,30-9.168,28.5-25.5C169.854,100.313,166.521,93.979,155.688,86.479"/>
<linearGradient id="SVGID_16_" gradientUnits="userSpaceOnUse" x1="363.085" y1="-235.2949" x2="363.6172" y2="-212.6716" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#343539"/>
<stop offset="0.3212" style="stop-color:#29506B"/>
<stop offset="1" style="stop-color:#496D4E"/>
</linearGradient>
<path fill="url(#SVGID_16_)" d="M84.864,98.979c0,0,1.125,19.75,6.375,23.75c0,0,8.208,20.16,39.542,18.326l-3.042,5.674
c0,0-23.75,6.25-33.875-9.125C83.739,122.229,83.739,112.604,84.864,98.979z"/>
<linearGradient id="SVGID_17_" gradientUnits="userSpaceOnUse" x1="492.6963" y1="-215.0396" x2="499.5298" y2="-223.5401" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#F4DD80"/>
<stop offset="1" style="stop-color:#F4DD80;stop-opacity:0.3"/>
</linearGradient>
<path fill="url(#SVGID_17_)" d="M247.033,140.166c0,0-3.25-14.64-12.469-14.234l0.094-1.391
C234.658,124.542,244.283,123.792,247.033,140.166z"/>
<linearGradient id="SVGID_18_" gradientUnits="userSpaceOnUse" x1="491.7793" y1="-206.5625" x2="467.195" y2="-274.9928" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#F4DD80"/>
<stop offset="1" style="stop-color:#F4DD80;stop-opacity:0.3"/>
</linearGradient>
<path fill="url(#SVGID_18_)" d="M234.564,125.932h1.156c-0.779,11.214-6.832,50.207-35.229,68.214
C200.492,194.146,230.689,173.182,234.564,125.932z"/>
<path fill="#D1AB1A" d="M188.91,226.063c0,0,3.582-9-7.668-19.75c0,0,31.25-18,41.084-39.334
c9.832-21.332,11.166-38,10.832-43.666c0,0,11.75-1.896,14,16.478c0,0-2.375-14.375-12.5-15.25c0,0-1.461,25.083-12.125,44.563
c-9.375,17.125-24.75,27.375-39,37.5C183.533,206.604,193.16,217.52,188.91,226.063z"/>
<linearGradient id="SVGID_19_" gradientUnits="userSpaceOnUse" x1="440.0918" y1="-293.0024" x2="445.4176" y2="-309.92" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#F4DD80"/>
<stop offset="1" style="stop-color:#F4DD80;stop-opacity:0.3"/>
</linearGradient>
<path fill="url(#SVGID_19_)" d="M184.596,205.822c0,0,8.625,10.531,4.969,18.719c0,0,2.781-6.688-6.063-17.938L184.596,205.822z"
/>
<linearGradient id="SVGID_20_" gradientUnits="userSpaceOnUse" x1="414.5322" y1="-303.7339" x2="426.1514" y2="-323.9412" gradientTransform="matrix(1 0 0 -1 -256 -90)">
<stop offset="0" style="stop-color:#F4DD80"/>
<stop offset="1" style="stop-color:#F4DD80;stop-opacity:0.3"/>
</linearGradient>
<path fill="url(#SVGID_20_)" d="M157.033,236.604c0,0-5.625-10-6.625-14.625c0,0,16.25-4,22.125-6.875c0,0,4.125,4.75,7,14.5
c0,0,0.125-9.25-6.875-16.5l-24.75,7.75C147.908,220.854,153.658,233.229,157.033,236.604z"/>
<path fill="#D1AB1A" d="M158.242,238.063c0,0-7.75-5.998-11.416-18.082c0,0,15.666-3.002,25.916-7.834c0,0,8.25,7.75,7.25,19.916
c0,0-0.5-10.916-7.334-18.332c0,0-16.25,6.498-23.75,7.416C148.908,221.146,151.326,229.98,158.242,238.063z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,5 +1,7 @@
%h1 Welcome
= image_tag "Chrome_Logo.svg"
:markdown
## H2

View file

@ -131,7 +131,7 @@ module Middleman
end
def execute!
sort_order = %w(.png .jpeg .jpg .gif .bmp .ico .woff .otf .ttf .eot .js .css)
sort_order = %w(.png .jpeg .jpg .gif .bmp .svg .svgz .ico .woff .otf .ttf .eot .js .css)
paths = @app.sitemap.all_paths.sort do |a, b|
a_ext = File.extname(a)

View file

@ -19,7 +19,7 @@ module Middleman::Extensions
def asset_url(path, prefix="")
original_output = super
valid_extensions = %w(.png .gif .jpg .jpeg .js .css)
valid_extensions = %w(.png .gif .jpg .jpeg .svg .svgz .js .css)
asset_prefix = if asset_host.is_a?(Proc)
asset_host.call(original_output)

View file

@ -23,7 +23,7 @@ module Middleman::Extensions
def asset_url(path, prefix="")
http_path = super
if http_path.include?("://") || !%w(.css .png .jpg .js .gif).include?(File.extname(http_path))
if http_path.include?("://") || !%w(.css .png .jpg .jpeg .svg .svgz .js .gif).include?(File.extname(http_path))
http_path
else
begin