Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaSekh committed Jun 2, 2020
1 parent c6953c2 commit 7e1636a
Show file tree
Hide file tree
Showing 17 changed files with 203 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ gem 'jekyll-paginate'
gem 'jekyll-feed'
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem "ruby-audioinfo", "~> 0.5"
39 changes: 36 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ author:
name: "Alessio Franceschi"
email: "alessiofranceschi2@gmail.com"
url: "https://alessiofranceschi.me"
permalink: /:title:output_ext
permalink: /:title
keywords: [libri, libro, lettura, letteratura, leggere]

#Plugins
plugins: [jekyll-paginate, jekyll-feed, jekyll-seo-tag, jekyll-sitemap]
plugins: [jekyll-paginate, jekyll-seo-tag, jekyll-sitemap, audioinfo, jekyll-feed]


#Pagination
paginate: 4
Expand All @@ -20,4 +22,35 @@ paginate_path: "/pagina-:num/"
#Sass
sass:
style: compressed
sourcemap: never
sourcemap: never

#SEO
twitter:
username: ArteLettura
card: summary
facebook:
app_id: "743664233037553"
logo: /assets/img/cover.png
social:
name: Arte della Lettura
links:
- https://www.instagram.com/arte_della_lettura/
- https://twitter.com/ArteLettura
- https://www.facebook.com/arte.lettura/
- https://www.youtube.com/channel/UCwy9OpiuWjhZyBcAjuXz02w
lang: it

#Podcast
podcast_title: Arte della Lettura Podcast
podcast_author: Alessio Franceschi
podcast_email: podcast@artedellalettura.it
podcast_subtitle: "Quattro chiacchiere su libri e fumetti"
podcast_summary: "Arte della Lettura è il Podcast dedicato a libri e fumetti con episodi su eventi, autori e temi libreschi."
podcast_description: "Arte della Lettura è il Podcast dedicato a libri e fumetti con episodi su eventi, autori e temi libreschi."
podcast_explicit: "no"
podcast_type: serial
podcast_lang: it
podcast_launch: "2019-07-20"
podcast_copyright: "©Alessio Franceschi"
podcast_feed:
podcast_artwork: "/assets/img/Podcast_Cover.png"
8 changes: 7 additions & 1 deletion _data/settings.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
analytics-id: UA-120959156-1

#Pages
pages:
- {name: 'Episodi', url: 'episodi.html'}
Expand Down Expand Up @@ -39,4 +41,8 @@ months:
- Settembre
- Ottobre
- Novembre
- Dicembre
- Dicembre

#Disqus
disqus:
disqus_shortname: "alessio-franceschi-blog"
9 changes: 9 additions & 0 deletions _includes/analytics.html
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>
5 changes: 5 additions & 0 deletions _includes/disqus.html
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>
32 changes: 29 additions & 3 deletions _includes/head.html
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>
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% if post.cover %}
<img src="{{post.cover}}" alt="Podcast Cover">
{% else %}
<img src="{{ "/assets/img/cover.png" | relative_url}}" alt="Podcast Cover">
<img src="{{ "/assets/img/Podcast_Cover.jpg" | relative_url}}" alt="Podcast Cover">
{% endif %}
</div>

Expand Down
5 changes: 4 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>{{page.title}}</h2>
{% if post.cover %}
<img src="{{post.cover}}" alt="Podcast Cover">
{% else %}
<img src="{{ "/assets/img/cover.png" | relative_url}}" alt="Podcast Cover">
<img src="{{ "/assets/img/Podcast_Cover.jpg" | relative_url}}" alt="Podcast Cover">
{% endif %}

<p>{{page.description}}</p>
Expand All @@ -35,4 +35,7 @@ <h2>{{page.title}}</h2>
{{ content }}

{% include shownotes.html %}


</div>
{%- include disqus.html -%}
18 changes: 18 additions & 0 deletions _plugins/audio_duration.rb
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)

14 changes: 14 additions & 0 deletions _plugins/filesize.rb
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)
5 changes: 4 additions & 1 deletion _posts/2019-07-20-introduzione.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ title: Introduzione - Arte della Lettura Podcast
layout: post
type: extra
categories: [Generico]
keywords: [introduzione]
description: Una breve introduzione per spiegare quello che sarà Arte della Lettura Podcast.
filename: ep0_intro
summary: Una breve introduzione per spiegare quello che sarà Arte della Lettura Podcast.
file: ep0_intro
duration: "1284" #in seconds
length: "21:24"
cover: /assets/img/cover.png
videoid: eZzKgW8KBME
Expand Down
2 changes: 1 addition & 1 deletion _posts/2019-08-05-wrap-up-settembre.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: post
categories: [Wrap-Up]
type: extra
description: 'Questo mese ho letto ben 4 libri: Starship Troopers, Strangers in Paradise 1, Fate il vostro gioco e Anne di Tetti Verdi. Ho apprezzato due libri e ne ho odiati due; come disse una volta un vecchio saggio: "Perfettamente bilanciato, come tutto dovrebbe essere".'
filename: extra_wu_sett
filename: extra_wu_settembre
length: "12:18"
videoid: dmrn9hoqTiY
---
3 changes: 2 additions & 1 deletion _sass/post.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.container{
.content{
.single-post{
padding-bottom: 200px;
padding-bottom: 100px;
.categories{
text-align: center;
font-size: 1.2rem;
Expand Down Expand Up @@ -57,6 +57,7 @@
width: 100%;
}
}

}
}
}
Binary file added assets/img/Podcast_Cover.jpg
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
11 changes: 11 additions & 0 deletions assets/js/disqus.js
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);
})();
59 changes: 59 additions & 0 deletions podcast.rss
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>

0 comments on commit 7e1636a

Please sign in to comment.