FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add social preview (Open Graph) tags and og-image to docs pages by astra-intelligence · Pull Request #32496 · matplotlib/matplotlib · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .html  (1) .png  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Binary file added doc/_static/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Viewer requires iframe.
17 changes: 17 additions & 0 deletions doc/_templates/layout.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends "!layout.html" %}
{% block extrahead %}
{{ super() }}
<meta property="og:site_name" content="Matplotlib" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title|striptags|e }}" />
<meta property="og:description" content="Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python." />
<meta property="og:url" content="https://matplotlib.org/stable/{{ pagename }}.html" />
<meta property="og:image" content="https://matplotlib.org/stable/_static/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Matplotlib — Visualization with Python" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ title|striptags|e }}" />
<meta name="twitter:description" content="Matplotlib: Visualization with Python — comprehensive documentation." />
<meta name="twitter:image" content="https://matplotlib.org/stable/_static/og-image.png" />
{% endblock %}
Loading

Back | FazBrowse Home | New Git URL