mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Update layouts
This commit is contained in:
parent
165ad9b6fa
commit
68a57bbb47
@ -8,7 +8,7 @@
|
||||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate (where .Pages ".Params.type" "!=" "page") }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||
|
||||
{{ if gt $paginator.TotalPages 0 }}
|
||||
{{ range $index, $page := $paginator.Pages }}
|
||||
@ -20,7 +20,7 @@
|
||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||
</section>
|
||||
<footer class="entry-footer">
|
||||
<time>{{ .Date.Format (.Site.Params.dateFormat | default "2006.1.2") }}</time>
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
</footer>
|
||||
<a class="entry-link" href="{{ .Permalink }}"></a>
|
||||
</article>
|
||||
|
@ -6,19 +6,19 @@
|
||||
<div class="post-meta">
|
||||
{{- if or .Params.author .Site.Params.author -}}
|
||||
{{ .Params.author | default .Site.Params.author }} · {{ end }}
|
||||
{{- .Date.Format (.Site.Params.dateFormat | default "2006.1.2") -}}
|
||||
{{- .Date.Format "January 2, 2006" -}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="post-content">{{ .Content }}</div>
|
||||
<footer class="post-footer">
|
||||
{{ if .Params.tags }}
|
||||
<footer class="post-footer">
|
||||
<ul class="post-tags">
|
||||
{{ range .Params.tags }}
|
||||
<li><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
<!-- Comments area start -->
|
||||
{{ if not (eq .Params.comments false) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
|
@ -22,11 +22,11 @@
|
||||
<meta name="author" content="{{ .Site.Params.author }}">
|
||||
{{ end -}}
|
||||
<!-- Styles -->
|
||||
<link href="{{ "css/github-gist.min.css" | absURL }}" rel="stylesheet">
|
||||
<link href="{{ "css/style.css" | absURL }}" rel="stylesheet">
|
||||
<link href="{{ "an-old-hope.min.css" | absURL }}" rel="stylesheet">
|
||||
<link href="{{ "style.css" | absURL }}" rel="stylesheet">
|
||||
<!-- Favicons -->
|
||||
<link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | absURL }}">
|
||||
<link rel="icon" href="{{ "img/favicon.ico" | absURL }}">
|
||||
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
|
||||
<link rel="icon" href="{{ "favicon.ico" | absURL }}">
|
||||
<!-- Generator -->
|
||||
{{ hugo.Generator }}
|
||||
<!-- RSS -->
|
||||
@ -35,23 +35,16 @@
|
||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "header-include.html" . }}
|
||||
</head>
|
||||
<body class="{{if eq .Kind `page` }}single{{else}}list{{ if .IsHome }} home{{ end }}{{end}}">
|
||||
<header class="header">
|
||||
<div class="wrap">
|
||||
<nav class="nav">
|
||||
{{ if .IsHome }}
|
||||
<h1 class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></h1>
|
||||
{{ else }}
|
||||
<p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
|
||||
{{ end }}
|
||||
{{ if .Site.Menus.main }}
|
||||
<button class="menu-toggle" type="button"></button>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
{{ if .Site.Menus.main }}
|
||||
<nav class="nav">
|
||||
<ul class="menu">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
@ -59,6 +52,7 @@
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
<main class="main">
|
||||
|
Loading…
Reference in New Issue
Block a user