Skip to content

optimize for the lyrics page #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions peterbecom/base/jinja2/_googlefonts.css

This file was deleted.

17 changes: 17 additions & 0 deletions peterbecom/base/jinja2/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

<title>{% block title %}{% block title_prefix %}{{ page_title }}{% endblock %} - Peterbe.com{% endblock %}</title>

{% if request.path == '/plog/blogitem-040601-1' -%}
{% stylesheet 'lyrics' %}
{% else %}
{% stylesheet 'base' %}
{% endif -%}

<meta name="description" content="Stuff in Peter's head">
<link rel="shortcut icon" href="{{ static("images/favicon-32.png") }}">
Expand Down Expand Up @@ -106,8 +110,15 @@ <h1 class="ui header">{% block page_title %}{{ page_title }}{% endblock %}</h1>
{% block content_body %}
{% endblock %}
{% endblock %}

{% if request.path == '/plog/blogitem-040601-1' %}
<p class="lyrics-footer">
&copy; <a href="https://www.peterbe.com">peterbe.com</a> 2003 - {{ THIS_YEAR }}
</p>
{% endif %}
</div>

{% if request.path != '/plog/blogitem-040601-1' %}
<div class="ui inverted vertical footer segment">
<div class="ui center aligned container">
<p>
Expand All @@ -131,9 +142,15 @@ <h1 class="ui header">{% block page_title %}{{ page_title }}{% endblock %}</h1>
</p>
</div>
</div>
{% endif %}


{% block basejs %}
{%- if request.path == '/plog/blogitem-040601-1' %}
{% javascript 'lyrics' %}
{% else %}
{% javascript 'base' %}
{% endif -%}
{% javascript 'cssrelpreload' %}
{% endblock %}

Expand Down
5 changes: 5 additions & 0 deletions peterbecom/base/static/css/lyrics.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.lyrics-footer {
font-size: 0.8em;
margin: 60px 0 40px 0;
text-align: center;
}
19 changes: 19 additions & 0 deletions peterbecom/base/static/css/peterbe.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,22 @@ h4 {
.ui.comments .comment a.metadata.reply:hover {
color: #1e70bf;
}


span.not-approved {
font-size:90%;
color:red;
padding-left:10px;
}
.ui.comments .comment .metadata {
display: inline-block;
margin-left: 0.5em;
color: rgba(0, 0, 0, 0.4);
font-size: 0.875em;
}
.ui.comments .comment .metadata a {
color: rgba(0, 0, 0, 0.4);
}
.ui.comments .comment .metadata a:hover {
color: rgba(0, 0, 0, 0.8);
}
253 changes: 0 additions & 253 deletions peterbecom/base/static/css/semantic/accordion.css

This file was deleted.

9 changes: 0 additions & 9 deletions peterbecom/base/static/css/semantic/accordion.min.css

This file was deleted.

Loading