forked from markus/AMPERION_Webpage
Add themes folder
This commit is contained in:
parent
78eab7dcac
commit
077da5b941
108 changed files with 6225 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
<div class="widget widget-latest-post">
|
||||
<h4 class="widget-title">{{ i18n "latest_posts" }}</h4>
|
||||
{{ range first 4 (where site.Pages "Type" "post") }}
|
||||
<div class="media">
|
||||
<a class="pull-left" href="{{ .RelPermalink }}">
|
||||
{{ if isset .Params "image" }}
|
||||
<img class="media-object" src="{{ .Params.image | relURL }}" alt="{{ .Title }}">
|
||||
{{ end }}
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
|
||||
<p>{{ .Summary | truncate 50 }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<div class="widget widget-category">
|
||||
<h4 class="widget-title">{{ i18n "categories" }}</h4>
|
||||
{{- if isset site.Taxonomies "categories" }}
|
||||
{{- if not (eq (len site.Taxonomies.categories) 0) }}
|
||||
<ul class="widget-category-list">
|
||||
{{- range site.Taxonomies.categories }}
|
||||
<li><a href="{{ .Page.RelPermalink }}"{{ if (and (eq $.Page.Kind "term") (eq $.Page.Type "categories") (eq $.Page.Title .Page.Title)) }} class="current"{{ end }}>{{ .Page.Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<div class="widget widget-tag">
|
||||
<h4 class="widget-title">{{ i18n "tags" }}</h4>
|
||||
{{- if isset site.Taxonomies "tags" }}
|
||||
{{- if not (eq (len site.Taxonomies.tags) 0) }}
|
||||
<ul class="widget-tag-list">
|
||||
{{- range site.Taxonomies.tags }}
|
||||
<li><a href="{{ .Page.RelPermalink }}"{{ if (and (eq $.Page.Kind "term") (eq $.Page.Type "tags") (eq $.Page.Title .Page.Title)) }} class="current"{{ end }}>{{ .Page.Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{{- range .Widgets -}}
|
||||
{{- partial ( print "widgets/" . ) $.Scope -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue