Website version 6 v6.j0.lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ogimagepath filter

+11 -1
+2 -1
_includes/layouts/base.webc
··· 6 6 <title @text="title || metadata.title"></title> 7 7 <meta name="description" :content="description || metadata.description"> 8 8 <meta name="generator" :content="eleventy.generator"> 9 + <meta property="og:image" :content="ogImagePath(page.url, tags?.includes('post'))"> 9 10 10 11 <template webc:type="11ty" 11ty:type="liquid"> 11 12 {% favicons 'favicon.svg' '#514E94' %} ··· 26 27 <link webc:keep rel="preconnect" href="https://fonts.googleapis.com"> 27 28 <link webc:keep rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 28 29 <link webc:keep href="https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet"> 29 - </head> 30 + 30 31 <body> 31 32 <header> 32 33 <navbar></navbar>
content/og-image.jpg

This is a binary file and will not be displayed.

+9
lib/filters.js
··· 30 30 day: "numeric", 31 31 }); 32 32 }); 33 + 34 + eleventyConfig.addFilter("ogImagePath", (url, isPost) => 35 + isPost 36 + ? "/og/" + url.replace(/^\/|\/$/g, "").replace(/\//g, "-") + ".jpg" 37 + : "/og/default.jpg" 38 + ); 39 + 40 + eleventyConfig.addPassthroughCopy({ "content/og-image.jpg": "og/default.jpg" }); 41 + 33 42 }
og_image.png

This is a binary file and will not be displayed.