chore: simplify ogi
|
@ -38,10 +38,8 @@ export default {
|
||||||
if (!string) return
|
if (!string) return
|
||||||
return string.replace(utmPattern, '')
|
return string.replace(utmPattern, '')
|
||||||
},
|
},
|
||||||
getPostImage: (image) => {
|
|
||||||
if (image && image !== '') return image
|
// analytics
|
||||||
return `${BASE_URL}/assets/img/ogi/default.jpg`
|
|
||||||
},
|
|
||||||
getPopularPosts: (posts, analytics) => {
|
getPopularPosts: (posts, analytics) => {
|
||||||
return posts
|
return posts
|
||||||
.filter((post) => {
|
.filter((post) => {
|
||||||
|
@ -52,6 +50,8 @@ export default {
|
||||||
return visitors(b) - visitors(a)
|
return visitors(b) - visitors(a)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// tags
|
||||||
tagLookup: (url, tagMap) => {
|
tagLookup: (url, tagMap) => {
|
||||||
if (!url) return
|
if (!url) return
|
||||||
if (url.includes('thestorygraph.com')) return '#Books #NowReading #TheStoryGraph'
|
if (url.includes('thestorygraph.com')) return '#Books #NowReading #TheStoryGraph'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "7.10.3",
|
"version": "7.10.4",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
property="og:image"
|
property="og:image"
|
||||||
content="{%- if schema == 'blog' %}{{ meta.url }}/assets/img/social-preview/{{ title | slugify }}-preview.jpeg{%- else -%}{{ meta.meta_data.opengraph_default }}{% endif -%}"
|
content="{%- if schema == 'blog' %}{{ meta.url }}/assets/img/social-preview/{{ title | slugify }}-preview.jpeg{%- else -%}{{ meta.meta_data.opengraph_default }}{% endif -%}"
|
||||||
/>
|
/>
|
||||||
<meta property="og:image" content="{{ image | getPostImage }}">
|
|
||||||
<meta name="theme-color" content="{{ meta.themeColor }}" />
|
<meta name="theme-color" content="{{ meta.themeColor }}" />
|
||||||
<meta name="generator" content="{{ eleventy.generator }}">
|
<meta name="generator" content="{{ eleventy.generator }}">
|
||||||
<meta name="robots" content="noai, noimageai">
|
<meta name="robots" content="noai, noimageai">
|
||||||
|
|
Before Width: | Height: | Size: 193 KiB |
Before Width: | Height: | Size: 195 KiB |
Before Width: | Height: | Size: 196 KiB |
Before Width: | Height: | Size: 185 KiB |
Before Width: | Height: | Size: 193 KiB |
Before Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 198 KiB |
|
@ -4,7 +4,6 @@ layout: default
|
||||||
pagination:
|
pagination:
|
||||||
data: links
|
data: links
|
||||||
size: 30
|
size: 30
|
||||||
image: /assets/img/ogi/links.jpg
|
|
||||||
---
|
---
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
{% render "./assets/styles/pages/links.css" %}
|
{% render "./assets/styles/pages/links.css" %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: About
|
title: About
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /about.html
|
permalink: /about.html
|
||||||
image: /assets/img/ogi/about.jpg
|
|
||||||
---
|
---
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
{% render "../assets/styles/pages/about.css" %}
|
{% render "../assets/styles/pages/about.css" %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Blogroll
|
title: Blogroll
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /blogroll.html
|
permalink: /blogroll.html
|
||||||
image: /assets/img/ogi/blogroll.jpg
|
|
||||||
description: 'These are awesome blogs that I enjoy and you may enjoy too.'
|
description: 'These are awesome blogs that I enjoy and you may enjoy too.'
|
||||||
---
|
---
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Success
|
title: Success
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /contact/success.html
|
permalink: /contact/success.html
|
||||||
image: /assets/img/ogi/contact.jpg
|
|
||||||
---
|
---
|
||||||
<div class="text--centered">
|
<div class="text--centered">
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Contact
|
title: Contact
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /contact.html
|
permalink: /contact.html
|
||||||
image: /assets/img/ogi/contact.jpg
|
|
||||||
description: 'How to contact me.'
|
description: 'How to contact me.'
|
||||||
---
|
---
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Feeds
|
title: Feeds
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /feeds.html
|
permalink: /feeds.html
|
||||||
image: /assets/img/ogi/feeds.jpg
|
|
||||||
description: 'Content feeds exposed by and generated from my site.'
|
description: 'Content feeds exposed by and generated from my site.'
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Now
|
title: Now
|
||||||
layout: now
|
layout: now
|
||||||
permalink: /now.html
|
permalink: /now.html
|
||||||
image: /assets/img/ogi/now.jpg
|
|
||||||
description: "See what I'm doing now."
|
description: "See what I'm doing now."
|
||||||
---
|
---
|
||||||
<h2 class="flex--centered">
|
<h2 class="flex--centered">
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
title: Referrals
|
title: Referrals
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /referrals.html
|
permalink: /referrals.html
|
||||||
image: /assets/img/ogi/referrals.jpg
|
|
||||||
description: 'Referral links for services that I use.'
|
description: 'Referral links for services that I use.'
|
||||||
---
|
---
|
||||||
<h2 class="page__header">{{ title }}</h2>
|
<h2 class="page__header">{{ title }}</h2>
|
||||||
|
|
|
@ -3,7 +3,6 @@ title: Search
|
||||||
description: "Search through and find the posts on my site."
|
description: "Search through and find the posts on my site."
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /search.html
|
permalink: /search.html
|
||||||
image: /assets/img/ogi/search.jpg
|
|
||||||
---
|
---
|
||||||
<script type="module" src="/assets/scripts/components/pagefind-search.js"></script>
|
<script type="module" src="/assets/scripts/components/pagefind-search.js"></script>
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
title: Statistics
|
title: Statistics
|
||||||
layout: default
|
layout: default
|
||||||
|
description: 'Post stats and other information about my site.'
|
||||||
permalink: /stats.html
|
permalink: /stats.html
|
||||||
image: /assets/img/ogi/stats.jpg
|
|
||||||
---
|
---
|
||||||
<p>My first post was published on <strong class="highlight-text">{{ collections.postStats.firstPostDate | dateToReadableDate }}</strong> and my most recent one was published on <strong class="highlight-text">{{ collections.postStats.lastPostDate | dateToReadableDate }}</strong>. I've published <strong class="highlight-text">{{ collections.postStats.postCount }} posts</strong> containing <strong class="highlight-text">{{ collections.postStats.totalWordCount }} words</strong> and <strong class="highlight-text">{{ collections.postStats.totalCodeBlockCount }} code samples</strong>.</p>
|
<p>My first post was published on <strong class="highlight-text">{{ collections.postStats.firstPostDate | dateToReadableDate }}</strong> and my most recent one was published on <strong class="highlight-text">{{ collections.postStats.lastPostDate | dateToReadableDate }}</strong>. I've published <strong class="highlight-text">{{ collections.postStats.postCount }} posts</strong> containing <strong class="highlight-text">{{ collections.postStats.totalWordCount }} words</strong> and <strong class="highlight-text">{{ collections.postStats.totalCodeBlockCount }} code samples</strong>.</p>
|
||||||
<p>Posts have, on average, <strong class="highlight-text">{{ collections.postStats.avgWordCount | round }} words</strong> and a gap of <strong class="highlight-text">{{ collections.postStats.avgDays | round }} days</strong> between them.</p>
|
<p>Posts have, on average, <strong class="highlight-text">{{ collections.postStats.avgWordCount | round }} words</strong> and a gap of <strong class="highlight-text">{{ collections.postStats.avgDays | round }} days</strong> between them.</p>
|
||||||
|
|
|
@ -5,7 +5,6 @@ pagination:
|
||||||
size: 1
|
size: 1
|
||||||
alias: tag
|
alias: tag
|
||||||
permalink: /tags/{{ tag }}/
|
permalink: /tags/{{ tag }}/
|
||||||
image: /assets/img/ogi/tags.jpg
|
|
||||||
eleventyComputed:
|
eleventyComputed:
|
||||||
title: '{{ tag }}'
|
title: '{{ tag }}'
|
||||||
---
|
---
|
||||||
|
|
|
@ -3,7 +3,6 @@ title: Webrings
|
||||||
layout: default
|
layout: default
|
||||||
permalink: /webrings.html
|
permalink: /webrings.html
|
||||||
description: "Webrings are awesome! These are the ones I'm a member of."
|
description: "Webrings are awesome! These are the ones I'm a member of."
|
||||||
image: /assets/img/ogi/webrings.jpg
|
|
||||||
---
|
---
|
||||||
{% capture css %}
|
{% capture css %}
|
||||||
{% render "../assets/styles/pages/webrings.css" %}
|
{% render "../assets/styles/pages/webrings.css" %}
|
||||||
|
|