Archived
Initialize homepage
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $.Scratch.Add "image" ( .Get "image") }}
|
||||
{{ $.Scratch.Add "alt" ( .Get "alt") }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Add "image" "" }}
|
||||
{{ $.Scratch.Add "alt" "" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $image := $.Scratch.Get "image" }}
|
||||
{{ $alt := $.Scratch.Get "alt" }}
|
||||
|
||||
<div class="portfolio">
|
||||
<div class="portfolio-inner">
|
||||
<div class="portfolio-image"><img src="{{ $image }}" alt="{{ $alt }}"></div>
|
||||
<div class="portfolio-content">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user