diff --git a/src/index.html b/src/index.html
index 4bb89696..1b91bb4a 100644
--- a/src/index.html
+++ b/src/index.html
@@ -244,10 +244,9 @@
Social Networks
<% var template = require("html-loader!./shared/menu.html"); %> <%=
- template
- .replace('${homeActive}','class="uk-active"').replace('${homeActive}','class="uk-active"')
- .replace('${palestrasActive}', '').replace('${palestrasActive}', '')
- .replace('${podcastActive}', '').replace('${podcastActive}', '') %>
+ template .split('${homeActive}').join('class="uk-active"')
+ .split('${palestrasActive}').join('') .split('${podcastActive}').join('')
+ %>
diff --git a/src/palestras/index.html b/src/palestras/index.html
index 916318be..d8f17707 100644
--- a/src/palestras/index.html
+++ b/src/palestras/index.html
@@ -155,10 +155,9 @@
<% var template = require("html-loader!../shared/menu.html"); %> <%=
- template .replace('${homeActive}','').replace('${homeActive}','')
- .replace('${palestrasActive}',
- 'class="uk-active"').replace('${palestrasActive}', 'class="uk-active"')
- .replace('${podcastActive}', '').replace('${podcastActive}', '') %>
+ template .split('${homeActive}').join('')
+ .split('${palestrasActive}').join('class="uk-active"')
+ .split('${podcastActive}').join('') %>
diff --git a/src/podcasts/index.html b/src/podcasts/index.html
index 53dfe931..a4d448ea 100644
--- a/src/podcasts/index.html
+++ b/src/podcasts/index.html
@@ -97,10 +97,9 @@ Podcasts
<% var template = require("html-loader!../shared/menu.html"); %> <%=
- template .replace('${homeActive}','').replace('${homeActive}','')
- .replace('${palestrasActive}', '').replace('${palestrasActive}', '')
- .replace('${podcastActive}',
- 'class="uk-active"').replace('${podcastActive}', 'class="uk-active"') %>
+ template .split('${homeActive}').join('')
+ .split('${palestrasActive}').join('')
+ .split('${podcastActive}').join('class="uk-active"') %>