Browse Source

fixing slideshow

master
Fran Acién 1 year ago
parent
commit
a9bf20dcf4
3 changed files with 163 additions and 85 deletions
  1. +89
    -69
      exampleSite/config.toml
  2. +73
    -15
      layouts/partials/slideshow.html
  3. +1
    -1
      theme.toml

+ 89
- 69
exampleSite/config.toml View File

@@ -1,7 +1,7 @@
baseurl = "https://example.com/"
title = "Whiteplain"
title = "Whiteclub"
# themesDir = "../../"
theme = "whiteplain"
theme = "whiteclub"
languageCode = "ja"
# Disqus shortname
#disqusShortname = ""
@@ -18,76 +18,96 @@ copyright = "© Copyright 2017 Foo Bar"
# showShareIcons = true
# Date format
#dateFormat = "January 2, 2006"
dateFormat = "2 January, 2006"
description = "EA4RCT"
avatar = "/logo.png"

# This is displayer in About page.
[params.author]
name = "Foo Bar"
# This is displayer in About page.
[params.about]
twitter = "whiteclub"
#github = "Github username"
gitea = "http://git.radio.clubs.etsit.upm.es"
email = "info@test.org"

# Gravatar or Abatar image
#gravatar = "Gravatar email or MD5 Hash"
#avatar = "/path/to/avatar"
localizacion = "Avenida Complutense Nº30 Local 101.3-L"
codigopostal = "28040, Madrid"
metro = "Metro: Ciudad Universitaria, Vicente Aleixandre"
cif = "G28939353"
# telefono = 666666666
#horario = "De lunes a viernes de 9 a 21"

#twitter = "Twitter username"
#facebook = "Facebook username"
#googleplus = "Googleplus username"
#instagram = "Instagram username"
#tumblr = "Tumblr username"
#flickr = "Flickr username"
#reddit = "Reddit username"
#linkedin = "Linkedin username"
#slideshare = "Slideshare username"
#github = "Github username"
#gitlab = "Gitlab username"
#bitbucket = "Bitbucket username"
#stackoverflow = "Stackoverflow username"
#jsfiddle = "Jsfiddle username"
#codepen = "Codepen username"
#deviantart = "Deviantart username"
#behance = "Behance username"
#dribbble = "Dribbble username"
#wordpress = "Wordpress username"
#medium = "Medium username"
#foursquare = "Foursquare username"
#xing = "Xing username"
#quora = "Quora username"
#youtube = "Youtube username"
#vimeo = "Vimeo username"
#whatsapp = "Whatsapp username"
#skype = "Skype username"
#snapchat = "Snapchat username"
#pinterest = "Pinterest username"
#telegram = "Telegram username"
#vine = "Vine username"
#email = "Your email"
# Slideshow of pictures on homepage.
[params.slideshow]
[params.slideshow.pic1]
file = "/slideshow/pic1.jpg"
title = "a great pic"
desc = "This pic was on South Africa"
[params.slideshow.pic2]
file = "/slideshow/pic2.jpg"
title = "A second great pic"
desc = "This pic was on North Africa"
[params.slideshow.pic3]
file = "/slideshow/pic3.jpg"
title = "The third great pic"
desc = "This pic was on East Africa"
[params.slideshow.pic4]
file = "/slideshow/pic4.jpg"
title = "Fourth great pic"
desc = "This pic was on West Africa"
[params.slideshow.pic5]
file = "/slideshow/pic5.jpg"
title = "Fifth great pic"
desc = "This pic was on Center Africa"
[params.slideshow.pic6]
file = "/slideshow/pic6.jpg"
title = "Sixth pic"
desc = "This pic was on South-West Africa"

