Skip to content

Commit

Permalink
Fixed navbar title wrapping, removed Piwik script
Browse files Browse the repository at this point in the history
  • Loading branch information
aleylara committed Feb 25, 2021
1 parent 24dd63e commit edcc344
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
8 changes: 7 additions & 1 deletion Peli-Kiera/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,17 @@ time {
}

#container nav ul li {
display: flex;
margin-left: 1em;
align-items: end;
}
#container nav ul li a {
line-height: 1.4em;
}

#container nav ul li a.active {
border-bottom: 0.5em solid #666666;
border-bottom: 0.2em solid #666666;
line-height: 1.4em;
}

#container main {
Expand Down
21 changes: 1 addition & 20 deletions Peli-Kiera/templates/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', '{{GOOGLE_ANALYTICS}}', '{{GA_COOKIE_DOMAIN if GA_COOKIE_DOMAIN else 'auto'}}');
ga('create', '{{GOOGLE_ANALYTICS}}', '{{GA_COOKIE_DOMAIN if GA_COOKIE_DOMAIN else "auto"}}');
ga('send', 'pageview');
</script>
{% endif %}
Expand All @@ -24,22 +24,3 @@
})();
</script>
{% endif %}
{% if PIWIK_URL and PIWIK_SITE_ID %}
<script type="text/javascript">
{% if PIWIK_SSL_URL %}
var pkBaseURL = "{{ PIWIK_SSL_URL }}";
{% else %}
var pkBaseURL = "{{ PIWIK_URL }}";
{% endif %}
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http")+"://"+pkBaseURL+"/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
{% endif %}
2 changes: 1 addition & 1 deletion Peli-Kiera/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% block content %}
<main>
<article>
<h2>{{ article.title }}</h2>
<h1>{{ article.title }}</h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<aside>
Expand Down
6 changes: 3 additions & 3 deletions Peli-Kiera/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<ul>
{% for article in articles_page.object_list %}
<li>
<h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
<aside>
<ul>
<li>
Expand All @@ -31,4 +31,4 @@ <h2><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
{% endif %}
</section>
</main>
{% endblock content %}
{% endblock content %}

0 comments on commit edcc344

Please sign in to comment.