rssicon (#95)
fix #8 Reviewed-on: #95 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
610a15524a
commit
e8eaa826fb
@ -16,21 +16,27 @@ params:
|
||||
social:
|
||||
- title: Twitter
|
||||
icon: fa-twitter
|
||||
pack: brands
|
||||
url: https://x.com/bglug_it
|
||||
- title: Facebook
|
||||
icon: fa-facebook-f
|
||||
pack: brands
|
||||
url: https://www.facebook.com/bglug
|
||||
- title: LinkedIn
|
||||
icon: fa-linkedin
|
||||
pack: brands
|
||||
url: https://www.linkedin.com/groups/154561/
|
||||
- title: Gitea
|
||||
icon: fa-git-alt
|
||||
pack: brands
|
||||
url: https://git.libreschool.org/BgLUG
|
||||
- title: YouTube
|
||||
icon: fa-youtube
|
||||
pack: brands
|
||||
url: https://www.youtube.com/@BglugIt
|
||||
- title: YouTube
|
||||
icon: fa-circle-play
|
||||
icon: fa-play
|
||||
pack: solid
|
||||
url: https://video.linux.it/c/bglug.it/
|
||||
|
||||
taxonomies:
|
||||
|
@ -8,8 +8,8 @@ server {
|
||||
index index.html;
|
||||
|
||||
location ~ ^/feed {
|
||||
rewrite ^/feed$ /index.xml last;
|
||||
rewrite ^/feed/.*$ /index.xml last;
|
||||
rewrite ^/feed$ /it/index.xml last;
|
||||
rewrite ^/feed/.*$ /it/index.xml last;
|
||||
}
|
||||
|
||||
location ~ ^/it/.* {
|
||||
|
54
layouts/partials/footer/footer.html
Normal file
54
layouts/partials/footer/footer.html
Normal file
@ -0,0 +1,54 @@
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{- if gt (len .Site.Params.footer.links) 0 }}
|
||||
{{- $link_cols := div (cond .Site.Params.footer.contact_form.enabled 6 12) (len .Site.Params.footer.links) }}
|
||||
{{- range .Site.Params.footer.links }}
|
||||
<section class="col-{{ $link_cols }} col-6-narrower col-12-mobilep">
|
||||
<h3>{{ .header }}</h3>
|
||||
<ul class="links">
|
||||
{{- range .links }}
|
||||
{{- if .pageref -}}
|
||||
<li><a href="{{ (site.GetPage .pageref).Permalink }}">{{ .title }}</a>
|
||||
{{- else -}}
|
||||
<li><a href="{{ .url }}">{{ .title }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
|
||||
{{- if .Site.Params.footer.contact_form.enabled }}
|
||||
{{- partial "footer/contact.html" .Site.Params.footer.contact_form }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="icons">
|
||||
{{- range .Site.Params.social }}
|
||||
<li><a href="{{ .url }}" class="{{ if .icon }}icon {{ .pack }} {{ .icon }}{{ end }}">
|
||||
<span class="label">{{ .title }}</span>
|
||||
</a></li>
|
||||
{{- end }}
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
<li><a href="{{ .Permalink }}" class="icon solid fa-rss">
|
||||
<span class="label">RSS feed</span>
|
||||
</a></li>
|
||||
{{ end -}}
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="copyright">
|
||||
<ul class="menu">
|
||||
{{ if .Site.Copyright }}
|
||||
<li>{{ replace .Site.Copyright "{currentYear}" now.Year }}
|
||||
{{ end }}
|
||||
{{- if .Site.Params.attribution | default true }}
|
||||
<li>Design: <a href="https://html5up.net">HTML5 UP</a>
|
||||
<li><a href="https://github.com/half-duplex/hugo-arcana">Theme</a>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
4
layouts/partials/head/custom.html
Normal file
4
layouts/partials/head/custom.html
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ .Permalink }}" title="{{ $.Site.Title | safeHTML }}" />
|
||||
{{ end -}}
|
Loading…
x
Reference in New Issue
Block a user