start css

This commit is contained in:
L3D 2019-07-01 00:33:29 +02:00
parent 8f18d4eb0c
commit 103ff54e19
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 120 additions and 39 deletions

66
assets/css/xml.css Normal file
View file

@ -0,0 +1,66 @@
/* This CSS stylesheet is an example of how we can style XML with CSS */
/* Group behavior */
channel {
display:block;
border: 1px solid gray;
margin:0.5em;
padding:0.5em;
background-color:whitesmoke;
list-style: none;
color: black;
}
item {
display:block;
border: 1px solid silver;
margin:0.5em;
padding:0.5em;
background-color:whitesmoke;
}
/* single items */
title {
color: #ee7402;
font-size: 120%;
}
title:before,
link:after{
content: '\a';
white-space: pre;
}
title:after{
content: '\a\a';
white-space: pre;
}
link{
color: navy;
text-decoration: underline;
}
link:before{ content: "Link: "; }
description{
color: #f94f22;
}
language:before{ content:" In "; }
language:after{ content:"utscher Sprache."; }
description:before{ content: "Beschreibung:"; }
id,
copyright,
generator,
updated,
pubDate,
lastBuildDate{ display: none; }
itunes\:owner{ display: none; }
name {color:red; text-decoration: underline}
price {color:green}
stock {color:brown}
country {color:blue}
/* IE supports the ID selector also for XML */
product#p4 {text-align:right}
/* Alternative in: Firefox, Opera, Google Chrome *
/product[id=p4] {text-align:right}
/* IE supports the class attribute for XML */
product.special {background-color:mistyrose}
/* Alternative in: Firefox, Opera, Google Chrome */
product[class=special] {background-color:mistyrose}

View file

