minor fixes
This commit is contained in:
parent
907e0ad37a
commit
9259d4a3fc
21
_includes/forloop-dates.html
Normal file
21
_includes/forloop-dates.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
{% assign d = post.date | date: "%-d" %}
|
||||
{% case d %}
|
||||
{% when '1' or '21' or '31' %}{{ d }}:st
|
||||
{% when '2' or '22' %}{{ d }}:nd
|
||||
{% when '3' or '23' %}{{ d }}:rd
|
||||
{% else %}{{ d }}:th
|
||||
{% endcase %} of
|
||||
{% assign m = post.date | date: "%-m" %}
|
||||
{% case m %}
|
||||
{% when '1' %}January
|
||||
{% when '2' %}February
|
||||
{% when '3' %}March
|
||||
{% when '4' %}April
|
||||
{% when '5' %}May
|
||||
{% when '6' %}June
|
||||
{% when '7' %}July
|
||||
{% when '8' %}August
|
||||
{% when '9' %}September {% when '10' %}October {% when '11' %}November {% when '12' %}December
|
||||
{% endcase %}
|
||||
{{ post.date | date: "%Y" }}
|
|
@ -183,7 +183,7 @@
|
|||
<meta name="twitter:image" content="{{ site.url }}{{ page.image }}" />
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
<script type='application/ld+json'>
|
||||
|
@ -195,8 +195,8 @@
|
|||
"sameAs": [
|
||||
{% for social in site.social.links %}"{{ social }}"{% unless forloop.last %},{% endunless %}{% endfor %}
|
||||
],
|
||||
"logo": "{{ site.url }}{{ site.banner }}",
|
||||
"image": "{{ site.url }}{{ site.banner }}",
|
||||
"logo": "{{ site.url }}/siteicon.png",
|
||||
"image": "{{ site.url }}{{ page.image }}",
|
||||
"description": "{{ site.description | strip_html }}",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
|
@ -208,48 +208,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if page.url == '/radio/' or page.url == '/' %}
|
||||
<script type='application/ld+json'>
|
||||
{
|
||||
"@context": "http://www.schema.org",
|
||||
"@type": "RadioStation",
|
||||
"name": "Basspistol Libre Radio",
|
||||
"url": "{{ site.url }}/radio",
|
||||
"logo": "{{ site.url }}{{ site.logo }}",
|
||||
"image": "{{ site.url }}{{ site.logo }}",
|
||||
"description": "Unexpected and Impossible Music. Live interventions and special guests. This is Libre music!",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "{{ site.geo.town }}",
|
||||
"addressRegion": "{{ site.geo.region }}",
|
||||
"postalCode": "{{ site.geo.postalcode }}",
|
||||
"addressCountry": "{{ site.geo.country }}"
|
||||
},
|
||||
"geo": {
|
||||
"@type": "GeoCoordinates",
|
||||
"latitude": "{{ site.geo.lat }}",
|
||||
"longitude": "{{ site.geo.long }}"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function getData() {
|
||||
$.getJSON('https://radio.basspistol.com/status-json.xsl', function(json) {
|
||||
output = "<p>" + "<span style='font-size:14px;'>Now Playing:</span> " + "<br/>";
|
||||
output += "<strong>" + json.icestats.source[1].title + "</strong> by <strong>" + json.icestats.source[1].artist + "</strong></p>";
|
||||
output += "<p style='font-size:14px;'>" + json.icestats.source[0].listeners + " peers are listening in MP3 <br />";
|
||||
output += json.icestats.source[1].listeners + " peers are listening in OGG</p>";
|
||||
document.getElementById("radioPlaceholder").innerHTML=output;
|
||||
});
|
||||
}
|
||||
setInterval(getData, 7000);
|
||||
|
||||
$(function() {
|
||||
getData();
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ site.url}}/feed.xml" />
|
||||
<!-- END seo.html -->
|
21
log.html
21
log.html
|
@ -13,17 +13,27 @@ image: /images/pages/grace-brauteseth-1R0hB9WWVvQ-unsplash.jpg
|
|||
|
||||
{% include relBase.html %}
|
||||
<!-- Banner -->
|
||||
<section class="banner onload-image-fade-in onload-content-fade-right style2 fullscreen content-align-center image-position-center">
|
||||
<section class="banner onload-image-fade-in onload-content-fade-right style2 fullscreen content-align-center image-position-center" style="min-height:100vh;">
|
||||
|
||||
<div class="content">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.description }}</p>
|
||||
<ul class="actions stacked">
|
||||
<li><a href="#news" class="button large wide smooth-scroll">Read More</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="image">
|
||||
<img src="{{ relBase }}{{ page.image }}" alt="{{ page.title | smartify }}" class="editable" />
|
||||
<img src="{{ page.image }}" alt="unfound page" />
|
||||
</div>
|
||||
</section>
|
||||
<!-- NEWS -->
|
||||
<section id="news" class="wrapper style1 align-center">
|
||||
<div class="inner" style="padding-top: 40px;">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.description }}</p>
|
||||
<div class="inner editable" style="padding-top: 160px;">
|
||||
|
||||
<ul class="actions stacked">
|
||||
<li><a href="{{ site.url }}/feed.xml" class="button large wide smooth-scroll icon solid fa-rss">RSS</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% for post in site.posts %}
|
||||
|
@ -32,6 +42,7 @@ image: /images/pages/grace-brauteseth-1R0hB9WWVvQ-unsplash.jpg
|
|||
<div class="content">
|
||||
<h2>{{ post.title }}</h2>
|
||||
<p>{{ post.description }}</p>
|
||||
<p style="font-size: 12px;">{% include forloop-dates.html %}</p>
|
||||
<p class="editor-link"><a class="btn" rel="nofollow" href="cloudcannon:collections/{{ post.path }}">
|
||||
<strong>✎</strong> Edit Post
|
||||
</a></p>
|
||||
|
|
Loading…
Reference in a new issue