Skip to content

Commit

Permalink
fix(plugin): improve resolution default
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Feb 1, 2023
1 parent 2b95b1a commit 467a22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const SERVICE_BASE = `https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICO

module.exports = (eleventyConfig, options) => {
const defaults = {
size: "1",
size: 128,
}

eleventyConfig.addPairedShortcode("ai", function (content, href, size = 1) {
eleventyConfig.addPairedShortcode("ai", function (content, href, size = 128) {
return `<a href="${href}"><img style="max-height: 1em; position: relative; top: .2em; margin-right: .2em" src="${SERVICE_BASE.replace("%%URL%%", href).replace("%%SIZE%%", size)}"/>${content}</a>`
})

Expand Down

0 comments on commit 467a22e

Please sign in to comment.