@ -1,6 +1,17 @@
{%- set baseurl = "https://podcast.c3woc.de" -%} {%- set baseurl = "https://podcast.c3woc.de" -%}
{%- set search = "eisen" -%} {%- set search = "eisen" -%}
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href=
{%- if '/css/xml.min.css'|asseturl == empty -%}
{%- if '/css/xml.css'|asseturl == empty -%}
"https://{{ baseurl }}/css/main.min.css"
{%- else -%}
"{{ '/css/xml.css'|asseturl }}"
{%- endif -%}
{%- else -%}
"{{ '/css/xml.min.css'|asseturl }}"
{%- endif -%}
type="text/css"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel> <channel>
<title type="text"> <title type="text">
@ -27,38 +38,38 @@
{%- for page in pages -%} {%- for page in pages -%}
{%- if not page._hidden %} {%- if not page._hidden %}
{%- if firstrun == true %} {%- if firstrun == true %}
{# #} <pubDate>2019-06-14T00:42:23Z</pubDate> {# #} <pubDate>2019-06-14T00:42:23Z</pubDate>
{# #} <lastBuildDate>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</lastBuildDate> {# #} <lastBuildDate>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</lastBuildDate>
{# #} <itunes:author>L3D</itunes:author> {# #} <itunes:author>L3D</itunes:author>
{# #} <itunes:subtitle>Der Podcast des CCC Waffel Operation Center</itunes:subtitle> {# #} <itunes:subtitle>Der Podcast des CCC Waffel Operation Center</itunes:subtitle>
{# #} <itunes:summary> {# #} <itunes:summary>
{%- if bag('translate', this.alt, 'hefeed_description') -%} {%- if bag('translate', this.alt, 'hefeed_description') -%}
{{ bag('translate', this.alt, 'hefeed_description') }} {{ bag('translate', this.alt, 'hefeed_description') }}
{%- else -%} {%- else -%}
Der Waffelpodcast: 'Das heisse Eisen'. Mit Venty und L3D. Der Waffelpodcast: 'Das heisse Eisen'. Mit Venty und L3D.
{%- endif -%} {%- endif -%}
</itunes:summary> </itunes:summary>
{# #} <itunes:keywords> {# #} <itunes:keywords>
{%- if bag('translate', this.alt, 'hefeed_keywords') -%} {%- if bag('translate', this.alt, 'hefeed_keywords') -%}
{{ bag('translate', this.alt, 'hefeed_keywords') }} {{ bag('translate', this.alt, 'hefeed_keywords') }}
{%- else -%} {%- else -%}
Waffel, C3WOC, CCC, Chaos, Waffle, Waffles, Waffeln, VOC, WOC, Operation, Center Waffel, C3WOC, CCC, Chaos, Waffle, Waffles, Waffeln, VOC, WOC, Operation, Center
{%- endif -%} {%- endif -%}
</itunes:keywords> </itunes:keywords>
{# #} <itunes:explicit>no</itunes:explicit> {# #} <itunes:explicit>no</itunes:explicit>
{# #} <itunes:owner> {# #} <itunes:owner>
{# #} <itunes:name>L3D</itunes:name> {# #} <itunes:name>L3D</itunes:name>
{# #} <itunes:email>l3d@c3woc.de</itunes:email> {# #} <itunes:email>l3d@c3woc.de</itunes:email>
{# #} </itunes:owner> {# #} </itunes:owner>
{# #} <itunes:image href="{{ baseurl }}/eisen/c3woc-podcastlogo.svg" /> {# #} <itunes:image href="{{ baseurl }}/eisen/c3woc-podcastlogo.svg" />
{# #} <itunes:new-feed-url>{{ baseurl }}/podcast-he.xml</itunes:new-feed-url> {# #} <itunes:new-feed-url>{{ baseurl }}/podcast-he.xml</itunes:new-feed-url>
{# #} <itunes:block>no</itunes:block> {# #} <itunes:block>no</itunes:block>
{# #} <itunes:category text="Waffel"> {# #} <itunes:category text="Waffel">
{# #} <itunes:category text="Chaos"/> {# #} <itunes:category text="Chaos"/>
{# #} <itunes:category text="CCC"/> {# #} <itunes:category text="CCC"/>
{# #} </itunes:category> {# #} </itunes:category>
{%- endif %} {%- endif %}
{%- set firstrun = false %} {%- set firstrun = false %}
{# #} <item> {# #} <item>
{# #} <title>{{ page.title }}</title> {# #} <title>{{ page.title }}</title>
{# #} <link>{{ baseurl }}/{{ search }}/{{ page._id }}/</link> {# #} <link>{{ baseurl }}/{{ search }}/{{ page._id }}/</link>

View file

@ -18,13 +18,17 @@
<link rel="stylesheet" href="{{ '/css/font-awesome.min.css'|asseturl }}" /> <link rel="stylesheet" href="{{ '/css/font-awesome.min.css'|asseturl }}" />
<link rel="stylesheet" href="{{ '/fonts/roboto.css'|asseturl }}" />{% <link rel="stylesheet" href="{{ '/fonts/roboto.css'|asseturl }}" />{%
endif %} endif %}
<link rel="stylesheet" href={% <link rel="stylesheet" href=
if '/css/main.min.css'|asseturl == empty %}{% {%- if '/css/main.min.css'|asseturl == empty -%}
if '/css/main.css'|asseturl == empty %}"https://{{ fqdn }}/css/main.min.css"{% {%- if '/css/main.css'|asseturl == empty -%}
else %}"{{ '/css/main.css'|asseturl }}"{% "https://{{ fqdn }}/css/main.min.css"
endif %}{% {%- else -%}
else %}"{{ '/css/main.min.css'|asseturl }}"{% "{{ '/css/main.css'|asseturl }}"
endif %} /> {%- endif -%}
{%- else -%}
"{{ '/css/main.min.css'|asseturl }}"
{%- endif -%}
/>
<!--[if lte IE 9]><link rel="stylesheet" href={% <!--[if lte IE 9]><link rel="stylesheet" href={%
if '/css/ie9.min.css'|asseturl == empty %}"https://{{ fqdn }}/css/ie9.min.css"{% if '/css/ie9.min.css'|asseturl == empty %}"https://{{ fqdn }}/css/ie9.min.css"{%
else %}"{{ '/css/ie9.min.css'|asseturl }}"{% else %}"{{ '/css/ie9.min.css'|asseturl }}"{%