make dynamic asset of bigimg

This commit is contained in:
wgroeneveld 2020-06-02 16:35:19 +02:00
parent 441d28327a
commit 172b0f3504
89 changed files with 82 additions and 53 deletions

View File

Before

Width:  |  Height:  |  Size: 713 KiB

After

Width:  |  Height:  |  Size: 713 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View File

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 111 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 178 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 997 KiB

After

Width:  |  Height:  |  Size: 997 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

Before

Width:  |  Height:  |  Size: 874 KiB

After

Width:  |  Height:  |  Size: 874 KiB

View File

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

View File

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 164 KiB

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

View File

Before

Width:  |  Height:  |  Size: 215 KiB

After

Width:  |  Height:  |  Size: 215 KiB

View File

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

View File

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 199 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 152 KiB

View File

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

Before

Width:  |  Height:  |  Size: 709 KiB

After

Width:  |  Height:  |  Size: 709 KiB

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -1,6 +1,6 @@
---
title: "Hi, Im Wouter Groeneveld"
bigimg: /img/About Me.jpg
bigimg: About Me.jpg
disableComments: true
---

View File

@ -1,7 +1,7 @@
---
title: 2017 in books
date: '2018-01-27'
bigimg: /img/2017inbooks.png
bigimg: 2017inbooks.png
url: /post/2017-in-books/
subtitle: Pattern recognition in books
tags:

View File

@ -1,7 +1,7 @@
---
title: A samurai learning mindset
date: '2017-06-20'
bigimg: /img/musashi.jpg
bigimg: musashi.jpg
url: /post/a-samurai-learning-mindset/
subtitle: Bushido and the ever learning spirit, techniques for 1600 and 2017?
tags:

View File

@ -1,7 +1,7 @@
---
title: Boeken die mij gevormd hebben tot wie ik ben
date: '2018-08-20'
bigimg: /img/2017inbooks.png
bigimg: 2017inbooks.png
subtitle: Deze teksten lieten een blijvende indruk na
tags:
- reading

View File

@ -1,7 +1,7 @@
---
title: Ending your day with happy thoughts
date: '2013-08-13'
bigimg: /img/Ending your day with happy thoughts.jpg
bigimg: Ending your day with happy thoughts.jpg
url: /post/can-i-haz-happy-thoughts/
aliases:
- /ending-your-day-with-happy-thoughts/

View File

@ -1,7 +1,7 @@
---
title: 'De zin en onzin van conferenties'
date: '2019-09-23'
bigimg: /img/conferenties.jpg
bigimg: conferenties.jpg
subtitle: Een verspilling van tijd en middelen, of juist niet?
published: true
---

View File

@ -1,7 +1,7 @@
---
title: Healing creative scars
date: '2017-06-25'
bigimg: /img/boekjesheader.png
bigimg: boekjesheader.png
url: /post/healing-creative-scars/
subtitle: My ultimate secret weapon for self improvement
tags:

View File

@ -1,7 +1,7 @@
---
title: I'm jealous of my dog
date: '2017-08-17'
bigimg: /img/woef.jpg
bigimg: woef.jpg
url: /post/i-am-jealous-of-my-dog/
subtitle: Getting rid of garbage in your head
tags:

View File

@ -1,7 +1,7 @@
---
title: Inventing - for the worse?
date: '2017-12-30'
bigimg: /img/craftheader.png
bigimg: craftheader.png
url: /post/inventing-for-the-worse/
subtitle: Is inventing always a good thing?
tags:

View File

@ -1,7 +1,7 @@
---
title: Journaling in practice
date: '2017-07-10'
bigimg: /img/journalingpratice.jpg
bigimg: journalingpratice.jpg
url: /post/journaling-in-practice/
subtitle: My guide to keeping a journal
tags:

View File

