chiark / gitweb /
plugins: adapt to theme changes, reduce unnecessary noise.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 17:53:10 +0000 (18:53 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 17:53:10 +0000 (18:53 +0100)
25 files changed:
pelican-plugins/m/test/__init__.py
pelican-plugins/m/test/abbr/page.html
pelican-plugins/m/test/abbr/page.rst
pelican-plugins/m/test/code/page.html
pelican-plugins/m/test/code/page.rst
pelican-plugins/m/test/components/page.html
pelican-plugins/m/test/components/page.rst
pelican-plugins/m/test/dox/page.html
pelican-plugins/m/test/filesize/page.html
pelican-plugins/m/test/filesize/page.rst
pelican-plugins/m/test/gh/page.html
pelican-plugins/m/test/gl/page.html
pelican-plugins/m/test/htmlsanity_content/page.html
pelican-plugins/m/test/htmlsanity_typography/article-jumbo.html
pelican-plugins/m/test/htmlsanity_typography/article-lang.html
pelican-plugins/m/test/htmlsanity_typography/author-an-author.html
pelican-plugins/m/test/htmlsanity_typography/category-a-category.html
pelican-plugins/m/test/htmlsanity_typography/page-lang.html
pelican-plugins/m/test/htmlsanity_typography/page.html
pelican-plugins/m/test/htmlsanity_typography/tag-tagging-a-name.html
pelican-plugins/m/test/htmlsanity_typography_global_lang/page.html
pelican-plugins/m/test/images/page.html
pelican-plugins/m/test/math/page.html
pelican-plugins/m/test/test_code.py
pelican-plugins/m/test/test_htmlsanity.py

index a44afabc450f5f42198d069a9f821f3567959c2d..0d87b1618166c8eeac984887eb9d160582b8468b 100644 (file)
@@ -59,9 +59,10 @@ class PluginTestCase(unittest.TestCase):
             'THEME': '../pelican-theme',
             'PLUGIN_PATHS': ['.'],
             'THEME_STATIC_DIR': 'static',
-            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i',
+            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i',
                'static/m-dark.css'],
             'M_FINE_PRINT': None,
+            'M_DISABLE_SOCIAL_META_TAGS': True,
             'DIRECT_TEMPLATES': [],
             'SLUGIFY_SOURCE': 'basename'
         }
index b827dd0522d3aac59a930961c739c99f83f0224b..4a121abf91df7a6d3dfbe7f100f90e4b2bb6925b 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.abbr | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.abbr" />
-  <meta name="twitter:title" content="m.abbr" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 5268b216075326afefd6c265fd2123af96fb08fa..2d8118aa643f4f7a551ccbb4292c18c79781e3a8 100644 (file)
@@ -1,6 +1,4 @@
 m.abbr
 ######
 
-:summary: no.
-
 :abbr:`Text <Title>`. :abbr:`Text`.
index e437108b957a482860b3a405b7a977bab8bc3e9b..6e5050d4502bbcb41de7637209a5f5ebf6c6853b 100644 (file)
@@ -5,15 +5,8 @@
   <title>m.code | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.code" />
-  <meta name="twitter:title" content="m.code" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 8aed59c6626ffc1f64ab626202d68c0f212ea19e..2850b28c3ac6109d72704599aedfbf888a5e4dbb 100644 (file)
@@ -1,8 +1,6 @@
 m.code
 ######
 
-:summary: no.
-
 .. role:: cpp(code)
     :language: c++
 
index c1359bc2b61f44f34b2bae40189d274f539e484d..4f30ba61a0d0999bdbd6bdbefbf7fd6c47c9a5ac 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.components | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.components" />
-  <meta name="twitter:title" content="m.components" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 6ea0b30823182fc4363d4978aa18b50064160b3d..190891fd2bebb50253fd93ed8278823d625c3cc0 100644 (file)
@@ -1,8 +1,6 @@
 m.components
 ############
 
-:summary: no.
-
 .. block-default:: Default block
 
     Text.
index f88fa1fd49e834eb631e0545197f879829c9a10e..1a8e0c6261ce0f179077579d2fd7da5ee31d36d8 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.dox | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.dox" />
-  <meta name="twitter:title" content="m.dox" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="Function link: Utility::Directory::mkpath() Class link: Interconnect::Emitter Page link: building-corrade Custom link title" />
-  <meta name="twitter:description" content="Function link: Utility::Directory::mkpath() Class link: Interconnect::Emitter Page link: building-corrade Custom link title" />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index d5564c4c0d943bb1ad821d74617286b36afa248f..b7ea6e59f1af38afd03b8ffb8b961775fddfc276 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.filesize | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.filesize" />
-  <meta name="twitter:title" content="m.filesize" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
@@ -30,7 +23,7 @@
       <div class="m-col-l-10 m-push-l-1">
         <h1>m.filesize</h1>
 <!-- content -->