[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[taxonomies]
category = "categorias"
tag = "tags"
series = "series"

[[menu.main]]
name = "Categories"
weight = 1
identifier = "categories"
url = "/categories/"
[[menu.main]]
name = "Tags"
weight = 2
identifier = "tags"
url = "/tags/"
[[menu.main]]
name = "Archives"
weight = 3
identifier = "archives"
url = "/archives/"
[[menu.main]]
name = "About"
weight = 4
identifier = "about"
url = "/about/"
# Header Menu
[[menu.main]]
name = "Próximas actividades"
identifier = "activities"
url = "/activities/"
weight = 1
[[menu.main]]
name = "Blog"
identifier = "blog"
url = "/blog/"
weight = 2
[[menu.main]]
name = "Categorias"
identifier = "categorias"
url = "/categorias/"
weight = 3
[[menu.main]]
name = "Tags"
identifier = "tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Archivo"
identifier = "archives"
url = "/archives/"
weight = 5
[[menu.main]]
name = "Quiénes somos"
identifier = "team"
url = "/team/"
weight = 6
[[menu.main]]
name = "Contacto"
identifier = "about"
url = "/about/"
weight = 7

[[menu.footer]]
name = "About"
weight = 1
identifier = "about"
url = "/about/"
# Footer Menu
[[menu.footer]]
name = "About"
weight = 1
identifier = "about"
url = "/about/"

+ 73
- 15
layouts/partials/slideshow.html View File

@@ -1,52 +1,110 @@
<div id="carouselExampleIndicators" class="carousel slide slideshow" data-ride="carousel">
<ol class="carousel-indicators">

{{ if .Site.Params.slideshow.pic1 }}
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
{{ end }}
{{ if .Site.Params.slideshow.pic2 }}
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
{{ end }}
{{ if .Site.Params.slideshow.pic3 }}
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
{{ end }}
{{ if .Site.Params.slideshow.pic4 }}
<li data-target="#carouselExampleIndicators" data-slide-to="3"></li>
{{ end }}
{{ if .Site.Params.slideshow.pic5 }}
<li data-target="#carouselExampleIndicators" data-slide-to="4"></li>
{{ end }}
{{ if .Site.Params.slideshow.pic6 }}
<li data-target="#carouselExampleIndicators" data-slide-to="5"></li>
{{ end }}
</ol>

{{ if .Site.Params.slideshow.pic1 }}
<div class="carousel-inner">
<div class="carousel-item active">
<img src="slideshow/junta.jpg" alt="First slide">
{{ if .Site.Params.slideshow.pic1.file }}
<img src="{{ .Site.Params.slideshow.pic1.file }}" alt="First slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
<h5>Junta 2018-19</h5>
<p>Septiembre 2018</p>
{{ if .Site.Params.slideshow.pic1.title }}
<h5>{{ .Site.Params.slideshow.pic1.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic1.desc }}
<p>{{ .Site.Params.slideshow.pic1.desc }}</p>
{{ end }}
</div>
</div>
<div class="carousel-item">
<img src="slideshow/terraza.jpg" alt="Second slide">
{{ if .Site.Params.slideshow.pic2.file }}
<img src="{{ .Site.Params.slideshow.pic2.file }}" alt="Second slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
<h5>Actividad de reparación de las antenas</h5>
<p>Feb 2019</p>
{{ if .Site.Params.slideshow.pic2.title }}
<h5>{{ .Site.Params.slideshow.pic2.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic2.desc }}
<p>{{ .Site.Params.slideshow.pic2.desc }}</p>
{{ end }}
</div>
</div>
<div class="carousel-item">
<img src="slideshow/taller-arduino.jpg" alt="Third slide">
{{ if .Site.Params.slideshow.pic3.file }}
<img src="{{ .Site.Params.slideshow.pic3.file }}" alt="Third slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
<h5>Taller de arduino</h5>
<p>Oct 2018</p>
{{ if .Site.Params.slideshow.pic3.title }}
<h5>{{ .Site.Params.slideshow.pic3.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic3.desc }}
<p>{{ .Site.Params.slideshow.pic3.desc }}</p>
{{ end }}
</div>
</div>
<div class="carousel-item">
<img src="slideshow/radio.jpg" alt="Third slide">
{{ if .Site.Params.slideshow.pic4.file }}
<img src="{{ .Site.Params.slideshow.pic4.file }}" alt="Third slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
{{ if .Site.Params.slideshow.pic4.title }}
<h5>{{ .Site.Params.slideshow.pic4.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic4.desc }}
<p>{{ .Site.Params.slideshow.pic4.desc }}</p>
{{ end }}
</div>
</div>
<div class="carousel-item">
<img src="slideshow/pedales.jpg" alt="Third slide">
{{ if .Site.Params.slideshow.pic5.file }}
<img src="{{ .Site.Params.slideshow.pic5.file }}" alt="Third slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
<h5>Taller de pedales de guitarra</h5>
<p>Feb 2019</p>
{{ if .Site.Params.slideshow.pic5.title }}
<h5>{{ .Site.Params.slideshow.pic5.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic5.desc }}
<p>{{ .Site.Params.slideshow.pic5.desc }}</p>
{{ end }}
</div>
</div>
<div class="carousel-item">
<img src="slideshow/jackbox.jpg" alt="Third slide">
{{ if .Site.Params.slideshow.pic6.file }}
<img src="{{ .Site.Params.slideshow.pic6.file }}" alt="Third slide">
{{ end }}
<div class="carousel-caption d-none d-md-block">
<p>Un jackbox en el Radio</p>
{{ if .Site.Params.slideshow.pic6.title }}
<h5>{{ .Site.Params.slideshow.pic6.title }}</h5>
{{ end }}
{{ if .Site.Params.slideshow.pic6.desc }}
<p>{{ .Site.Params.slideshow.pic6.desc }}</p>
{{ end}}
</div>
</div>
</div>

{{ end }}

<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>


+ 1
- 1
theme.toml View File

@@ -1,4 +1,4 @@
name = "Whiteclub"
name = "whiteclub"
license = "GPLV3"
licenselink = "https://git.radio.clubs.etsit.upm.es/Whiteclub/Whiteclub-Hugo-Theme/src/branch/master/LICENSE.md"
description = "Simple Hugo theme developed for a community. Based on Whiteplain."


Loading…
Cancel
Save