Website Init Update 2
This commit is contained in:
@ -16,7 +16,7 @@ body {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #FFDC11;
|
||||
background-color: #ffbC3b;
|
||||
z-index: 999999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -409,4 +409,4 @@ textarea.form-control{
|
||||
height: 85px;
|
||||
width: 85px;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
@ -1,49 +0,0 @@
|
||||
---
|
||||
title: "Social media and behavior economics conference"
|
||||
# Schedule page publish date
|
||||
publishDate: "2019-01-01T00:00:00Z"
|
||||
# event date
|
||||
date: "2030-03-09T15:27:17+06:00"
|
||||
# post save as draft
|
||||
draft: false
|
||||
# page title background image
|
||||
bg_image: "images/backgrounds/page-title.jpg"
|
||||
# meta description
|
||||
description : "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore. dolore magna aliqua. Ut enim ad minim veniam, quis nostrud."
|
||||
# Event image
|
||||
image: "images/events/event-1.jpg"
|
||||
# location
|
||||
location: "Dhanmondi, Dhaka"
|
||||
# entry fee
|
||||
fee: "From: $699"
|
||||
# apply url
|
||||
apply_url : "#"
|
||||
# event speaker
|
||||
speaker:
|
||||
# speaker loop
|
||||
- name : "Jack Mastio"
|
||||
image : "images/event-speakers/speaker-1.jpg"
|
||||
designation : "Teacher"
|
||||
|
||||
# speaker loop
|
||||
- name : "John Doe"
|
||||
image : "images/event-speakers/speaker-2.jpg"
|
||||
designation : "Teacher"
|
||||
|
||||
# speaker loop
|
||||
- name : "Randy Luis"
|
||||
image : "images/event-speakers/speaker-3.jpg"
|
||||
designation : "Teacher"
|
||||
|
||||
# speaker loop
|
||||
- name : "Alfred Jin"
|
||||
image : "images/event-speakers/speaker-4.jpg"
|
||||
designation : "Teacher"
|
||||
|
||||
# type
|
||||
type: "event"
|
||||
---
|
||||
|
||||
### About Event
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
|
@ -1,11 +1,11 @@
|
||||
<div class="card border-0 rounded-0 hover-shadow">
|
||||
<div class="card-img position-relative">
|
||||
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
||||
<div class="card-date"><span>{{ .Date.Format "02" }}</span><br>{{ .Date.Format "Jan" }}</div>
|
||||
<div class="card-date"><span>{{ .Date.Format "2" }}</span><br>{{ .Date.Format "Jan" }}</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<!-- location -->
|
||||
<p><i class="ti-location-pin text-primary mr-2"></i>{{ .Params.Location | markdownify }}</p>
|
||||
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<div class="card p-0 border-primary rounded-0 hover-shadow">
|
||||
<div class="card border-primary rounded-0 hover-shadow mb-5">
|
||||
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
||||
<div class="card-body">
|
||||
<ul class="list-inline mb-2">
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline-item"><p><i class="ti-calendar"></i> {{ .Params.Duration }}</p></li>
|
||||
<li class="list-inline-item"><p><i class="ti-bookmark-alt"></i> {{ .Params.Category }}</p></li>
|
||||
<li class="list-inline-item"><p><i class="ti-user"></i> {{ .Params.Class }}</p></li>
|
||||
</ul>
|
||||
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<p class="card-text mb-4">{{ .Summary | truncate 100 }}</p>
|
||||
<!-- p class="card-text mb-4">{{ .Summary | truncate 100 }}</p-->
|
||||
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "join_club"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
15
themes/educenter-hugo/layouts/_default/page.html
Normal file
15
themes/educenter-hugo/layouts/_default/page.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
@ -10,4 +10,4 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
13
themes/educenter-hugo/layouts/_default/wettbewerbe.html
Normal file
13
themes/educenter-hugo/layouts/_default/wettbewerbe.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="card border-primary rounded-0 hover-shadow mb-5">
|
||||
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
||||
<div class="card-body">
|
||||
<ul class="list-inline">
|
||||
<!--li class="list-inline-item"><p><i class="ti-calendar"></i> {{ .Params.Duration }}</p></li-->
|
||||
<li class="list-inline-item"><p><i class="ti-bookmark-alt"></i> {{ .Params.Category }}</p></li>
|
||||
<!--li class="list-inline-item"><p><i class="ti-user"></i> {{ .Params.Class }}</p></li>
|
||||
</ul-->
|
||||
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
<!--p class="card-text mb-4">{{ .Summary | truncate 100 }}</p-->
|
||||
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm text-uppercase">{{ i18n "read_more"}}</a>
|
||||
</div>
|
||||
</div>
|
68
themes/educenter-hugo/layouts/cantorpreis/list.html
Normal file
68
themes/educenter-hugo/layouts/cantorpreis/list.html
Normal file
@ -0,0 +1,68 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ $data := index .Site.Data .Site.Language.Lang }}
|
||||
|
||||
<!-- about -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ with .Params.Image }}
|
||||
<img class="img-fluid w-100 mb-4" src="{{ . | relURL }}" alt="about image">
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /about -->
|
||||
|
||||
<!-- funfacts -->
|
||||
{{ if $data.homepage.funfacts.enable }}
|
||||
{{ with $data.homepage.funfacts }}
|
||||
<section class="section-sm bg-primary">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- funfacts item -->
|
||||
{{ range .funfact_item }}
|
||||
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
|
||||
<div class="text-center">
|
||||
<h2 class="count text-white" data-count="{{ .count }}">0</h2>
|
||||
<h5 class="text-white">{{ .name }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- /funfacts -->
|
||||
|
||||
<!-- success story -->
|
||||
{{ partial "success-story.html" . }}
|
||||
<!-- /success story -->
|
||||
|
||||
<!-- teacher -->
|
||||
{{ if $data.homepage.blog.enable }}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="section-title">{{ i18n "our_teachers" }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<!-- teacher -->
|
||||
{{ range first 3 (where .Site.RegularPages "Type" "teacher")}}
|
||||
<div class="col-lg-4 col-sm-6 mb-5 mb-lg-0">
|
||||
{{ .Render "teacher" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
<!-- /teacher -->
|
||||
|
||||
{{ end }}
|
@ -31,7 +31,7 @@
|
||||
|
||||
<!-- gmap -->
|
||||
<section class="section pt-0">
|
||||
<!-- Google Map -->
|
||||
<!-- OPenStreetMap -->
|
||||
<div class="map_canvas">
|
||||
<iframe width="100%" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=11.963604390621185%2C51.472637532848985%2C11.967144906520845%2C51.474201296827125&layer=mapnik&marker=51.473419421538615%2C11.965374648571014"></iframe>
|
||||
</div>
|
||||
|
@ -39,11 +39,11 @@
|
||||
<i class="ti-time text-primary icon-md mr-2"></i>
|
||||
<div class="text-left">
|
||||
<h6 class="mb-0">{{ i18n "time" | upper }}</h6>
|
||||
<p class="mb-0">{{ .Date.Format "15:04 MST"}}</p>
|
||||
<p class="mb-0">{{ .Date.Format "15:04"}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-inline-item mr-xl-5 mr-4 mb-3 mb-lg-0">
|
||||
<!--li class="list-inline-item mr-xl-5 mr-4 mb-3 mb-lg-0">
|
||||
<div class="d-flex align-items-center">
|
||||
<i class="ti-wallet text-primary icon-md mr-2"></i>
|
||||
<div class="text-left">
|
||||
@ -51,12 +51,9 @@
|
||||
<p class="mb-0">{{ .Params.Fee | markdownify }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</li-->
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-3 text-lg-right text-left">
|
||||
<a href="{{ .Params.Apply_url | safeURL }}" class="btn btn-primary">{{ i18n "apply_now" }}</a>
|
||||
</div>
|
||||
<!-- border -->
|
||||
<div class="col-12 mt-4 order-4">
|
||||
<div class="border-bottom border-primary"></div>
|
||||
@ -68,28 +65,6 @@
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- event speakers -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h3 class="mb-4">{{ i18n "event_speaker"}}</h3>
|
||||
</div>
|
||||
<!-- speakers -->
|
||||
{{ range .Params.Speaker }}
|
||||
<div class="col-lg-3 col-sm-6 mb-4 mb-lg-0">
|
||||
<div class="media">
|
||||
{{ with .image }}<img class="mr-3 img-fluid" src="{{ . | relURL }}" alt="speaker">{{ end }}
|
||||
<div class="media-body">
|
||||
<h4 class="mt-0">{{ .name }}</h4>
|
||||
{{ .designation }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<!-- border -->
|
||||
<div class="col-12 mt-4 order-4">
|
||||
<div class="border-bottom border-primary"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /event single -->
|
||||
@ -115,4 +90,4 @@
|
||||
</section>
|
||||
<!-- /more event -->
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,17 +1,17 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<!-- research -->
|
||||
<!-- forms -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ range .Data.Pages}}
|
||||
<!-- recharch item -->
|
||||
<!-- forms item -->
|
||||
<div class="col-lg-4 col-sm-6 mb-4">
|
||||
{{ .Render "research" }}</div>
|
||||
{{ .Render "forms" }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /research -->
|
||||
<!-- /forms -->
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
@ -19,10 +19,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- course list -->
|
||||
<div class="row justify-content-center">
|
||||
<div class="row filtr-container">
|
||||
<!-- course item -->
|
||||
{{ range .Data.Pages }}
|
||||
<div class="col-lg-4 col-sm-6 mb-5">
|
||||
<div data-category="{{ .Params.Category | urlize }}" class="col-lg-4 col-sm-6 mb-5 filtr-item">
|
||||
{{ .Render "ganztagsangebote" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -10,13 +10,13 @@
|
||||
class="img-fluid w-100">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h2>{{ .Title }}</h2>
|
||||
</div>
|
||||
<!-- course info -->
|
||||
<div class="row align-items-center mb-5">
|
||||
<div class="col-xl-3 order-1 col-sm-6 mb-4 mb-xl-0">
|
||||
<h2>{{ .Title }}</h2>
|
||||
</div>
|
||||
<div class="col-xl-6 order-sm-3 order-xl-2 col-12 order-2">
|
||||
<ul class="list-inline text-xl-center">
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline-item mr-4 mb-3 mb-sm-0">
|
||||
<div class="d-flex align-items-center">
|
||||
<i class="ti-calendar text-primary icon-md mr-2"></i>
|
||||
|
@ -127,8 +127,8 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<h6 class="text-white font-secondary mb-0">{{ .subtitle | markdownify }}</h6>
|
||||
<h2 class="section-title text-white">{{ .title | markdownify }}</h2>
|
||||
<h2 class="text-white font-secondary mb-0">{{ .subtitle | markdownify }}</h2>
|
||||
<h5 class="section-title text-white">{{ .title | markdownify }}</h5>
|
||||
{{ if .button.enable }}
|
||||
{{ with .button }}
|
||||
<a href="{{ .link | absLangURL }}" class="btn btn-secondary">{{ .label }}</a>
|
||||
|
15
themes/educenter-hugo/layouts/pages/pg.html
Normal file
15
themes/educenter-hugo/layouts/pages/pg.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
@ -34,6 +34,12 @@
|
||||
<li class="mb-4">{{ .Site.Params.address | markdownify }}</li>
|
||||
<li class="mb-4">{{ .Site.Params.email | markdownify }}</li>
|
||||
<li class="mb-4">{{ .Site.Params.mobile | markdownify }}</li>
|
||||
<li class="mb-4">
|
||||
<a href="{{ .Site.Params.impressumURL | absLangURL }}">Impressum</a>
|
||||
</li>
|
||||
<li class="mb-4">
|
||||
<a href="{{ .Site.Params.datenschutzURL | absLangURL }}">{{ i18n "datenschutzerklärung" }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- company -->
|
||||
@ -58,7 +64,7 @@
|
||||
</div>
|
||||
<!-- support -->
|
||||
<div class="col-lg-2 col-sm-4 col-6 mb-5 mb-md-0">
|
||||
<h4 class="text-white mb-5 text-uppercase">{{ i18n "courses_footer" }}</h4>
|
||||
<h4 class="text-white mb-5 text-uppercase">{{ i18n "clubs_footer" }}</h4>
|
||||
<ul class="list-unstyled">
|
||||
{{ range first 5 (where .Site.RegularPages "Type" "ganztagsangebote")}}
|
||||
<li class="mb-3"><a class="text-color" href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
|
@ -48,7 +48,7 @@
|
||||
</a>
|
||||
<div class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<a class="dropdown-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
<a class="dropdown-item text-uppercase" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</li>
|
||||
@ -60,7 +60,7 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<!-- Language List -->
|
||||
<!-- Language List >
|
||||
{{ if .IsTranslated }}
|
||||
<select class="m-2 border-0" id="select-language" onchange="location = this.value;">
|
||||
{{ $siteLanguages := .Site.Languages}}
|
||||
@ -81,9 +81,10 @@
|
||||
{{ end }}
|
||||
</select>
|
||||
{{ end }}
|
||||
<!-- /LL -->
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- /header -->
|
||||
<!-- /header -->
|
||||
|
@ -31,4 +31,4 @@
|
||||
</section>
|
||||
<!-- /teachers -->
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -35,9 +35,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-7 mb-4 mb-lg-0">
|
||||
<form action="{{ .Params.Forestry_link | safeURL }}" method="POST">
|
||||
<input type="text" class="form-control mb-3" id="name" name="name" placeholder="Name">
|
||||
<input type="email" class="form-control mb-3" id="mail" name="mail" placeholder="E-Mail Adresse">
|
||||
<input type="text" class="form-control mb-3" id="subject" name="subject" placeholder="Betreff">
|
||||
<textarea name="message" id="message" class="form-control mb-3" placeholder="Nachricht"></textarea>
|
||||
<button type="submit" value="send" class="btn btn-primary">{{ i18n "send" }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ if .Params.Clubs }}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h4 class="mb-4">{{ i18n "courses" | upper}}</h4>
|
||||
<h4 class="mb-4">{{ i18n "clubs" | upper}}</h4>
|
||||
</div>
|
||||
<!-- course item -->
|
||||
{{ range where .Site.RegularPages "Params.teacher" .Title }}
|
||||
@ -46,6 +59,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
<!-- /teacher details -->
|
||||
|
16
themes/educenter-hugo/layouts/vplan/single.html
Normal file
16
themes/educenter-hugo/layouts/vplan/single.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
<embed src="http://www.stundenplan24.de/20072021/mobil" style="width:100%; height:720px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
35
themes/educenter-hugo/layouts/wettbewerbe/list.html
Normal file
35
themes/educenter-hugo/layouts/wettbewerbe/list.html
Normal file
@ -0,0 +1,35 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<!-- wettbewerbe -->
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<!-- course category list -->
|
||||
<ul class="list-inline text-center filter-controls mb-5">
|
||||
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">{{ i18n "all" }}</li>
|
||||
{{ $categories := slice }}
|
||||
{{ range .Data.Pages }}
|
||||
{{ $categories = $categories | append .Params.Category }}
|
||||
{{ end }}
|
||||
{{ range ( $categories | uniq ) }}
|
||||
<li class="list-inline-item m-3 text-uppercase" data-filter="{{ . | urlize }}">{{ . | humanize }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- wettbewerbe list -->
|
||||
<div class="row filtr-container">
|
||||
<!-- wettbewerb item -->
|
||||
{{ range .Data.Pages }}
|
||||
<div data-category="{{ .Params.Category | urlize }}" class="col-lg-4 col-sm-6 mb-5 filtr-item">
|
||||
{{ .Render "wettbewerbe" }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- /wettbewerbe list -->
|
||||
</div>
|
||||
</section>
|
||||
<!-- /wettbewerbe -->
|
||||
|
||||
{{ end }}
|
70
themes/educenter-hugo/layouts/wettbewerbe/single.html
Normal file
70
themes/educenter-hugo/layouts/wettbewerbe/single.html
Normal file
@ -0,0 +1,70 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<!-- section -->
|
||||
<section class="section-sm">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 mb-4">
|
||||
<!-- course thumb -->
|
||||
<img style="height: 500px;width: 100%;object-fit: cover;" src="{{ .Params.Image | relURL }}"
|
||||
class="img-fluid w-100">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h2>{{ .Title }}</h2>
|
||||
</div>
|
||||
<!-- course info -->
|
||||
<div class="row align-items-center mb-5">
|
||||
<div class="col-xl-6 order-sm-3 order-xl-2 col-12 order-2">
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline-item mr-4 mb-3 mb-sm-0">
|
||||
<div class="d-flex align-items-center">
|
||||
<i class="ti-user text-primary icon-md mr-2"></i>
|
||||
<div class="text-left">
|
||||
<h6 class="mb-0">{{ i18n "class" | upper }}</h6>
|
||||
<p class="mb-0">{{ .Params.Class }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xl-3 text-sm-right text-left order-sm-2 order-3 order-xl-3 col-sm-6 mb-4 mb-xl-0">
|
||||
<a href="{{ .Params.Web_url | safeURL }}" class="btn btn-primary">{{ i18n "website" }}</a>
|
||||
</div>
|
||||
<!-- border -->
|
||||
<div class="col-12 mt-4 order-4">
|
||||
<div class="border-bottom border-primary"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- course details -->
|
||||
<div class="row">
|
||||
<div class="col-12 mb-4 content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /section -->
|
||||
|
||||
<!-- related course -->
|
||||
<section class="section pt-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2 class="section-title">{{ i18n "related_contests" }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- course item -->
|
||||
{{ $related := (where .Site.RegularPages "Type" "wettbewerbe") | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3}}
|
||||
{{ range first 3 $related }}
|
||||
<div class="col-lg-4 col-sm-6 mb-5">
|
||||
{{ .Render "wettbewerbe"}}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /related course -->
|
||||
|
||||
{{ end }}
|
File diff suppressed because one or more lines are too long
@ -1,140 +0,0 @@
|
||||
window.marker = null;
|
||||
|
||||
function initialize() {
|
||||
var map;
|
||||
var latitude = $('#map_canvas').attr('data-latitude');
|
||||
var longitude = $('#map_canvas').attr('data-longitude');
|
||||
var mapMarker = $('#map_canvas').attr('data-marker');
|
||||
var mapMarkerName = $('#map_canvas').attr('data-marker-name');
|
||||
var nottingham = new google.maps.LatLng(latitude, longitude);
|
||||
var style = [{
|
||||
"featureType": "landscape",
|
||||
"stylers": [{
|
||||
"hue": "#FFAD00"
|
||||
},
|
||||
{
|
||||
"saturation": 50.2
|
||||
},
|
||||
{
|
||||
"lightness": -34.8
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"stylers": [{
|
||||
"hue": "#FFAD00"
|
||||
},
|
||||
{
|
||||
"saturation": -19.8
|
||||
},
|
||||
{
|
||||
"lightness": -1.8
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.arterial",
|
||||
"stylers": [{
|
||||
"hue": "#FFAD00"
|
||||
},
|
||||
{
|
||||
"saturation": 72.4
|
||||
},
|
||||
{
|
||||
"lightness": -32.6
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.local",
|
||||
"stylers": [{
|
||||
"hue": "#FFAD00"
|
||||
},
|
||||
{
|
||||
"saturation": 74.4
|
||||
},
|
||||
{
|
||||
"lightness": -18
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "water",
|
||||
"stylers": [{
|
||||
"hue": "#00FFA6"
|
||||
},
|
||||
{
|
||||
"saturation": -63.2
|
||||
},
|
||||
{
|
||||
"lightness": 38
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"stylers": [{
|
||||
"hue": "#FFC300"
|
||||
},
|
||||
{
|
||||
"saturation": 54.2
|
||||
},
|
||||
{
|
||||
"lightness": -14.4
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
var mapOptions = {
|
||||
center: nottingham,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
backgroundColor: "#000",
|
||||
zoom: 15,
|
||||
panControl: false,
|
||||
zoomControl: true,
|
||||
mapTypeControl: false,
|
||||
scaleControl: false,
|
||||
streetViewControl: false,
|
||||
overviewMapControl: false,
|
||||
zoomControlOptions: {
|
||||
style: google.maps.ZoomControlStyle.LARGE
|
||||
}
|
||||
}
|
||||
map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
|
||||
var mapType = new google.maps.StyledMapType(style, {
|
||||
name: "Grayscale"
|
||||
});
|
||||
map.mapTypes.set('grey', mapType);
|
||||
map.setMapTypeId('grey');
|
||||
var marker_image = mapMarker;
|
||||
var pinIcon = new google.maps.MarkerImage(marker_image, null, null, null, new google.maps.Size(37, 55));
|
||||
marker = new google.maps.Marker({
|
||||
position: nottingham,
|
||||
map: map,
|
||||
icon: pinIcon,
|
||||
title: mapMarkerName
|
||||
});
|
||||
}
|
||||
var map = document.getElementById('map_canvas');
|
||||
if (map != null) {
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
}
|
Reference in New Issue
Block a user