-<p>This file has <span>132.0 B</span> and <span>106.0 B</span>
+<p>This file has <span>117.0 B</span> and <span>91.0 B</span>
 gzipped.</p>
 <!-- /content -->
       </div>
index 18d748a20eb9c2f20e4870711a27697c6efbce0f..c247d02deca152539a3c1022cbb85c833991c5c0 100644 (file)
@@ -1,7 +1,5 @@
 m.filesize
 ##########
 
-:summary: no.
-
 This file has :filesize:`{filename}/page.rst` and :filesize-gz:`{filename}/page.rst`
 gzipped.
index d5a947f3f90130b8ac933694188c85c882188d21..5d7332ab03efc3faca526d19ae2b29cad6169b5f 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.gh | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.gh" />
-  <meta name="twitter:title" content="m.gh" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="Profile link: @mosra Repository link: mosra/m.css Commit link: mosra/m.css@4d36222 Issue/PR link: mosra/magnum#123 Tree link: https://github.com/mosra/m.css/tree/next Tag link: https://github.com/mosra/magnum/releases/tag/snapshot-2015-05 File link: https://github.com/mosra/m.css/tree/master …" />
-  <meta name="twitter:description" content="Profile link: @mosra Repository link: mosra/m.css Commit link: mosra/m.css@4d36222 Issue/PR link: mosra/magnum#123 Tree link: https://github.com/mosra/m.css/tree/next Tag link: https://github.com/mosra/magnum/releases/tag/snapshot-2015-05 File link: https://github.com/mosra/m.css/tree/master …" />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
@@ -48,4 +41,4 @@
 </article>
 </main>
 </body>
-</html>
\ No newline at end of file
+</html>
index e70b4940259e04e5753e1a0daa1ad3e32f7e21e0..9ae1fd4e5d020314f6515eb65f9d3b37a9effbc6 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.gl | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.gl" />
-  <meta name="twitter:title" content="m.gl" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="Function link: glDispatchCompute() Extension link: ARB_direct_state_access Extension function link: glSpecializeShaderARB() Custom link title" />
-  <meta name="twitter:description" content="Function link: glDispatchCompute() Extension link: ARB_direct_state_access Extension function link: glSpecializeShaderARB() Custom link title" />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
@@ -43,4 +36,4 @@
 </article>
 </main>
 </body>
-</html>
\ No newline at end of file
+</html>
index 7ca916a161536873f5fdf123a473357dee9d8342..3c1322060f726195465efbc8456b9469a089e399 100644 (file)
@@ -5,15 +5,8 @@
   <title>A page | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="A page" />
-  <meta name="twitter:title" content="A page" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 998bc35c2a283b02d32ab659d8ac7b08a1ae1894..c06c07bfbc8ec4a8a89561edb79772a329a61692 100644 (file)
@@ -1,21 +1,21 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>A jumbo article | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="article-jumbo.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta name="keywords" content="Tagging a name" />
+  <meta property="og:site_name" content="A Pelican Blog" />
   <meta property="og:title" content="A jumbo article" />
   <meta name="twitter:title" content="A jumbo article" />
   <meta property="og:url" content="article-jumbo.html" />
-  <meta name="twitter:url" content="article-jumbo.html" />
   <meta property="og:description" content="Article content." />
   <meta name="twitter:description" content="Article content." />
   <meta property="og:image" content="image.jpg" />
-  <meta name="twitter:card" content="summary_large_image" />
   <meta name="twitter:image" content="image.jpg" />
+  <meta name="twitter:card" content="summary_large_image" />
   <meta property="og:type" content="article" />
 </head>
 <body>
index 5084f4e31e6f37fc930dfa8e9c6cd530d1110d4b..96b273ae229fd4b52be4fe134bcf3c62c1a9e65c 100644 (file)
@@ -1,16 +1,16 @@
 <!DOCTYPE html>
-<html lang="cs">
+<html lang="cs" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Article in different language | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="article-lang.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta name="keywords" content="Tagging a name" />
+  <meta property="og:site_name" content="A Pelican Blog" />
   <meta property="og:title" content="Article in different language" />
   <meta name="twitter:title" content="Article in different language" />
   <meta property="og:url" content="article-lang.html" />
