forked from PandaSekh/Jekyll-Podcaster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
203 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.settings.analytics-id }}"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', '{{ site.settings.analytics-id }}'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="disqus_thread"></div> | ||
<script src="/assets/js/disqus.js"></script> | ||
<noscript> | ||
Per favore, abilita Javascript per visualizzare i commenti.</a> | ||
</noscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
<head> | ||
<title>{{site.title}}</title> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<html lang="it-IT"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title> | ||
{% if page.title == "Home" %} | ||
{{ site.title }} | {{ site.description }} | ||
{% else %} | ||
{{ page.title }} | {{ site.title }} | ||
{% endif %} | ||
</title> | ||
<meta name="description" content=" | ||
{% if page.description %}{{ page.description }} | ||
{% else %}{{ site.description }} | ||
{% endif %}"> | ||
|
||
<link rel="icon" href="{{"/favicon.ico" | relative_url }}" type="image/x-icon"> | ||
<link rel="shortcut icon" href="{{"/favicon.ico" | relative_url }}" type="image/x-icon"> | ||
|
||
|
||
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.2/plyr.css" /> | ||
|
||
<link href="https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css2?family=Oleo+Script&display=swap" rel="stylesheet"> | ||
|
||
<link rel="stylesheet" href="{{"/assets/css/main.css" | relative_url }}"> | ||
<link rel="stylesheet" href="{{ "/assets/css/mobile.css" | relative_url }}"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css"> | ||
|
||
<!-- SEO Plugin --> | ||
{% seo %} | ||
|
||
<!-- Google Analytics --> | ||
{% if site.data.settings.analytics-id%} | ||
{%- include analytics.html -%} | ||
{% endif %} | ||
<!-- End Google Analytics --> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Jekyll | ||
class AudioDurationBlock < Liquid::Block | ||
|
||
def initialize(tag_name, markup, tokens) | ||
super | ||
end | ||
|
||
def render(context) | ||
AudioInfo.open(super) do |info| | ||
secs = info.length | ||
"%d:%02d" % [secs / 60, secs % 60] | ||
end | ||
end | ||
end | ||
end | ||
|
||
Liquid::Template.register_tag('audioduration', Jekyll::AudioDurationBlock) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Jekyll | ||
class FileSizeBlock < Liquid::Block | ||
|
||
def initialize(tag_name, markup, tokens) | ||
super | ||
end | ||
|
||
def render(context) | ||
"#{File.size super}" | ||
end | ||
end | ||
end | ||
|
||
Liquid::Template.register_tag('filesize', Jekyll::FileSizeBlock) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var disqus_config = function () { | ||
this.page.url = document.location.href; | ||
this.page.identifier = document.location.pathname; | ||
}; | ||
|
||
(function() { // DON'T EDIT BELOW THIS LINE | ||
var d = document, s = d.createElement('script'); | ||
s.src = '//artedellalettura.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xml:lang="{{ site.lang }}"> | ||
<channel> | ||
|
||
<atom:link href="{{ site.url }}/podcast.rss" rel="self" type="application/rss+xml" /> | ||
<title>{{ site.title }}</title> | ||
<description>{{ site.description | xml_escape }}</description> | ||
<link>{{ site.url }}</link> | ||
<language>{{ site.lang }}</language> | ||
<managingEditor>{{ site.email }} ({{ site.author }})</managingEditor> | ||
<webMaster>{{ site.email }} ({{ site.author }})</webMaster> | ||
<copyright>2020-{{ site.time | "%Y" }} {{ site.title }}</copyright> | ||
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate> | ||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> | ||
<image> | ||
<link>{{ site.url }}</link> | ||
<url>{{ site.podcast_artwork }}</url> | ||
<title>{{ site.title }}</title> | ||
</image> | ||
<itunes:subtitle>{{ site.podcast_subtitle | xml_escape }}</itunes:subtitle> | ||
<itunes:author>{{ site.author }}</itunes:author> | ||
<itunes:summary>{{ site.description | xml_escape }}</itunes:summary> | ||
<itunes:keywords>{{ site.keywords }}</itunes:keywords> | ||
<itunes:owner> | ||
<itunes:name>{{ site.author }}</itunes:name> | ||
<itunes:email>{{ site.podcast_email }}</itunes:email> | ||
</itunes:owner> | ||
<itunes:image href="{{ site.podcast_artwork" /> | ||
<itunes:category text="Arts"> | ||
<itunes:category text="Books" /> | ||
</itunes:category> | ||
<itunes:category text="Leisure"> | ||
<itunes:category text="Hobbies" /> | ||
</itunes:category> | ||
<itunes:type>{{site.podcast_type}} | ||
</itunes:type> | ||
<itunes:explicit>{{site.podcast_explicit}}</itunes:explicit> | ||
|
||
{% for post in site.posts %} | ||
<item> | ||
<title>{{ post.title | xml_escape }}</title> | ||
<link>{{ site.url }}{{ post.url }}</link> | ||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> | ||
<description>{{ post.description | xml_escape }}</description> | ||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid> | ||
<enclosure url="http:{{ post.file }}" length="{{ post.length }}" type="audio/mp3"/> | ||
<itunes:author>{{ site.author }}</itunes:author> | ||
<itunes:subtitle>{{ site.title }}: {{ post.title }}</itunes:subtitle> | ||
<itunes:summary>{{ post.summary | xml_escape }}</itunes:summary> | ||
<itunes:duration>{{ post.duration }}</itunes:duration> | ||
<itunes:keywords>{{ post.keywords }}{{site.keywords}}</itunes:keywords> | ||
<itunes:image href= {{site.podcast_artwork}} /> | ||
<itunes:explicit>{{ post.explicit }}</itunes:explicit> | ||
<itunes:block>{{ post.block }}</itunes:block> | ||
</item> | ||
{% endfor %} | ||
|
||
</channel> | ||
</rss> |