An Example of a Distill-Style Blog Post
Demonstrating the academic Distill layout with equations, citations, and rich formatting.
Introduction
The general theory of relativity, published by Albert Einstein in November 1915, represents one of the most profound intellectual achievements in the history of science. Where Newton’s theory of gravity described a force acting instantaneously across space, Einstein’s framework reimagines gravity as the curvature of a four-dimensional spacetime continuum. Mass and energy warp the fabric of spacetime, and objects in free fall follow the straightest possible paths — called geodesics — through that curved geometry.
This post demonstrates the Distill-style layout for academic blog posts in the as-folio template. It showcases mathematical typesetting via KaTeX, code blocks, callout boxes, and structured sections that mirror the scholarly aesthetic of Distill.pub.
Equations
The Einstein Field Equations
At the heart of general relativity are the Einstein field equations:
where is the Einstein tensor, is the cosmological constant, is Newton’s gravitational constant, is the speed of light, and is the stress-energy tensor encoding the distribution of matter and energy.
The left-hand side describes the geometry of spacetime; the right-hand side describes its content. This elegant equality encapsulates a deep physical truth: spacetime curvature and matter-energy are inseparably linked.
Special Relativistic Energy
From the special theory of relativity (1905), the rest energy of a body is given by:
More generally, for a moving body with momentum :
When we recover the famous rest-mass relation. The full energy-momentum relation reveals that massless particles (such as photons) carry energy , consistent with observed light behavior in experiments such as the Compton effect.
Geodesic Equation
The trajectory of a freely-falling particle through curved spacetime satisfies the geodesic equation:
Here are the Christoffel symbols — connection coefficients encoding how the coordinate basis vectors change from point to point — and is the proper time measured along the particle’s worldline.
Code Blocks
A common numerical task in general relativity is computing the Schwarzschild radius of a black hole:
import scipy.constants as const
def schwarzschild_radius(mass_kg: float) -> float:
"""
Compute the Schwarzschild radius of a body.
Parameters
----------
mass_kg : float
Mass in kilograms.
Returns
-------
float
Schwarzschild radius in metres.
"""
G = const.G # 6.674e-11 m^3 kg^-1 s^-2
c = const.c # 2.998e8 m s^-1
return 2 * G * mass_kg / c**2
# Sun's Schwarzschild radius
M_sun = 1.989e30 # kg
r_s = schwarzschild_radius(M_sun)
print(f"Solar Schwarzschild radius: {r_s:.0f} m") # ≈ 2954 m (~2.95 km)
The Sun’s Schwarzschild radius of approximately 3 km illustrates why ordinary stars are not black holes: the Sun’s actual radius ( km) is far larger than this critical threshold.
Experimental Confirmations
Historical note: The first observational confirmation of general relativity came during the solar eclipse of 29 May 1919, when Arthur Eddington’s expedition measured the deflection of starlight passing near the Sun. The observed deflection of agreed with Einstein’s prediction and made headlines worldwide.
General relativity has since been confirmed by a remarkable suite of experiments:
-
Perihelion precession of Mercury — The 43 arcseconds per century excess precession, unexplained by Newtonian mechanics, falls naturally out of GR.
-
Gravitational redshift — Photons climbing out of a gravitational well lose energy. The Pound–Rebka experiment (1959) measured this effect in a laboratory setting.
-
Gravitational waves — Predicted by Einstein in 1916, these ripples in spacetime were directly detected by LIGO on 14 September 2015 from the merger of two black holes roughly billion light-years away.
-
Black hole imaging — The Event Horizon Telescope collaboration produced the first direct image of a black hole shadow in M87 (2019) and Sgr A* (2022), matching GR predictions.
The Distill Layout
This post uses the Distill layout (distill: true in frontmatter), which renders with an
academic-paper aesthetic:
- Authors are listed below the title with optional affiliations and links.
- The table of contents sidebar (desktop) provides quick navigation.
- Section headings use a bold bottom-border style reminiscent of journal articles.
- Block quotes are styled as aside panels with a colored left border.
- Custom
.distill-notedivs render as highlighted callout boxes.
The layout is defined in src/layouts/Distill.astro and activated automatically via
src/pages/blog/[slug].astro when post.data.distill === true.
Conclusion
Einstein’s general theory of relativity remains one of the most accurately tested physical theories ever constructed. From GPS satellites (which must correct for both special and general relativistic time dilation to maintain centimetre-level accuracy) to the detection of gravitational waves from colliding neutron stars, GR continues to shape our deepest understanding of space, time, and gravity.
The mathematical machinery — Riemannian geometry, tensor calculus, differential topology — that Einstein marshalled to describe gravity has also found applications far beyond physics, influencing modern machine learning (differential geometry on manifolds), computer vision (gauge-equivariant networks), and theoretical computer science. The unreasonable effectiveness of mathematics, as Wigner noted, is on full display.