mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-12 16:29:44 +00:00
id
must be unique in the page
This commit is contained in:
parent
594c8c1cc0
commit
3113e1a046
1 changed files with 3 additions and 11 deletions
|
@ -9,24 +9,16 @@
|
|||
<div class="column is-half"> {{ else if eq .Site.Params.projectColumns "3" }}
|
||||
<div class="column is-one-third"> {{ end }}
|
||||
<!-- Hey Vicky, show half column if number is even. -->
|
||||
<div class="card">
|
||||
<div {{ if not .Params.external_link }} id="project{{.Title | urlize}}" {{ end }} class="card">
|
||||
<div class="card-image">
|
||||
<figure class="image is-3by2">
|
||||
<a {{ if .Params.external_link }}
|
||||
href="{{ .Params.external_link }}"
|
||||
{{ else }}
|
||||
id="project{{.Title | urlize}}"
|
||||
{{ end }}>
|
||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
||||
<img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg }}{{ end }}">
|
||||
</a>
|
||||
</figure>
|
||||
</div>
|
||||
<div class="card-content has-text-centered top-pad">
|
||||
<a {{ if .Params.external_link }}
|
||||
href="{{ .Params.external_link }}"
|
||||
{{ else }}
|
||||
id="project{{.Title | urlize}}"
|
||||
{{ end }}>
|
||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue