Rebranding Burguillos.info.
This commit is contained in:
parent
1b90285833
commit
3bda9ed008
|
@ -47,7 +47,6 @@ sub startup ($self) {
|
||||||
$r->get('/privacy.txt')->to('Privacy#index');
|
$r->get('/privacy.txt')->to('Privacy#index');
|
||||||
$r->get('/sitemap.xml')->to('Sitemap#sitemap');
|
$r->get('/sitemap.xml')->to('Sitemap#sitemap');
|
||||||
$r->get('/robots.txt')->to('Robots#robots');
|
$r->get('/robots.txt')->to('Robots#robots');
|
||||||
$r->get('/aprende-a-dibujar-con-krita')->to('Page#rickroll');
|
|
||||||
|
|
||||||
# $r->get('/:post')->to('Page#post');
|
# $r->get('/:post')->to('Page#post');
|
||||||
$r->get('/stats')->to('Metrics#stats');
|
$r->get('/stats')->to('Metrics#stats');
|
||||||
|
|
|
@ -30,14 +30,6 @@ sub index {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub rickroll ($self) {
|
|
||||||
if ( $self->req->headers->user_agent =~ /bot/i ) {
|
|
||||||
return $self->render( text => '' );
|
|
||||||
}
|
|
||||||
$self->res->headers->location('http://ibaillanos.tv');
|
|
||||||
$self->render( text => '', status => 302 );
|
|
||||||
}
|
|
||||||
|
|
||||||
sub category_rss {
|
sub category_rss {
|
||||||
require BurguillosInfo;
|
require BurguillosInfo;
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
|
@ -10,7 +10,7 @@ body {
|
||||||
height: 100%; }
|
height: 100%; }
|
||||||
body span.round-center {
|
body span.round-center {
|
||||||
background: blueviolet;
|
background: blueviolet;
|
||||||
color: white;
|
color: #FEFEFA;
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
aspect-ratio: 1 / 1;
|
aspect-ratio: 1 / 1;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
@ -208,7 +208,7 @@ body {
|
||||||
height: calc(100% - 60px);
|
height: calc(100% - 60px);
|
||||||
z-index: 500;
|
z-index: 500;
|
||||||
transition: left 0.5s ease-in, visibility 0.5s ease-in;
|
transition: left 0.5s ease-in, visibility 0.5s ease-in;
|
||||||
background: white; }
|
background: #FEFEFA; }
|
||||||
body nav.mobile-foldable > a:first-child {
|
body nav.mobile-foldable > a:first-child {
|
||||||
margin-top: 30px; }
|
margin-top: 30px; }
|
||||||
body nav.mobile-foldable a {
|
body nav.mobile-foldable a {
|
||||||
|
@ -218,7 +218,7 @@ body {
|
||||||
padding-left: auto;
|
padding-left: auto;
|
||||||
padding-right: auto;
|
padding-right: auto;
|
||||||
color: blueviolet;
|
color: blueviolet;
|
||||||
background: white;
|
background: #FEFEFA;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -238,7 +238,7 @@ body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center; }
|
justify-content: center; }
|
||||||
body nav.mobile-shortcuts > a.active {
|
body nav.mobile-shortcuts > a.active {
|
||||||
background: white;
|
background: #FEFEFA;
|
||||||
color: #dcdcf5; }
|
color: #dcdcf5; }
|
||||||
body nav.mobile-shortcuts > a.active:focus {
|
body nav.mobile-shortcuts > a.active:focus {
|
||||||
background: #f2eb8c; }
|
background: #f2eb8c; }
|
||||||
|
@ -360,6 +360,11 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap; }
|
flex-wrap: wrap; }
|
||||||
|
body div.page-contents div.description div.articles a {
|
||||||
|
width: 45%;
|
||||||
|
margin-left: 5%; }
|
||||||
|
body div.page-contents div.description div.articles a:nth-child(2n+1) {
|
||||||
|
margin-left: 0%; }
|
||||||
body div.page-contents div.description div.articles div.image-container {
|
body div.page-contents div.description div.articles div.image-container {
|
||||||
margin-left: 2.5%;
|
margin-left: 2.5%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
@ -376,7 +381,6 @@ body {
|
||||||
border: solid 1px black; }
|
border: solid 1px black; }
|
||||||
body div.page-contents div.description div.articles a {
|
body div.page-contents div.description div.articles a {
|
||||||
min-height: 90%;
|
min-height: 90%;
|
||||||
width: 100%;
|
|
||||||
display: block;
|
display: block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -390,7 +394,6 @@ body {
|
||||||
height: 90%;
|
height: 90%;
|
||||||
padding: 5%;
|
padding: 5%;
|
||||||
padding-top: 1%;
|
padding-top: 1%;
|
||||||
background: #f2eb8c;
|
|
||||||
color: blueviolet;
|
color: blueviolet;
|
||||||
box-shadow: 8px 8px 1px 0px #8ddfd6;
|
box-shadow: 8px 8px 1px 0px #8ddfd6;
|
||||||
border: 3px solid black; }
|
border: 3px solid black; }
|
||||||
|
|
|
@ -8,7 +8,7 @@ $background-secondary: #635283;
|
||||||
$color-secondary: #8eea6d;
|
$color-secondary: #8eea6d;
|
||||||
$accent-secondary: #fde68f;
|
$accent-secondary: #fde68f;
|
||||||
$primary-secondary: #590e11;
|
$primary-secondary: #590e11;
|
||||||
$background_sidebar: white; //#F5F5DC;
|
$background_sidebar: $background-page; //#F5F5DC;
|
||||||
$color_sidebar: #dcdcf5;
|
$color_sidebar: #dcdcf5;
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
@ -532,6 +532,14 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
a {
|
||||||
|
&:nth-child(2n+1) {
|
||||||
|
margin-left: 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
width: 45%;
|
||||||
|
margin-left: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
div.image-container {
|
div.image-container {
|
||||||
margin-left: 2.5%;
|
margin-left: 2.5%;
|
||||||
|
@ -553,7 +561,6 @@ body {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
min-height: 90%;
|
min-height: 90%;
|
||||||
width: 100%;
|
|
||||||
display: block;
|
display: block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -594,7 +601,6 @@ body {
|
||||||
|
|
||||||
padding: 5%;
|
padding: 5%;
|
||||||
padding-top: 1%;
|
padding-top: 1%;
|
||||||
background: $color_div;
|
|
||||||
color: $background_div;
|
color: $background_div;
|
||||||
box-shadow: 8px 8px 1px 0px #8ddfd6;
|
box-shadow: 8px 8px 1px 0px #8ddfd6;
|
||||||
border: 3px solid black;
|
border: 3px solid black;
|
||||||
|
|
|
@ -11,17 +11,21 @@
|
||||||
$date_article->set_time_zone('Europe/Madrid');
|
$date_article->set_time_zone('Europe/Madrid');
|
||||||
%><div class="article-up-part">
|
%><div class="article-up-part">
|
||||||
<p class="date"><%= ''.$date_article %></p><%
|
<p class="date"><%= ''.$date_article %></p><%
|
||||||
|
my $title = $post->{title};
|
||||||
|
if (length($title) > 50) {
|
||||||
|
$title = substr($title, 0, 47).'...';
|
||||||
|
}
|
||||||
if (defined $post->{image}) {
|
if (defined $post->{image}) {
|
||||||
%><div class="image-container">
|
%><div class="image-container">
|
||||||
<img alt="Portada de <%=$post->{title}%>" src="<%=$post->{image}%>"/>
|
<img alt="Portada de <%=$title%>" src="<%=$post->{image}%>"/>
|
||||||
</div><%
|
</div><%
|
||||||
}
|
}
|
||||||
%></div><div class="article-down-part"><div>
|
%></div><div class="article-down-part"><div>
|
||||||
<h3><%=$post->{title}%></h3><%
|
<h3><%=$title%></h3><%
|
||||||
my $xml = Mojo::DOM->new($post->{content});
|
my $xml = Mojo::DOM->new($post->{content});
|
||||||
my $text = $xml->all_text;
|
my $text = $xml->all_text;
|
||||||
if (length($text) > 120) {
|
if (length($text) > 50) {
|
||||||
$text = substr($text, 0, 100).'...';
|
$text = substr($text, 0, 47).'...';
|
||||||
}
|
}
|
||||||
%><p><%=$text%></p><p class="author">Escrito por <%=$post->{author}%></p>
|
%><p><%=$text%></p><p class="author">Escrito por <%=$post->{author}%></p>
|
||||||
</div></div></article>
|
</div></div></article>
|
||||||
|
|
Loading…
Reference in New Issue