@ -1,6 +1,6 @@
---
title: Learning to become a baker
bigimg: /img/baker.jpg
bigimg: baker.jpg
date: '2013-10-13'
url: /post/learning-to-become-a-baker/
subtitle: Why there are more and more industrial bakers who dont care what they sell.

View File

@ -1,7 +1,7 @@
---
title: Nuts about local nuts
date: '2017-07-03'
bigimg: /img/pines.jpg
bigimg: pines.jpg
url: /post/nuts-about-local-nuts/
subtitle: A case for local food
tags:

View File

@ -1,6 +1,6 @@
---
title: On finding your inner zen in big cities
bigimg: /img/innerzenheader.jpg
bigimg: innerzenheader.jpg
url: /post/on-finding-your-inner-zen-in-big-cities/
date: '2013-08-29'
subtitle: Coping with crowded places when youre used to peaceful villages

View File

@ -1,7 +1,7 @@
---
title: 'Over analoog en digitaal'
date: '2018-12-22'
bigimg: /img/snes_header.jpg
bigimg: snes_header.jpg
subtitle: 'Waarom een fysieke handeling niet vervangbaar is'
published: true
---

View File

@ -1,7 +1,7 @@
---
title: 'Over de inflatie van intellect'
date: '2018-07-24'
bigimg: /img/overintellect.jpg
bigimg: overintellect.jpg
subtitle: De McDonaldisering van cultuur?
published: true
---

View File

@ -1,7 +1,7 @@
---
title: 'Over Onmiddellijke Voldoening'
date: '2019-12-02'
bigimg: /img/beren_winkel.jpg
bigimg: beren_winkel.jpg
subtitle: Het ik-MOET-het-nu-hebben gevoel zijn zin geven
published: true
---

View File

@ -1,7 +1,7 @@
---
title: 'Over tijdsbesef'
date: '2018-07-10'
bigimg: /img/overtijdsbesef.jpg
bigimg: overtijdsbesef.jpg
subtitle: Beroepen met een ander gevoel van tijd
published: true
---

View File

@ -1,7 +1,7 @@
---
title: Concentrating on serendipitous creativity
date: '2018-03-25'
bigimg: /img/tea.png
bigimg: tea.png
url: /post/serendipitous-creativity/
subtitle: Focused or collaborative attention?
tags:

View File

@ -1,7 +1,7 @@
---
title: Take your time.
date: '2018-02-16'
bigimg: /img/takeyourtime.jpg
bigimg: takeyourtime.jpg
url: /post/take-your-time/
subtitle: Stop rushing. Start watching.
tags:

View File

@ -1,6 +1,6 @@
---
title: No, vegetarians do not eat fish!
bigimg: /img/peppersheader.jpg
bigimg: peppersheader.jpg
date: '2013-09-06'
url: /post/no-vegetarians-do-not-eat-fish/
subtitle: The sad state of knowledge in your typical restaurant

View File

@ -1,6 +1,6 @@
---
title: Unit Testing Stored Procedures
bigimg: /img/Unit Testing Stored Procedures.jpg
bigimg: Unit Testing Stored Procedures.jpg
date: '2013-10-10'
aliases:
- /post/unit-testing-stored-procedures/

View File

@ -1,6 +1,6 @@
---
title: Visual Studio 2012 for Eclipse users
bigimg: /img/Visual Studio 2012 for Eclipse users.jpg
bigimg: Visual Studio 2012 for Eclipse users.jpg
date: '2013-10-14'
subtitle: Trying to fill the gap of missing features in VStudio.
tags: [ 'visual studio', 'eclipse']

View File

@ -1,7 +1,7 @@
---
title: Enhancing the builder pattern with closures
date: '2013-11-14'
bigimg: /img/Enhancing the builder pattern with closures.jpg
bigimg: Enhancing the builder pattern with closures.jpg
subtitle: the trainwreck/builder/chaining pattern can be dangerous and here's why
aliases:
- /enhancing-the-builder-pattern-with-closures/

