update site for hugo v0.146.2 and fix url issues with some rss feeds
This commit is contained in:
parent
88a877c883
commit
c12d8c4168
14 changed files with 6 additions and 6 deletions
189
layouts/_partials/custom-head.html
Normal file
189
layouts/_partials/custom-head.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
|
||||
pre code { background-color: #44475a; line-height: 1.4; margin: -6px; margin-top: 20px; margin-bottom: 30px; border-radius: 8px; padding-top: 12px; padding-bottom: 12px;}
|
||||
code { padding: 2px 4px; font-size: 90%; border-radius: 4px; color: #f8f8f2; background-color: #6272A4; }
|
||||
|
||||
#searchResults a {
|
||||
color: #F8F8F2;
|
||||
}
|
||||
|
||||
#searchResults a:hover {
|
||||
color: #FF79C6;
|
||||
}
|
||||
|
||||
#searchResults a:hover .title {
|
||||
color: #FF79C6;
|
||||
}
|
||||
|
||||
#searchResults a .title {
|
||||
color: #8BE9FD;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
.listHeader a {
|
||||
padding: 1px 2px;
|
||||
margin: -10px;
|
||||
border-radius: 8px;
|
||||
font-size: 21px;
|
||||
font-weight: bold;
|
||||
color: #282A36;
|
||||
background-color: #FFB86C;
|
||||
}
|
||||
.headerWrapper {
|
||||
background: #44475a;
|
||||
}
|
||||
|
||||
.headerWrapper a {
|
||||
color: #50FA7B;
|
||||
}
|
||||
|
||||
.headerWrapper a:hover {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
.headerLinks {
|
||||
background: #44475a;
|
||||
}
|
||||
|
||||
.headerLinks ul li a {
|
||||
color: #BD93F9;
|
||||
}
|
||||
|
||||
.headerLinks ul:hover li:hover a:hover {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
.postTitle {
|
||||
color: #FF79C6;
|
||||
text-transform: none;
|
||||
}
|
||||
.postListItem {
|
||||
background: #44475a;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.postExcerpt {
|
||||
background: #44475a;
|
||||
}
|
||||
|
||||
.postMetadata {
|
||||
background: #44475a;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.postMetadata a {
|
||||
color: #ff79c6;
|
||||
}
|
||||
|
||||
.postMetadata a:hover {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.hints {
|
||||
color: #6272a4;
|
||||
font: 0.85em FiraMono;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #44475a;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #282a36;
|
||||
background-image: url("/castlehd.png");
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
color: f8f8f2;
|
||||
}
|
||||
|
||||
.socialNavbar a {
|
||||
color: #ff79c6;
|
||||
}
|
||||
|
||||
.socialNavbar a:hover {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
list-style: none;
|
||||
margin: 3;
|
||||
padding: 0;
|
||||
margin-top: 1em;
|
||||
padding-top: 0.5em;
|
||||
font: 1.2em FiraMono;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pagination li {
|
||||
margin: 0 1px;
|
||||
}
|
||||
|
||||
.pagination a {
|
||||
color: #8BE9FD;
|
||||
display: block;
|
||||
padding: 0.1em 0.8em;
|
||||
margin: 1px;
|
||||
border-radius: 0.5em;
|
||||
text-decoration: none;
|
||||
background-color: #44475a;
|
||||
}
|
||||
|
||||
.pagination a:hover {
|
||||
color: #282A36;
|
||||
background-color: #8BE9FD;
|
||||
}
|
||||
|
||||
#fastSearch {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 12px;
|
||||
display: inline-block;
|
||||
width: 340px;
|
||||
}
|
||||
|
||||
#fastSearch input {
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
width: 100%;
|
||||
margin-left: -2em;
|
||||
height: 20px;
|
||||
font-size: 1.4em;
|
||||
font-family: "FiraMono";
|
||||
color: #f3f8f8;
|
||||
font-weight: bold;
|
||||
background-color: #282A36;
|
||||
border: none;
|
||||
outline: none;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#searchResults li {
|
||||
border-radius: 8px;
|
||||
list-style: none;
|
||||
width: 350px;
|
||||
padding: 6px 6px 6px 6px;
|
||||
margin-left: -5.3em;
|
||||
color: #f3f8f8;
|
||||
background-color: #44475a;
|
||||
margin-top: 8px;
|
||||
font-family: "OpenSans";
|
||||
|
||||
if (isPlatformAltOrCmdKey(event) && event.key === '/') {
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="fastSearch">
|
||||
<input id="searchInput" tabindex="0">
|
||||
<ul id="searchResults">
|
||||
</ul>
|
||||
</div>
|
||||
<script src="/js/fastsearch.js"></script>
|
||||
</body>
|
||||
</html>
|
15
layouts/_partials/footer.html
Normal file
15
layouts/_partials/footer.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="hints">
|
||||
<center>Comandos: <b>ALT</b> + <b>/</b> (buscar) | <b>TAB</b> (navegar resultados) | <b>ENTER</b> (elegir)</center>
|
||||
</br>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
{{ with .Site.Params.footerHtml }}
|
||||
<span>{{ . | safeHTML }}</span>
|
||||
{{ else }}
|
||||
<span>
|
||||
© {{ now.Format "2006" }} {{ .Site.Params.author.name }}, {{ i18n "powered_by" }}
|
||||
<a href="https://gohugo.io" class="footerLink">Hugo</a> {{ i18n "and" }}
|
||||
<a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> {{ i18n "theme" }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</footer>
|
120
layouts/_partials/pagination.html
Normal file
120
layouts/_partials/pagination.html
Normal file
|
@ -0,0 +1,120 @@
|
|||
<!--
|
||||
//
|
||||
// PAGE NUMBERS
|
||||
//––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||
-->
|
||||
{{ $paginator := .Paginator }}
|
||||
|
||||
<!-- Number of links either side of the current page. -->
|
||||
{{ $adjacent_links := 2 }}
|
||||
|
||||
<!-- $max_links = ($adjacent_links * 2) + 1 -->
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
|
||||
<!-- $lower_limit = $adjacent_links + 1 -->
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
|
||||
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
|
||||
<!-- If there's more than one page. -->
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
|
||||
<ul class="pagination">
|
||||
|
||||
<!-- First page. -->
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<li class="pagination__item pagination__item--first">
|
||||
<a class="pagination__link pagination__link--first" href="{{ $paginator.First.URL }}">
|
||||
««
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev }}
|
||||
<li class="pagination__item pagination__item--previous">
|
||||
<a href="{{ $paginator.Prev.URL }}" class="pagination__link pagination__link--previous">
|
||||
«
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
|
||||
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
|
||||
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Middle pages. -->
|
||||
{{ else }}
|
||||
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else }}
|
||||
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
<li class="pagination__item{{ if eq . $paginator }} pagination__item--current{{ end }}">
|
||||
<a href="{{ .URL }}" class="pagination__link">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext }}
|
||||
<li class="pagination__item pagination__item--next">
|
||||
<a href="{{ $paginator.Next.URL }}" class="pagination__link pagination__link--next">
|
||||
»
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
<!-- Last page. -->
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<li class="pagination__item pagination__item--last">
|
||||
<a class="pagination__link pagination__link--last" href="{{ $paginator.Last.URL }}">
|
||||
»»
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul><!-- .pagination -->
|
||||
{{ end }}
|
13
layouts/_partials/prev-next.html
Normal file
13
layouts/_partials/prev-next.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ $pages := .CurrentSection.Pages.ByDate.Reverse }}
|
||||
|
||||
{{ with $pages.Prev . }}
|
||||
<a href="{{ .RelPermalink }}">« Entrada anterior</a>
|
||||
{{ else }}
|
||||
{{ print "« Entrada anterior" }}
|
||||
{{ end }}
|
||||
<span>|</span>
|
||||
{{ with $pages.Next . }}
|
||||
<a href="{{ .RelPermalink }}">Entrada siguiente »</a>
|
||||
{{ else }}
|
||||
{{ print "Entrada siguiente »" }}
|
||||
{{ end }}
|
8
layouts/_partials/related.html
Normal file
8
layouts/_partials/related.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ with site.RegularPages.Related . | first 5 }}
|
||||
<p>Leer también:</p>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
8
layouts/_partials/taxonomy/categories.html
Normal file
8
layouts/_partials/taxonomy/categories.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<!-- [html-validate-disable element-required-ancestor] -->
|
||||
<dt>{{ i18n "categories" }}</dt>
|
||||
<dd>
|
||||
{{- range $index, $el := . -}}
|
||||
<span> /</span>
|
||||
<a href="{{ .RelPermalink }}">{{- .LinkTitle -}}</a>
|
||||
{{- end -}}
|
||||
</dd>
|
Loading…
Add table
Add a link
Reference in a new issue