diff --git a/package.json b/package.json index 73ef64ac..3f878c10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "7.8.2", + "version": "7.9.0", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/social-preview.liquid b/src/social-preview.liquid index 2afd44a7..1e8873f5 100644 --- a/src/social-preview.liquid +++ b/src/social-preview.liquid @@ -10,56 +10,47 @@ eleventyExcludeFromCollections: true {% assign titleInLines = preview.data.title | splitLines: 40 %} - {% assign numberOfLines = titleInLines.length %} - {% if numberOfLines == 2 %} - {% assign verticalStartingPoint = 250 %} - {% elsif numberOfLines == 3 %} - {% assign verticalStartingPoint = 210 %} - {% elsif numberOfLines == 4 %} - {% assign verticalStartingPoint = 170 %} - {% elsif numberOfLines == 5 %} - {% assign verticalStartingPoint = 130 %} - {% else %} + {% assign numberOfLines = titleInLines.length %} + {% if numberOfLines == 1 %} + {% assign verticalStartingPoint = 340 %} + {% elsif numberOfLines == 2 %} {% assign verticalStartingPoint = 290 %} + {% elsif numberOfLines == 3 %} + {% assign verticalStartingPoint = 250 %} + {% elsif numberOfLines == 4 %} + {% assign verticalStartingPoint = 210 %} + {% elsif numberOfLines == 5 %} + {% assign verticalStartingPoint = 170 %} {% endif %} - + + - - {{ preview.date | dateToReadableDate}} + + {{ preview.date | date: "%B %e, %Y" }} {% for line in titleInLines %} {% capture spacing %}{{ forloop.index0 | times: 50 }}{% endcapture %} - + {{ line }} {% endfor %} - - - - {{ meta.siteName }} • {{ meta.url | replace: "https://", "" | replace: "http://", "" }} - \ No newline at end of file