You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/send-email.yml
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,7 @@ jobs:
151
151
152
152
# Extract title (handle both quoted and unquoted)
153
153
TITLE=$(echo "$FRONTMATTER" | grep "^title\s*=" | head -n 1 | sed 's/^title\s*=\s*//' | sed 's/^"\(.*\)"$/\1/' | sed "s/^'\(.*\)'$/\1/")
154
+
DESCRIPTION=$(echo "$FRONTMATTER" | grep "^description\s*=" | head -n 1 | sed 's/^description\s*=\s*//' | sed 's/^"\(.*\)"$/\1/' | sed "s/^'\(.*\)'$/\1/")
154
155
POST_SLUG=$(basename "$file" .md)
155
156
POST_URL="https://viruus.zip/$POST_SLUG/"
156
157
POST_DATE=$(echo "$FRONTMATTER" | grep "^date\s*=" | head -n 1 | sed 's/^date\s*=\s*//' | sed 's/^"\(.*\)"$/\1/' | sed "s/^'\(.*\)'$/\1/")
@@ -184,6 +185,10 @@ jobs:
184
185
# Fix relative image paths to absolute URLs
185
186
POST_HTML=$(echo "$POST_HTML" | sed 's|src="/images/|src="https://viruus.zip/images/|g')
186
187
188
+
# Inline CSS classes (email clients don't support external CSS)
189
+
# Convert class="half-width" to inline style
190
+
POST_HTML=$(echo "$POST_HTML" | sed 's|class="half-width"|style="width: 50%;"|g')
0 commit comments