|
| 1 | +<!doctype html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | +<meta charset=utf-8> |
| 5 | +<title>{{ title }}</title> |
| 6 | +<link rel=stylesheet href=/style.css> |
| 7 | +<link rel=alternate href=https://feeds.feedburner.com/BlogLtgtNet type=application/atom+xml> |
| 8 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 9 | +<link rel=canonical href="{{ site.github.url }}{{ page.url }}"> |
| 10 | +<link rel="me" href="https://piaille.fr/@tbroyer"> |
| 11 | +<link rel="me" href="https://mastodon.social/@tbroyer"> |
| 12 | +<link rel="me" href="https://twitter.com/@tbroyer"> |
| 13 | +<link rel="me" href="https://github.com/tbroyer"> |
| 14 | +<meta http-equiv="Content-Security-Policy" content=" |
| 15 | + default-src 'none'; |
| 16 | + img-src 'self' data:{% if discuss_url %} https://d2fltix0v2e0sb.cloudfront.net{% endif %}{% if has_embedded_tweets %} *.twitter.com *.twimg.com{% endif %}{{ additional_csp.img_src | prepend: " " }}; |
| 17 | + {%- if eleventy.env.runMode != "build" or has_playground_elements or has_embedded_tweets or additional_csp.script_src %} |
| 18 | + script-src{% if eleventy.env.runMode != "build" or has_playground_elements %} 'self'{% endif %}{% if has_embedded_tweets %} https://*.twitter.com https://*.twimg.com{% endif %}{{ additional_csp.script_src | prepend: " " }}; |
| 19 | + {%- endif %} |
| 20 | + {%- if has_playground_elements or has_embedded_tweets or additional_csp.script_src %} |
| 21 | + child-src{% if has_playground_elements %} https://unpkg.com{% endif %}{% if has_embedded_tweets %} https://*.twitter.com{% endif %}{{ additional_csp.child_src | prepend: " " }}; |
| 22 | + {%- endif %} |
| 23 | + style-src 'self'{% if has_embedded_tweets %} *.twitter.com{% endif %}{% if has_playground_elements %} 'unsafe-inline'{% endif %}; |
| 24 | + {%- if eleventy.env.runMode != "build" or has_playground_elements %} |
| 25 | + connect-src 'self'; |
| 26 | + worker-src 'self'; |
| 27 | + {%- endif %} |
| 28 | +"> |
| 29 | +{%- if has_playground_elements %} |
| 30 | +<script type=module src=/js/playground-elements.js></script> |
| 31 | +{%- endif %} |
| 32 | +{%- if has_embedded_tweets %} |
| 33 | +<meta name="twitter:widgets:csp" content="on"> |
| 34 | +<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> |
| 35 | +{%- endif %} |
| 36 | +</head> |
| 37 | +<body> |
| 38 | + |
| 39 | +{{ content }} |
| 40 | + |
| 41 | +{% if discuss_url -%} |
| 42 | +<p class=discuss>Discuss: <a href="{{ discuss_url }}"><img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Dev.to" width=30 height=30></a></p> |
| 43 | +{% endif -%} |
| 44 | +<footer><small> |
| 45 | +Copyright © {{ "today" | date: "%Y" }} Thomas Broyer. Except as noted, {{ title }} by <a href="https://github.com/tbroyer">Thomas Broyer</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>. |
| 46 | +</small></footer> |
| 47 | +</body> |
| 48 | +</html> |
0 commit comments