Skip to content

Commit

Permalink
add basic og template
Browse files Browse the repository at this point in the history
  • Loading branch information
claromes committed Jun 18, 2024
1 parent 912e188 commit 61bb59b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 348 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ waybacktweets/utils/__pycache__

dist/
docs/_build/
!docs/_templates/**
Binary file added docs/_static/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/_templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "!page.html" %}

{% block extrahead %}
{{ super() }}
<meta name="description" content="Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data">

<meta property="og:title" content="{{ title|e }}" />
<meta property="og:description" content="Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data">
<meta property="og:image" content="https://claromes.github.io/waybacktweets/_static/assets/card.png" />

<meta name="twitter:title" content="{{ title|e }}">
<meta name="twitter:description" content="Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data">
<meta property="twitter:image" content="https://claromes.github.io/waybacktweets/_static/assets/card.png" />
{% endblock %}
9 changes: 0 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"sphinx_new_tab_link",
"sphinx_click.ext",
"sphinx_autodoc_typehints",
"sphinxext.opengraph",
]

templates_path = ["_templates"]
Expand Down Expand Up @@ -51,11 +50,3 @@
html_logo = "../assets/parthenon.png"
html_title = f"Wayback Tweets Documentation ({version})"
html_show_sourcelink = False

# -- Options for Open Graph -------------------------------------------------

ogp_site_url = "https://claromes.github.io/waybacktweets/"
ogp_social_cards = {
"site_url": "claromes.github.io/waybacktweets",
"line_color": "#000000",
}
Loading

0 comments on commit 61bb59b

Please sign in to comment.