Skip to content

Commit d4c5f85

Browse files
committed
SEO tweaks
1 parent 8e84d01 commit d4c5f85

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

_templates/layout.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
{{ super() }}
1616
<link rel="stylesheet" href="{{ pathto('_static/custom.css', 1) }}" type="text/css" />
1717

18+
{# Description used for search-engine snippets and social link previews. #}
19+
{%- set pysdr_description = "PySDR is a free online textbook (not a Python library!) that provides a gentle introduction to wireless communications and software-defined radio (SDR) using an abundance of diagrams, animations, and Python code examples." %}
20+
<meta name="description" content="{{ pysdr_description }}" />
21+
<meta property="og:title" content="{% if 'no title' in title %}{{ docstitle }}{% else %}{{ title|striptags|e }}{{ customtitlesuffix }}{% endif %}" />
22+
<meta property="og:description" content="{{ pysdr_description }}" />
23+
<meta property="og:type" content="website" />
24+
<meta property="og:url" content="https://pysdr.org/{{ pagename }}.html" />
25+
<meta property="og:image" content="https://pysdr.org/_static/logo.png" />
26+
<meta name="twitter:card" content="summary" />
27+
<meta name="twitter:description" content="{{ pysdr_description }}" />
28+
1829
<!-- Global site tag (gtag.js) - Google Analytics -->
1930
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TGRQK1JJYD"></script>
2031
<script>

0 commit comments

Comments
 (0)