Skip to content

Commit

Permalink
add a nice svg from heroicons to the main link
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceM committed Feb 28, 2020
1 parent a89fcc0 commit dc588ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ const hBar = {
postLink.href = this.postLink;
postLink.innerText = this.postTitle;

postLink.innerHTML += `
<svg class="h-3 w-3" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
</svg>
`

let postElement = newElement('div', {
classes: `${this.styling.linkWrapper} ${themes[this.theme].linkWrapper}`,
children: [badge, postLink]
Expand Down

0 comments on commit dc588ce

Please sign in to comment.