Commit 620e37e
Fix blog post preview images for LinkedIn sharing (#1465)
* Fix blog post preview images for LinkedIn sharing
- Update create_meta_tags() to accept URL parameter for specific page URLs
- Convert relative image paths to absolute URLs for better social media compatibility
- Pass blog post URL to create_meta_tags() instead of using homepage URL
- Fixes issue where LinkedIn shows homepage preview instead of blog-specific images
Co-Authored-By: Alek <[email protected]>
* Refactor image URL handling to consolidate branches
- Consolidate if/else branches for image URL construction as suggested by Greptile
- Use ternary expression to handle both cases (with/without leading slash) more concisely
- Maintains same functionality while improving code readability
Co-Authored-By: Alek <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <[email protected]>
Co-authored-by: Carlos <[email protected]>1 parent f84d331 commit 620e37e
2 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
101 | | - | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
108 | | - | |
| 115 | + | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
112 | | - | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
118 | | - | |
| 125 | + | |
119 | 126 | | |
120 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
0 commit comments