Fix mastodon text

This commit is contained in:
Tom 2025-05-28 13:02:19 +02:00
parent 365df899c7
commit 86a3ef632c
2 changed files with 10 additions and 3 deletions

View File

@ -30,9 +30,12 @@
</section>
<!-- Hidden content to control how this gets posted to Mastodon -->
{% capture default_mastodon_text %}
New blog post: {{ page.title }} - {{page.excerpt}}
{% endcapture %}
<div class="e-bridgy-mastodon-content hidden">
New blog post: {{ page.title }} - {{page.excerpt}}
<img src = "{{ page.thumbnail | default: page.image}}"
{{ page.social_text | default_mastodon_text }}
<img src = "{{ page.social_image }}"
class = "u-featured"
alt="{{page.alt | smartify}}">
</div>

View File

@ -2,13 +2,17 @@
title: Bind, Borrow, Deref
layout: post
excerpt: Safely sharing objects between Python and Rust using PyO3
social_text: |
I'm working on a python package with a rust backend so I wrote a bit about PyO3's model of shared ownership between python and rust.
draft: False
assets: /assets/blog/pyo3-smart-pointers
thumbnail: /assets/blog/pyo3-smart-pointers/thumbnail.svg
social_image: /assets/blog/pyo3-smart-pointers/thumbnail.png
alt: An SVG of the text 'Py<T>' with the T in orange.
alt: An image of the text 'Py<T>' with the T in orange.
image_class: invertable
---
<section class="note" markdown=1>