-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.pagination { | ||
display: flex; | ||
justify-content: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,69 @@ | ||
{{ define "main" }} | ||
|
||
{{ end }} | ||
<div class="home"> | ||
|
||
|
||
<div class="row pack"> | ||
|
||
{{ range .Paginator.Pages }} | ||
<div class="col-md-4 card"> | ||
<a href="{{ .Permalink }}" class="index-anchor"> | ||
<div class="panel panel-default"> | ||
|
||
{{ if .Params.img }} | ||
<img width="100%" src="{{ .Site.BaseURL }}images/{{ .Params.img }}" alt="{{ .Title }}"> | ||
{{ else }} | ||
<img width="100%" src="{{ .Site.BaseURL }}images/webjeda-logo-big.jpg" alt="{{ .Site.Title}}"> | ||
{{ end }} | ||
|
||
<div class="panel-body"> | ||
<h3 class="panel-title pull-left">{{ .Title | truncate 25 }}</h3><span class="post-meta pull-right"><small>{{ .Date.Format "January 2, 2006" }}</small></span> | ||
</div> | ||
|
||
<div class="panel-body"><small> | ||
{{ .Summary | plainify | truncate 180 }}</small> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
{{ end }} | ||
|
||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-4"> </div> | ||
<div class="col-md-4"> | ||
{{ if gt .Paginator.TotalPages 1 }} | ||
<ul class="pagination"> | ||
{{ if .Paginator.HasPrev }} | ||
<li><a href="{{ .Paginator.Prev.URL }}">« Prev</a></li> | ||
{{ else }} | ||
<li><span>« Prev</span></li> | ||
{{ end }} | ||
|
||
{{ $scratch := newScratch }} | ||
{{ $scratch.Set "current" .Paginator.PageNumber }} | ||
|
||
{{ range .Paginator.Pagers }} | ||
{{ if eq .PageNumber ($scratch.Get "current") }} | ||
<li class="active"><span><em>{{ .PageNumber }}</em></span></li> | ||
{{ else }} | ||
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ if .Paginator.HasNext }} | ||
<li><a href="{{ .Paginator.Next.URL }}">Next »</a></li> | ||
{{ else }} | ||
<li><span >Next »</span></li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
|
||
</div> | ||
<div class="col-md-4"> </div> | ||
</div> | ||
</div> | ||
|
||
{{ end }} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.