Skip to content

Commit

Permalink
BUG: fix twitter card
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenfoo committed Jun 28, 2019
1 parent 9490a31 commit 7c8c51e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 0 additions & 5 deletions include/twitter_card.html

This file was deleted.

6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
<script>var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(101159456);</script>
<script async src="//static.getclicky.com/js"></script>

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@_eigenfoo">
<meta name="twitter:creator" content="@_eigenfoo">
<meta name="twitter:title" content="Common statistical tests are linear models: Python port">
<meta name="twitter:image" content="https://eigenfoo.xyz/tests-as-linear/cheatsheets/linear_tests_cheat_sheet.png">



<style type="text/css">
Expand Down
8 changes: 7 additions & 1 deletion scripts/process-html.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/bash

# Embed Clicky web analytics.
# Embed Clicky web analytics and Twitter card.
LINE=9
head -n $LINE tests-as-linear.html > index.html
echo '<script>var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(101159456);</script>' >> index.html
echo '<script async src="//static.getclicky.com/js"></script>' >> index.html
echo '' >> index.html
echo '<meta name="twitter:card" content="summary_large_image">' >> index.html
echo '<meta name="twitter:site" content="@_eigenfoo">' >> index.html
echo '<meta name="twitter:creator" content="@_eigenfoo">' >> index.html
echo '<meta name="twitter:title" content="Common statistical tests are linear models: Python port">' >> index.html
echo '<meta name="twitter:image" content="https://eigenfoo.xyz/tests-as-linear/cheatsheets/linear_tests_cheat_sheet.png">' >> index.html
tail -n +$LINE tests-as-linear.html >> index.html

# Change title.
Expand Down

0 comments on commit 7c8c51e

Please sign in to comment.