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