Commit 801b820f authored by betz's avatar betz

gallery shortcode

parent 9df14274
Pipeline #36070253 passed with stages
in 33 seconds
......@@ -10,4 +10,5 @@ image: "coremeeting.png"
---
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
Everyone is welcome on this meeting.
\ No newline at end of file
Everyone is welcome on this meeting.
......@@ -9,4 +9,4 @@ price: ""
image: "coremeeting.png"
---
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
\ No newline at end of file
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
......@@ -10,3 +10,5 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tempus null
Vivamus vitae pellentesque justo, in placerat quam. Maecenas risus lorem, laoreet at enim a, ultrices fermentum turpis. Fusce dictum tincidunt fermentum. Proin fermentum convallis ipsum in molestie. Pellentesque non arcu nulla. Donec tempus libero at est ullamcorper, quis blandit diam lobortis. Nam diam neque, hendrerit et tellus non, venenatis commodo tortor. Proin nulla magna, mollis nec tortor ac, euismod scelerisque mi.
## images frm index.md
{{< gallery "" >}}
---
title: "Foo"
linktitle: "The black knight"
date: 2018-11-06T22:08:31+01:00
state: running
maintainer: "askarel"
---
\ No newline at end of file
......@@ -4,13 +4,6 @@
<h1>{{ .Title }}</h1>
{{ end }}
<h4 class="datetime">
{{ .Params.eventtype }} {{ if isset .Params "startdate"}}{{ .Params.startdate | dateFormat "Monday 2 January 2006"}}{{ end }} {{ if isset .Params "starttime"}}({{ .Params.starttime }}){{ end }}{{ if or (isset .Params "enddate") (isset .Params "endtime")}} till {{ end }}{{ if isset .Params "enddate"}}{{ .Params.enddate | dateFormat "Monday 2 January 2006"}}{{ end }}{{ if isset .Params "endtime"}} ({{ .Params.endtime }}){{ end }}{{ if isset .Params "location"}} @ {{ .Params.location }}{{ end }}.
</h4>
{{ with .Params.price }}<h5 class="price">Price: {{ . }}</h5>{{ end }}
{{ partial "share.html" . }}
<article>
......
{{ partial "top.html" . }}
<h1>{{ .Title }}</h1>
{{ with .Params.price }}<h5 class="price">Price: {{ . }}</h5>{{ end }}
{{ partial "share.html" . }}
<div class="toc">{{ partial "toc.html" . }}</div>
<h1>Agenda</h1>
<article>
{{ if isset .Params "image"}}
......@@ -15,11 +9,11 @@
<ul>
{{ range $.Site.RegularPages.ByParam "startdate" }}
{{ if eq .Type "events" }}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ if eq .Type "events" }}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}"><img src="{{ .Site.BaseURL }}images/{{ .Params.image }}">{{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
......
{{ partial "top.html" . }}
{{ if .IsPage }}
<h1>{{ .Title }}</h1>
{{ end }}
<h4 class="datetime">
{{ .Params.eventtype }} {{ if isset .Params "startdate"}}{{ .Params.startdate | dateFormat "Monday 2 January 2006"}}{{ end }} {{ if isset .Params "starttime"}}({{ .Params.starttime }}){{ end }}{{ if or (isset .Params "enddate") (isset .Params "endtime")}} till {{ end }}{{ if isset .Params "enddate"}}{{ .Params.enddate | dateFormat "Monday 2 January 2006"}}{{ end }}{{ if isset .Params "endtime"}} ({{ .Params.endtime }}){{ end }}{{ if isset .Params "location"}} @ {{ .Params.location }}{{ end }}.
</h4>
{{ with .Params.price }}<h5 class="price">Price: {{ . }}</h5>{{ end }}
{{ partial "share.html" . }}
<article>
{{ if isset .Params "image"}}
<img src="{{ .Site.BaseURL }}images/{{ .Params.image }}">
{{ end }}
{{ .Content }}
</article>
{{ if .IsPage }}
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
{{ end }}
events/single
{{ partial "bottom.html" . }}
<script src="{{ .Site.BaseURL }}/js/theme.min.js" type="text/javascript"></script>
{{ template "_internal/google_analytics.html" . }}
......@@ -7,3 +7,7 @@
{{ .Hugo.Generator }}
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" rel="stylesheet" type="text/css">
<link href="{{ .Site.BaseURL }}/css/theme.min.css" rel="stylesheet" type="text/css">
<script>
const myLazyLoad = new lazyLoad();
</script>
\ No newline at end of file
......@@ -21,7 +21,9 @@
{{ if eq .Type "projects" }}
{{ if eq .Params.state "running"}}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.linktitle }}</a></li>
<li>
<a href="{{ .Permalink }}">{{ .Params.linktitle }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
......
......@@ -16,11 +16,18 @@
<img src="{{ .Site.BaseURL }}images/{{ .Params.image }}">
{{ end }}
{{ .Content }}
</article>
{{ if .IsPage }}
[<a href="{{ .Site.Params.giteditpath }}/{{ .File.Path }}">Edit this page</a>]
{{ end }}
<h2>Resources</h2>
{{ range .Resources }}
<li><a href="{{ .Permalink }}">{{ .Name }}</a></li>
{{ end }}
{{ partial "bottom.html" . }}
{{ range .Page.Resources.ByType "image" }}
<img src="{{ .Permalink }}">
{{ end }}
\ No newline at end of file
<!--
#####################
# Responsive Images #
#####################
## README:
Allows browser to load a different image based on screen width and device pixel density. This allows for a smaller file size and better load performance when users are on a lower capacity device. Uses images generated in the gulp build script. Some browsers don't support <picture> and will load the fallback <img>; see browser support: http://caniuse.com/#feat=picture
### Usage
Leave off file extention in the src then pass it to a type parameter and wrap everything in double curly braces:
< img src="/img/example" type="jpg" alt="Example" >
Optional: Use the 'caption' parameter to add an image caption:
< img src="/img/example" type="jpg" alt="Example" caption="This is a nice." >
-->
<div class="picture">
{{ if .Get "caption"}}
<figure>
{{ end }}
<picture>
<!-- Large screens -->
<source
media="(min-width: 535px)"
data-original-set="{{ .Get "src" }}.{{ .Get "type" }} 1x,
{{ .Get "src" }}@2x.{{ .Get "type" }} 2x">
<!-- Small screens -->
<source
media="(max-width: 534px)"
data-original-set="{{ .Get "src" }}-sm.{{ .Get "type" }} 1x,
{{ .Get "src" }}-sm@2x.{{ .Get "type" }} 2x">
<!-- Fallback -->
<img
data-original="{{ .Get "src" }}.{{ .Get "type" }}"
data-original-set="{{ .Get "src" }}@2x.{{ .Get "type" }} 2x"
alt="{{ .Get "alt" }}"{{ if .Get "caption"}} class="img-fluid figure-img"{{ end }}>
</picture>
{{ if .Get "caption"}}
<figcaption>{{ .Get "caption" }}</figcaption>
</figure>
{{ end }}
</div>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment