初始化hugo
This commit is contained in:
1 parent
3560921bf7
commit
2c46cd35e7
81 files changed
+29189
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- header部分 -->
|
||||
{{ partial "header.html" .}}
|
||||
<!-- header部分结束 -->
|
||||
<!-- main主体部分 -->
|
||||
{{ block "main" . }}{{ end }}
|
||||
<!-- main主体部分结束 -->
|
||||
<!-- footer页脚部分 -->
|
||||
{{ partial "footer.html" .}}
|
||||
<!-- footer页脚部分结束 -->
|
||||
@@ -0,0 +1,29 @@
|
||||
{{ define "main" }}
|
||||
<div id="pjax-container">
|
||||
<article>
|
||||
<div class="recent-posts section">
|
||||
<h2 class="section-header">随笔<i class="ri-quill-pen-line"></i></h2>
|
||||
<div class="posts">
|
||||
{{ range first 5 .Site.RegularPages }}
|
||||
<div class="post">
|
||||
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<ul class="pagination">
|
||||
<li class="page-item page-previous">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a class="next" title="上一页" href="{{ .Paginator.PrevURL }}">上一页</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
<li class="page-item page-next">
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a class="next" title="下一页" href="{{ .Paginator.NextURL }}">下一页</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,31 @@
|
||||
{{ define "main" }}
|
||||
<div id="pjax-container">
|
||||
<article>
|
||||
<div class="recent-posts section">
|
||||
<h2 class="section-header">随笔<i class="ri-quill-pen-line"></i></h2>
|
||||
<div class="posts">
|
||||
{{ range .Pages }}
|
||||
<div class="post">
|
||||
<div class="time">{{ .Date.Format "January 2, 2006" }}</div>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<ul class="pagination">
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="page-item page-previous">
|
||||
<a class="next" title="" href="{{ .Paginator.Next.URL }}">下一页</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="page-item page-next">
|
||||
<a class="next" title="" href="{{ .Paginator.Prev.URL }}">上一页</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{{ define "main" }}
|
||||
<div id="pjax-container">
|
||||
<article>
|
||||
<h1 class="post-title" itemprop="name headline">{{ .Title }}</h1>
|
||||
<div class="meta">
|
||||
作者: 小赵同学 浏览: {{ .Params.views }} 字数: {{ .WordCount }} 分类: {{ range .Params.categories }}<a href="{{ .Permalink }}">{{ . }}</a>{{ end }}
|
||||
</div>
|
||||
<div class="post-content" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<div class="post-tags" style="margin-top: -30px;">
|
||||
<nav class="nav tags">
|
||||
<ul class="flat">
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</article>
|
||||
<div id="comments" class="comments-area">
|
||||
<!-- 评论区内容 -->
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user