View File

@ -1,6 +1,6 @@
---
title: Integration Testing with SQLite
bigimg: /img/Integration Testing with SQLite.jpg
bigimg: Integration Testing with SQLite.jpg
aliases:
- /integration-testing-with-sqlite/
- /post/integration-testing-sqlite/

View File

@ -1,6 +1,6 @@
---
title: Metaprogramming instead of duplication
bigimg: /img/Metaprogramming instead of duplication.jpg
bigimg: Metaprogramming instead of duplication.jpg
date: '2014-03-14'
subtitle: convention over duplication, good or bad?
tags: [ 'CSharp', 'java', 'metaprogramming', 'reflection', 'unit testing', 'mocking' ]

View File

@ -1,6 +1,6 @@
---
title: Bye autotools hello Scons
bigimg: /img/Bye autotools hello Scons.jpg
bigimg: Bye autotools hello Scons.jpg
date: '2014-03-26'
subtitle: Building C++ projects with Scons
tags: [ 'C++', 'python', 'build ecosystem' ]

View File

@ -1,6 +1,6 @@
---
title: Custom Webdriver Page Factories
bigimg: /img/Custom Webdriver Page Factories.jpg
bigimg: Custom Webdriver Page Factories.jpg
date: '2014-09-22'
aliases:
- /post/custom-webdriver-page-factories/

View File

@ -1,6 +1,6 @@
---
title: Faking domain logic
bigimg: /img/Faking domain logic.jpg
bigimg: Faking domain logic.jpg
date: '2014-09-23'
aliases:
- /post/faking-domain-logic/

View File

@ -1,6 +1,6 @@
---
title: Unit Testing Extjs UI with Siesta
bigimg: /img/Unit Testing Extjs UI with Siesta.jpg
bigimg: Unit Testing Extjs UI with Siesta.jpg
aliases:
- /unit-testing-extjs-ui-with-siesta/
- /post/uni-testing-extjs-ui/

View File

@ -4,7 +4,7 @@ date: '2015-01-14'
subtitle: What should you do when something goes wrong with your scenario tests
aliases:
- /post/webdriver-exception-handling/
bigimg: /img/Webdriver Exception Handling.jpg
bigimg: Webdriver Exception Handling.jpg
tags: [ 'unit testing', 'CSharp', 'webdriver', 'scenario testing' ]
---

View File

@ -1,6 +1,6 @@
---
title: Migrating from Extjs to React gradually
bigimg: /img/Migrating from Extjs to React gradually.jpg
bigimg: Migrating from Extjs to React gradually.jpg
aliases:
- /migrating-from-extjs-to-react-gradually/
- /post/react-in-extjs/

View File

@ -1,7 +1,7 @@
---
title: A quick look at 6 fountain pens
date: '2017-07-18'
bigimg: /img/6pens.jpg
bigimg: 6pens.jpg
aliases:
- /post/fountain-pens-first-look/
subtitle: A test drive from a drawing perspective

View File

@ -1,6 +1,6 @@
---
title: Hiding Code Complexity
bigimg: /img/complexity.png
bigimg: complexity.png
aliases:
- /post/hiding-complexity/
date: '2018-02-26'

View File

@ -1,7 +1,7 @@
---
title: Death to pseudocode?
date: '2018-04-06'
bigimg: /img/btrees.png
bigimg: btrees.png
subtitle: Clean code, pseudocode or real code?
aliases:
- /post/pseudocode/

View File

@ -1,6 +1,6 @@
---
title: Domain Driven Design in C
bigimg: /img/Faking domain logic.jpg
bigimg: Faking domain logic.jpg
date: '2018-08-03'
aliases:
- /post/domain-driven-design-in-c/

View File

@ -1,7 +1,7 @@
---
title: A Decade in the Software Engineering industry
date: '2018-10-27'
bigimg: /img/glasses.jpg
bigimg: glasses.jpg
aliases:
- /post/a-decade-in-the-industry/
subtitle: Everything I've learned in 10 + 1 years

