add photo credit

master
B Kleinen 3 years ago
parent 96d26f6f9c
commit 3099d2c714

@ -8,4 +8,4 @@ heroBackground: 'images/unsplash/claudio-schwarz-WKWcvKj1uko-unsplash.jpg'
layout: 'photocredit'
---
Die meisten Fotos auf dieser Seite sind von unsplash:
Quellen der verwendeten Fotos:

@ -1,17 +0,0 @@
[
{
"title": "Free Consultation",
"description": "New clients recieve an obligation free consultation.",
"image": "features/noun_branding_1885335.svg"
},
{
"title": "Certified Accountants",
"description": "All members of our team are certified accountants.",
"image": "features/noun_The Process_1885341.svg"
},
{
"title": "Tax Compliance",
"description": "We stay up to date on the latest changes to the tax code.",
"image": "features/noun_3d modeling_1885342.svg"
}
]

@ -1,21 +1,32 @@
[
{
"link": "images/adam-vradenburg-TK5I5L5JGxY-unsplash.jpg",
"preview": "adam-vradenburg-TK5I5L5JGxY-unsplash-preview.jpg",
"link": "images/unsplash/adam-vradenburg-TK5I5L5JGxY-unsplash.jpg",
"preview": "images/unsplash/adam-vradenburg-TK5I5L5JGxY-unsplash-preview.jpg",
"url": "https://unsplash.com/photos/TK5I5L5JGxY",
"credit": "Photo by <a href='https://unsplash.com/@vradenburg?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Adam Vradenburg</a> on <a href='https://unsplash.com/s/photos/berlin?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Unsplash</a>"
},
{
"link": "images/unsplash/claudio-schwarz-WKWcvKj1uko-unsplash.jpg",
"preview": "images/unsplash/claudio-schwarz-WKWcvKj1uko-unsplash-preview.jpg",
"url": "https://unsplash.com/photos/WKWcvKj1uko",
"credit": "Photo by <a href='https://unsplash.com/@purzlbaum?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Claudio Schwarz</a> on <a href='https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Unsplash</a>"
},
{
"link": "images/unsplash/piero-nigro-tiXfq1WHBGU-unsplash.jpg",
"preview": "images/unsplash/piero-nigro-tiXfq1WHBGU-unsplash-preview.jpg",
"url": "https://unsplash.com/photos/tiXfq1WHBGU",
"credit": "Photo by <a href='https://unsplash.com/@pieronigro?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Piero Nigro</a> on <a href='https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Unsplash</a>"
},
{
"link": "images/unsplash/claudio-schwarz-WKWcvKj1uko-unsplash.jpg",
"preview": "images/unsplash/claudio-schwarz-WKWcvKj1uko-unsplash-preview.jpg",
"url": "https://unsplash.com/photos/WKWcvKj1uko",
"credit": "Photo by <a href='https://unsplash.com/@purzlbaum?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Claudio Schwarz</a> on <a href='https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText'>Unsplash</a>"
{
"link": "images/htw.png",
"preview": "images/htw.png",
"url": "https://nikolas-fahlbusch.de/",
"credit": "Photo by Nikolas Fahlbusch, HTW Berlin"
}
]

@ -13,6 +13,32 @@
</div>
</div>
</div>
{{ $template := . }}
{{if .Site.Data.photocredit }}
<div class="container pb-6 pt-6 pb-md-10 pt-md-10">
<div class="row">
{{ range .Site.Data.photocredit }}
<div class="col-12 col-md-6 mb-2 ">{{ partial "photo" . }}</div>
{{ end }}
</div>
</div>
{{ end }}
{{if .Site.Data.contact.hours }}
<h4 class="mt-4">Business Hours</h4>
<table class="table table-sm opening-hours-table">
{{ range .Site.Data.contact.hours }}
<tr>
<td class="day font-weight-bold">{{ .day }}</td>
<td class="opens">{{ .open }}</td>
<td>-</td>
<td class="closes">{{ .close }}</td>
</tr>
{{ end }}
</table>
{{ end }}
{{ end }}
{{ define "footer_js" }}

@ -0,0 +1,12 @@
<div class="work work-summary">
{{ if .preview }}
<div class="work-image">
<a href="{{ .url}}"><img src="{{ site.BaseURL }}{{ .preview }}" alt = "foto"/></a>
</div>
{{ end }}
<p >
{{ .credit | safeHTML }}
</p>
</div>
Loading…
Cancel
Save