-  <meta name="twitter:url" content="article-lang.html" />
   <meta property="og:description" content="Text tohoto článku je česky (přičemž DEFAULT_LANG je &#39;en&#39;) a měl by tedy mít české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:description" content="Text tohoto článku je česky (přičemž DEFAULT_LANG je &#39;en&#39;) a měl by tedy mít české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:card" content="summary" />
index 2290f3f9a7e9fa9d422cc871eda65811e005e47c..dc6232000d31640f15472b5303abcb16f3851fce 100644 (file)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Posts by An Au­thor | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:site_name" content="A Pelican Blog" />
+  <meta property="og:title" content="An Au­thor" />
+  <meta name="twitter:title" content="An Au­thor" />
+  <meta property="og:url" content="author-an-author.html" />
+  <meta name="twitter:card" content="summary" />
+  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 2ecb71d8f527060bd9b5da5a8b250fa767e9c8cf..90464e17eafcd8cf1f6fe1661ea6a561c8403856 100644 (file)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>A category | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:site_name" content="A Pelican Blog" />
+  <meta property="og:title" content="A category" />
+  <meta name="twitter:title" content="A category" />
+  <meta property="og:url" content="category-a-category.html" />
+  <meta name="twitter:card" content="summary" />
+  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 9b576d194393987fc59d7db537d12f1d2c6527c2..0776218e7252aeff5322c276ef8b47a97855bd46 100644 (file)
@@ -1,19 +1,20 @@
 <!DOCTYPE html>
-<html lang="cs">
+<html lang="cs" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Page in different language | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page-lang.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:site_name" content="A Pelican Blog" />
   <meta property="og:title" content="Page in different language" />
   <meta name="twitter:title" content="Page in different language" />
-  <meta property="og:url" content="pages/page-lang-cs.html" />
-  <meta name="twitter:url" content="pages/page-lang-cs.html" />
+  <meta property="og:url" content="page-lang.html" />
   <meta property="og:description" content="Text této stránky je česky (přičemž DEFAULT_LANG je &#39;en&#39;) a měl by tedy mít české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:description" content="Text této stránky je česky (přičemž DEFAULT_LANG je &#39;en&#39;) a měl by tedy mít české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
+  <meta property="og:type" content="page" />
 </head>
 <body>
 <header><nav id="navigation">
index 1dbcf191f3bcc2cd5f8b2658798cc535f17acaa9..45d132810a35a970f87fea865643d3040bf2afd9 100644 (file)
@@ -1,21 +1,22 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Page title should not be hyphenated. “But quotes yes.” | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
   <link rel="stylesheet" href="and-definitely-not-css-links.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <meta name="description" content="Neither the description. “But quotes yes.”" />
+  <meta property="og:site_name" content="A Pelican Blog" />
   <meta property="og:title" content="Page title should not be hyphenated. “But quotes yes.”" />
   <meta name="twitter:title" content="Page title should not be hyphenated. “But quotes yes.”" />
   <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
   <meta property="og:description" content="Page summary in the meta tag should not be hyphenated. “But quotes yes.”" />
   <meta name="twitter:description" content="Page summary in the meta tag should not be hyphenated. “But quotes yes.”" />
   <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
+  <meta property="og:type" content="page" />
 </head>
 <body>
 <header><nav id="navigation">
index e335bda53c0ef13b59de0aa0c44cacb7c308a2c2..328745a4ba1bc4938f2ddf678a4635489072c980 100644 (file)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Posts tagged Tagging a name | A Pelican Blog</title>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:site_name" content="A Pelican Blog" />
+  <meta property="og:title" content="Tagging a name" />
+  <meta name="twitter:title" content="Tagging a name" />
+  <meta property="og:url" content="tag-tagging-a-name.html" />
+  <meta name="twitter:card" content="summary" />
+  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 49cdfba73b02b2f7fc2982aa105dd0a217ea4b5a..4d30bb8bda6f4678b0436bf8867cc7856abcc706 100644 (file)
@@ -1,19 +1,20 @@
 <!DOCTYPE html>
-<html lang="cs">
+<html lang="cs" prefix="og: http://ogp.me/ns#">
 <head>
   <meta charset="UTF-8" />
   <title>Hyphenation in other languages | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i&amp;subset=latin-ext" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+  <meta property="og:site_name" content="A Pelican Blog" />
   <meta property="og:title" content="Hyphenation in other languages" />
   <meta name="twitter:title" content="Hyphenation in other languages" />
   <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
   <meta property="og:description" content="Text všech stránek je česky (DEFAULT_LANG je &#39;cs&#39;) a měl by mít tedy české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:description" content="Text všech stránek je česky (DEFAULT_LANG je &#39;cs&#39;) a měl by mít tedy české dělení slov. „A také české uvozovky.“" />
   <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
+  <meta property="og:type" content="page" />
 </head>
 <body>
 <header><nav id="navigation">
index 3ddd6adc4426c0ff3ea554c4456618af4cb92e19..8f1b0722744706fbd5ef48a73074dfd5ca197f58 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.images | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.images" />
-  <meta name="twitter:title" content="m.images" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index 57f0a552d49bbe0fe803b8d4b510bc33b4bbc578..a1efbdf86a7044fa81385911ee3e2353e743072d 100644 (file)
@@ -3,17 +3,10 @@
 <head>
   <meta charset="UTF-8" />
   <title>m.math | A Pelican Blog</title>
-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i" />
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i" />
   <link rel="stylesheet" href="static/m-dark.css" />
+  <link rel="canonical" href="page.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <meta property="og:title" content="m.math" />
-  <meta name="twitter:title" content="m.math" />
-  <meta property="og:url" content="page.html" />
-  <meta name="twitter:url" content="page.html" />
-  <meta property="og:description" content="no." />
-  <meta name="twitter:description" content="no." />
-  <meta name="twitter:card" content="summary" />
-  <meta property="og:type" content="website" />
 </head>
 <body>
 <header><nav id="navigation">
index f3183e1d193f8f31df9fe5217f03b32d9fb996c6..4bda733c627ded84da11acaa35b1cf4ce43e1613 100644 (file)
 
 from m.test import PluginTestCase
 
-class Abbr(PluginTestCase):
+class Code(PluginTestCase):
     def __init__(self, *args, **kwargs):
         super().__init__(__file__, '', *args, **kwargs)
 
     def test(self):
         self.run_pelican({
+            # Need Source Code Pro for code
+            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i',
+                            'static/m-dark.css'],
             'PLUGINS': ['m.htmlsanity', 'm.code']
         })
 
index 269084f9f9eb31605d58aa2335e2fab475a2f383..6924f74b40d0cbe05c0de92e6c0b3d7c4fff5881 100644 (file)
@@ -30,6 +30,9 @@ class Content(PluginTestCase):
 
     def test(self):
         self.run_pelican({
+            # Need Source Code Pro for code
+            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i',
+                            'static/m-dark.css'],
             'PLUGINS': ['m.htmlsanity']
         })
 
@@ -42,17 +45,19 @@ class Typography(PluginTestCase):
 
     def test(self):
         self.run_pelican({
-            # Need extended Latin characters for Czech text
+            # Need code font + extended Latin characters for Czech text
             'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&subset=latin-ext',
                             'static/m-dark.css'],
             'PLUGINS': ['m.htmlsanity'],
             'M_HTMLSANITY_HYPHENATION': True,
             'M_HTMLSANITY_SMART_QUOTES': True,
             'M_FINE_PRINT': "The footer should be hyphenated as well. \"And with smart quotes.\"",
+            'M_DISABLE_SOCIAL_META_TAGS': False,
             'M_SHOW_AUTHOR_LIST': True,
             'DATE_FORMATS': {'en': ('en_US.UTF-8', '%b %d, %Y'),
                              'cs': ('en_US.UTF-8', '%b %d, %Y')},
             'PAGE_LANG_SAVE_AS': '{slug}.html',
+            'PAGE_LANG_URL': '{slug}.html',
             'ARTICLE_SAVE_AS': 'article-{slug}.html',
             'ARTICLE_URL': 'article-{slug}.html',
             'ARTICLE_LANG_SAVE_AS': 'article-{slug}.html',
@@ -91,13 +96,14 @@ class TypographyGlobalLang(PluginTestCase):
     def test(self):
         self.run_pelican({
             # Need extended Latin characters for Czech text
-            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&subset=latin-ext',
+            'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i&subset=latin-ext',
                             'static/m-dark.css'],
             'PLUGINS': ['m.htmlsanity'],
             'DEFAULT_LANG': 'cs',
             'M_HTMLSANITY_HYPHENATION': True,
             'M_HTMLSANITY_SMART_QUOTES': True,
-            'M_FINE_PRINT': "Patička má dělení slov také. \"A chytré uvozovky.\""
+            'M_FINE_PRINT': "Patička má dělení slov také. \"A chytré uvozovky.\"",
+            'M_DISABLE_SOCIAL_META_TAGS': False,
         })
 
         # The <html> lang element should be set correctly and the &shy; should