on master help sign in
External links only on index.html
commiteccc5b72aa6db89da0978d76312bf95236102fcb authorMatilde Park <matilde@tlon.io> dateThu 5 Sep 2019, 15:22 (7 years ago) parentb2516d1
2 files changed+10−6
templates/base.html+4−6 templates/index.html+6
templates/base.html+4−6
@@ -17,10 +17,7 @@
1717 /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
1818 We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
1919
20− /* external link css need template processing */
21− a[href*="//"]:not([href*="{{config.base_url | safe}}"])::after {
22− content: "↗";
23− }
20+ {% block templatestyles %} {% endblock templatestyles%}
2421 </style>
2522 <link rel="stylesheet" href="/indigo.css">
2623 <link rel="stylesheet" href="/styles.css">
@@ -39,8 +36,9 @@
3936 })();
4037 </script>
4138 </head>
42− <body>
43− <!-- content -->
39+ <body {% block bodyclasses %} {% endblock bodyclasses %}>
40+ {% include "partials/search-overlay.html" %}
41+ <!-- content -->
4442 {% block content %}
4543 {% endblock content %}
4644 <!-- scripts -->
templates/index.html+6
@@ -1,4 +1,10 @@
11{% extends "base.html" %}
2+<!--External links are differentiated on home page.-->
3+{% block templatestyles %}
4+a[href*="//"]:not([href*="{{config.base_url | safe}}"])::after {
5+ content: "↗";
6+}
7+{% endblock templatestyles %}
28{% block title %} {{ section.title }} {% endblock title %}
39{% block content %}
410<nav class="home mt6">