View File

@ -1,7 +1,7 @@
---
title: The Startup of a Lean Doctorate
date: '2018-10-19'
bigimg: /img/lightbulbs.jpg
bigimg: lightbulbs.jpg
subtitle: Using agile practices to tacle a long-term research project
aliases:
- /post/lean-doctorate/

View File

@ -1,6 +1,6 @@
---
title: Unit Testing PicoBlaze Assembly files
bigimg: /img/Unit Testing Stored Procedures.jpg
bigimg: Unit Testing Stored Procedures.jpg
date: '2018-12-05'
aliases:
- /post/unit-testing-picoblaze-assembly/

View File

@ -2,7 +2,7 @@
title: "A Ph.D. Thesis: Iteration 2"
date: '2019-01-03'
subtitle: On Mastering Lean Skills in Software Engineering Education
bigimg: /img/humboldt.jpg
bigimg: humboldt.jpg
aliases:
- /post/phd-iteration-2/
tags:

View File

@ -1,7 +1,7 @@
---
title: IT Competences and Certificates
date: '2019-02-05'
bigimg: /img/generic.jpg
bigimg: generic.jpg
aliases:
- /post/competences-and-certificates/
subtitle: A dark and murky path to tread

View File

@ -1,7 +1,7 @@
---
title: Teaching Object-Oriented design using the GBA
date: '2019-04-15'
bigimg: /img/gbacarts.jpg
bigimg: gbacarts.jpg
aliases:
- /post/teaching-oo-with-gba/
subtitle: C++ and a GBA engine. Let's learn to create a game!

View File

@ -1,7 +1,7 @@
---
title: 'Programming: a Creative Cognitive Process'
date: '2019-10-08'
bigimg: /img/glasses.jpg
bigimg: glasses.jpg
aliases:
- /post/creative-cognitive-processes/
subtitle: Mapping creativity models to software development

View File

@ -1,7 +1,7 @@
---
title: Page Building with Brizy in Wordpress
date: '2020-05-26'
bigimg: ../brizy.jpg
bigimg: brizy.jpg
subtitle: Shortcodes and custom hacks incoming...
tags:
- php

View File

@ -1,6 +1,6 @@
---
title: Tags
bigimg: /img/Archive.jpg
bigimg: Archive.jpg
icontag: tag
---

View File

@ -137,11 +137,15 @@ pre
font-size: 1rem !important
.big-img .container
@media (min-width: 768px)
height: 200px
@media (min-width: 1600px)
height: 250px !important
.big-img
.container
height: 100px !important
@media (min-width: 768px)
height: 150px !important
@media (min-width: 960px)
height: 200px !important
@media (min-width: 1600px)
height: 250px !important
main

View File

@ -1,9 +1,34 @@
{{ if .Params.bigimg }}
<div class="jumbotron big-img" style='background-image: url("{{.Params.bigimg}}");'>
<div class="container">
&nbsp;
</div>
{{- $image := resources.Get (printf "%s%s" "bigimg/" .Params.bigimg ) -}}
{{ if eq $image nil }}
<div style="padding-top: 3rem">
</div>
{{ else }}
{{- $imgsmall := $image.Resize "768x jpg q70" }}
{{- $imgmedium := $image.Resize "960x jpg q85" }}
<style>
.big-img {
background-image: url({{ $imgsmall.RelPermalink }});
}
@media (min-width: 768px) {
.big-img {
background-image: url({{ $imgmedium.RelPermalink }});
}
}
@media (min-width: 960px) {
.big-img {
background-image: url({{ $image.RelPermalink }});
}
}
</style>
<div class="jumbotron big-img">
<div class="container">
&nbsp;
</div>
</div>
{{ end }}
{{ else }}
<div style="padding-top: 3rem">
</div>