Skip to content

Commit

Permalink
Merge pull request #261 from ojvribeiro/feat/build-time-link-tags
Browse files Browse the repository at this point in the history
feat: Build time link tags generator
  • Loading branch information
ojvribeiro authored Jul 3, 2024
2 parents 42d983f + da26e56 commit a220609
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<% if (typeof (head) != 'undefined') { %><% if (typeof (head.title) != 'undefined') { %><title> <%= head.title %> </title><% } %>
<% if (typeof (head.meta) != 'undefined') { %><% head.meta.forEach(item => { %><% if (typeof (item.charset) == 'undefined') { %><meta <% if (typeof (item.name) != 'undefined') { %>name="<%= item.name %>"<% } else if (typeof (item.property) != 'undefined') { %>property="<%= item.property %>"<% } %><% if (typeof (item.content) != 'undefined') { %> content="<%= item.content %>"<% } %> /><% } %>
<% }) %><% } %>
<% if (typeof (head.link) != 'undefined') { %><% head.link.forEach(item => { %><% if (typeof (item.charset) == 'undefined') { %><link <% if (typeof (item.rel) != 'undefined') { %>rel="<%= item.rel %>"<% } else if (typeof (item.type) != 'undefined') { %>type="<%= item.type %>"<% } %><% if (typeof (item.href) != 'undefined') { %> href="<%= item.href %>"<% } %><% if (typeof (item.hreflang) != 'undefined') { %> hreflang="<%= item.hreflang %>"<% } %><% if (typeof (item.sizes) != 'undefined') { %> sizes="<%= item.sizes %>"<% } %> /><% } %>
<% }) %><% } %>
<% } %>
<style>
html,body,body>[data-vulmix-app]{height: 100%;margin: 0;display: flow-root;}
Expand Down

0 comments on commit a220609

Please sign in to comment.