cleaning up feed problems; adding styling for tables screen/print

This commit is contained in:
Peter Molnar 2017-11-30 17:00:08 +00:00
parent 7c8a180e2b
commit 8809548f97
4 changed files with 56 additions and 46 deletions

View file

@ -1,6 +1,7 @@
{% include 'block_header_open.html' %} {% include 'block_header_open.html' %}
<title>{{ taxonomy.title }}</title> <title>{{ taxonomy.title }}</title>
<link rel="alternate" type="application/rss+xml" title="{{ taxonomy.title }} feed" href="{{ taxonomy.feed }}" /> <link rel="alternate" type="application/atom+xml" title="{{ taxonomy.title }} feed" href="{{ taxonomy.feed }}" />
<link rel="self" href="{{ site.url }}{{ taxonomy.feed }}/" />
{% include 'block_header_close.html' %} {% include 'block_header_close.html' %}
@ -8,7 +9,7 @@
<aside class="follow"> <aside class="follow">
<p> <p>
<svg class="icon"><use xlink:href="#icon-rss" /></svg> <svg class="icon"><use xlink:href="#icon-rss" /></svg>
<a title="follow {{ taxonomy.title }}" href="{{ site.url }}{{ taxonomy.feed }}">RSS/Atom feed</a> <a title="follow {{ taxonomy.title }}" href="{{ site.url }}{{ taxonomy.feed }}">Atom feed</a>
</p> </p>
</aside> </aside>

View file

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel>
<title>{{ taxonomy.title }}</title>
<link>{{ site.url }}{{ taxonomy.feed }}</link>
<lastBuildDate>{{ taxonomy.lastmod }}</lastBuildDate>
<description>{{ site.title }}: {{ taxonomy.name }}</description>
{% for post in posts %}
<item>
<title>{{ post.title }}</title>
<link>{{ site.url }}/{{ post.slug }}/</link>
<content:encoded><![CDATA[{{ post.html }}]]></content:encoded>
<pubDate>{{ post.pubrfc }}</pubDate>
<guid>{{ site.url }}/{{ post.slug }}</guid>
<dc:language>{{ post.lang }}</dc:language>
{%- if post.tags %}{% for tname in post.tags %}
<category>{{ tname }}></category>
{% endfor %}{% endif -%}
</item>
{% endfor %}
</channel>
</rss>

View file

@ -6,7 +6,4 @@
<link rel="icon" href="{{ site.url }}/favicon.ico" /> <link rel="icon" href="{{ site.url }}/favicon.ico" />
<link rel="http://webmention.org/" href="{{ site.url }}/webmention" /> <link rel="http://webmention.org/" href="{{ site.url }}/webmention" />
<link rel="webmention" href="{{ site.url }}/webmention" /> <link rel="webmention" href="{{ site.url }}/webmention" />
<link rel="micropub" href="{{ site.url }}/micropub" /> <link rel="hub" href="{{ site.websub.hub }}">
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
<link rel="hub" href="https://petermolnar.superfeedr.com/">

View file

@ -94,17 +94,27 @@ blockquote {
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
width: 100%;
} }
td, th { td, th {
padding: 0.3rem; padding: 0.3rem;
border: 1px solid #333; border: 1px solid #111;
text-align:left;
} }
th { th {
font-weight: bold; font-weight: bold;
} }
th,
tr:nth-child(odd) {
background-color: #333;
}
tr:nth-child(even) {
background-color: #444;
}
hr { hr {
display: block; display: block;
height: 1px; height: 1px;
@ -225,11 +235,19 @@ code.sourceCode span.va { color: turquoise; }
/* licence, time, author */ /* licence, time, author */
.h-entry footer p { .h-entry footer p {
opacity: 0.7; color: #999;
padding: 0 0.6rem 0 0; padding: 0.3rem 0;
display: inline-block; display: inline-block;
} }
.h-entry footer a {
color: #ccc;
}
.h-entry footer a:hover {
color: #eee;
}
.e-content a { .e-content a {
color:#5193D4; color:#5193D4;
} }
@ -315,11 +333,19 @@ code.sourceCode span.va { color: turquoise; }
} }
.content-footer * { .content-footer * {
opacity: 0.9; color: #999;
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
.content-footer a {
color: #999;
}
.content-footer a:hover {
color: #eee;
}
.content-footer img { .content-footer img {
width: 1rem; width: 1rem;
margin: 0 0.3rem 0rem 0; margin: 0 0.3rem 0rem 0;
@ -638,14 +664,13 @@ figcaption {
} }
html, body { html, body {
font-size: 10pt !important; font-size: 11pt !important;
text-shadow: unset !important; text-shadow: unset !important;
font-family: Verdana, sans-serif !important;
} }
@page { @page {
margin: 0.5in; margin: 0.6in 0.5in;
orphans: 4;
widows: 3;
} }
.limit, .limit,
@ -662,19 +687,20 @@ figcaption {
page-break-inside: avoid !important; page-break-inside: avoid !important;
} }
figure {
max-height: 45vh;
}
a { a {
border: none; border: none;
color: #000; color: #000;
} }
td, th {
border: 1pt solid #666;
}
.content-note, .content-header, .content-footer, .content-note, .content-header, .content-footer,
video, audio, video, audio,
.footnotes ol li a[href^="#"], .footnotes ol li a[href^="#"],
.footnotes ol li a[href^="#"]:after { .footnotes ol li a[href^="#"]:after,
.exif svg,
.donation {
display:none; display:none;
visibility: hidden; visibility: hidden;
} }
@ -718,4 +744,15 @@ figcaption {
code.sourceCode span.ss { color: black; } code.sourceCode span.ss { color: black; }
code.sourceCode span.st { color: magenta; } code.sourceCode span.st { color: magenta; }
code.sourceCode span.va { color: darkturquoise; } code.sourceCode span.va { color: darkturquoise; }
figcaption {
font-size: 0.9em;
}
.adaptimg {
max-height: 35vh;
max-width: 90vw;
outline: none;
border: 1px solid #000;
}
} }