Add basic scaffolding for site.
This commit is contained in:
commit
d95126dca8
109 changed files with 10750 additions and 0 deletions
15
themes/mainroad/layouts/partials/widgets/recent.html
Normal file
15
themes/mainroad/layouts/partials/widgets/recent.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{- $recent := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
||||
{{- $recent_num := (.Site.Params.widgets.recent_num | default 10) }}
|
||||
|
||||
{{- if $recent }}
|
||||
<div class="widget-recent widget">
|
||||
<h4 class="widget__title">{{ T "recent_title" }}</h4>
|
||||
<div class="widget__content">
|
||||
<ul class="widget__list">
|
||||
{{- range first $recent_num $recent }}
|
||||
<li class="widget__item"><a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue