mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 23:26:45 +08:00
add build script, hugo src
This commit is contained in:
53
src/themes/hugo-creative-theme/layouts/partials/modals.html
Normal file
53
src/themes/hugo-creative-theme/layouts/partials/modals.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{{ "<!-- Portfolio Modals -->" | safeHTML }}
|
||||
{{ range .Site.Data.projects }}
|
||||
<div class="portfolio-modal modal fade" id="portfolioModal{{ .modalID }}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-content">
|
||||
<div class="close-modal" data-dismiss="modal">
|
||||
<div class="lr">
|
||||
<div class="rl">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<div class="modal-body">
|
||||
{{ with .title }}
|
||||
<h2>{{ . }}</h2>
|
||||
{{ end }}
|
||||
{{ if and .title .description }}
|
||||
<hr class="star-primary">
|
||||
{{ end }}
|
||||
<img src="img/portfolio/{{ .img }}" class="img-responsive img-centered" alt="">
|
||||
{{ with .description }}
|
||||
<p>{{ . | markdownify }}</p>
|
||||
{{ end }}
|
||||
{{ if or .client .date .category }}
|
||||
<ul class="list-inline item-details">
|
||||
{{ if .client }}
|
||||
<li>{{ with $.Site.Params.portfolio.modal.client }}{{.}}: {{ end }}
|
||||
<strong><a href="{{ with .clientLink }}{{ . }}{{ else }}#{{ end }}">{{ .client }}</a></strong>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .date }}
|
||||
<li>{{ with $.Site.Params.portfolio.modal.date }}{{.}}: {{ end }}
|
||||
<strong><a href="#">{{ .date }}</a></strong>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .category }}
|
||||
<li>{{ with $.Site.Params.portfolio.modal.category }}{{.}}: {{ end }}
|
||||
<strong><a href="#">{{ .category }}</a></strong>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ with $.Site.Params.portfolio.modal.buttonText }}
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>{{.}}</button>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user