Skip to content

Commit 90d68ab

Browse files
committed
Add some per-page metadata for testing
1 parent 34850e3 commit 90d68ab

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

src/_templates/layout.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@
33
{%- block extrahead %}
44
{{ super() }}
55

6-
{% set site_name = "Scholarly API Cookbook" %}
6+
{% set site_name = "University of Alabama Libraries Scholarly API Cookbook" %}
77
{% set base = (html_baseurl or "https://ua-libraries-research-data-services.github.io/UALIB_ScholarlyAPI_Cookbook/") %}
88
{% set page_url = base ~ pagename ~ ('' if pagename.endswith('.html') else '.html') %}
99

1010
{# Prefer page description; fallback to a global site description #}
11-
{% set site_desc = "Practical tutorials and examples for working with scholarly APIs, research metadata, and reproducible data workflows using Python and R." %}
11+
{% set site_desc = "Example tutorials for working with scholarly APIs for academic scholarly research and teaching using Python and R." %}
1212
{% set page_desc = meta.get("description") if meta is defined else None %}
1313
{% set desc = page_desc or site_desc %}
1414

1515
{# Allow per-page overrides for social #}
1616
{% set og_title = (meta.get("og:title") if meta is defined else None) or (title|striptags) %}
1717
{% set og_type = (meta.get("og:type") if meta is defined else None) or "website" %}
18-
{% set og_image = (meta.get("og:image") if meta is defined else None) %}
19-
20-
{% set tw_card = (meta.get("twitter:card") if meta is defined else None) or "summary" %}
21-
{% set tw_image = (meta.get("twitter:image") if meta is defined else None) or og_image %}
2218

2319
<!-- Canonical Link -->
2420
<link rel="canonical" href="{{ page_url }}" />
@@ -30,11 +26,6 @@
3026
<meta property="og:type" content="{{ og_type }}" />
3127
<meta property="og:url" content="{{ page_url }}" />
3228

33-
<!-- Twitter Card -->
34-
<meta name="twitter:card" content="{{ tw_card }}" />
35-
<meta name="twitter:title" content="{{ og_title }}" />
36-
<meta name="twitter:description" content="{{ desc }}" />
37-
3829
<!-- LD+JSON -->
3930
<script type="application/ld+json">
4031
{

src/about/introduction.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. meta::
2+
:title: Scholarly API Cookbook Introduction
3+
:og:type: article
4+
15
Introduction
26
%%%%%%%%%%%%%%
37

src/python/chronam.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"---\n",
8+
"title: Chronicling America API in Python\n",
9+
"description: Tutorial for using the Chronicling America API with Python including use cases\n",
10+
"og:type: article\n",
11+
"---"
12+
]
13+
},
314
{
415
"cell_type": "markdown",
516
"metadata": {

0 commit comments

Comments
 (0)