mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 01:54:06 +00:00
71 lines
3.4 KiB
HTML
71 lines
3.4 KiB
HTML
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
|
{{ $section := where .Site.RegularPages "Section" "in" $mainSections }}
|
|
{{ $section_count := len $section }}
|
|
{{ $n_posts := $.Param "recent_posts_number" | default 6 }}
|
|
<div class="col-lg-9 col-md-8 col-12 float-md-left pl-md-2">
|
|
<div class="UnderlineNav width-full user-profile-nav top-0 is-placeholder"
|
|
style="visibility: hidden; display: none; height: 56px;"></div>
|
|
<div class="UnderlineNav width-full user-profile-nav js-sticky top-0"
|
|
style="position: static; top: 0px; left: 330.5px; width: 911.5px;">
|
|
<nav class="UnderlineNav-body" data-pjax aria-label="User profile">
|
|
<a aria-current="page" class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ .Site.BaseURL }}">
|
|
Overview
|
|
</a>
|
|
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 selected" href="{{ absURL "post/" }}">
|
|
Posts
|
|
<span class="Counter hide-lg hide-md hide-sm">
|
|
{{ $section_count}}
|
|
</span>
|
|
</a>
|
|
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ absURL "about/" }}">
|
|
About
|
|
</a>
|
|
</nav>
|
|
</div>
|
|
|
|
<div class="position-relative">
|
|
<div id="user-repositories-list">
|
|
<ul data-filterable-for="your-repos-filter" data-filterable-type="substring">
|
|
{{ range .Paginator.Pages }}
|
|
<li class="col-12 d-flex width-full py-4 border-bottom public fork">
|
|
<div class="col-12 col-lg-12 d-inline-block">
|
|
<div class="d-inline-block mb-1">
|
|
<h3>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</h3>
|
|
</div>
|
|
|
|
<div name="posts-post" class="text-gray mb-2 pr-4">
|
|
{{ .Summary | safeHTML }}
|
|
</div>
|
|
|
|
<div class="f6 text-gray mt-2">
|
|
Updated <relative-time datetime="{{ .PublishDate.Format "2006-01-02" }}" class="no-wrap"
|
|
title="Modifyd at {{ .Lastmod.Format "2006/01/02" }}">
|
|
{{ .PublishDate.Format "January 2, 2006" }}</relative-time>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ if gt .Paginator.TotalPages 1}}
|
|
<div class="paginate-container">
|
|
<div class="BtnGroup" data-test-selector="pagination">
|
|
{{ if .Paginator.HasPrev }}
|
|
<a rel="nofollow" class="btn btn-outline BtnGroup-item"
|
|
href="{{ .Paginator.Prev.URL }}">Previous</a>
|
|
{{ else }}
|
|
<button class="btn btn-outline BtnGroup-item" disabled="disabled">Previous</button>
|
|
{{ end }}
|
|
{{ if .Paginator.HasNext }}
|
|
<a rel="nofollow" class="btn btn-outline BtnGroup-item" href="{{ .Paginator.Next.URL }}">Next</a>
|
|
{{ else }}
|
|
<button class="btn btn-outline BtnGroup-item" disabled="disabled">Next</button>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|