mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
							
								
								
									
										3
									
								
								layouts/404.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								layouts/404.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| {{ partial "header.html" . }} | ||||
| <div class="not-found">404</div> | ||||
| {{ partial "footer.html" . }} | ||||
							
								
								
									
										44
									
								
								layouts/_default/list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								layouts/_default/list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| {{ partial "header.html" . }} | ||||
| {{ if not .IsHome }} | ||||
| <header class="list-header"> | ||||
|   {{ if eq .Data.Singular "tag" }}<span>Tagged in</span> | ||||
|   <h1 class="list-title">{{ .Data.Term }}</h1> | ||||
|   {{ else }}<h1 class="list-title">Posts</h1> | ||||
|   {{ end }} | ||||
| </header> | ||||
| {{ end }} | ||||
| {{ $paginator := .Paginate (where .Pages ".Params.type" "!=" "page") (index .Site.Params "paginate" | default 10) }} | ||||
| {{ if gt $paginator.TotalPages 0 }} | ||||
| {{ range $index, $page := $paginator.Pages }} | ||||
| {{ if and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) }} | ||||
| {{ .Scratch.Set "postClass" "first-entry" }} | ||||
| {{ .Scratch.Set "firstEmoji" "<span class=\"welcome-emoji\">👉</span>" }} | ||||
| {{ else }} | ||||
| {{ .Scratch.Set "postClass" "post-entry" }} | ||||
| {{ end }} | ||||
| <article class="post {{ .Scratch.Get `postClass` }}"> | ||||
|   <header class="post-header"> | ||||
|     {{ safeHTML (.Scratch.Get `firstEmoji`) }} | ||||
|     <h2 class="post-title">{{ .Title }}</h2> | ||||
|   </header> | ||||
|   <p class="post-summary">{{ .Summary | plainify | htmlUnescape }}...</p> | ||||
|   <footer class="post-footer"> | ||||
|     <p class="post-meta">{{ .Date.Format "2006.1.2" }}</p> | ||||
|   </footer> | ||||
|   <a class="post-link" href="{{ .Permalink }}"></a> | ||||
| </article> | ||||
| {{ end }} | ||||
| {{ end }} | ||||
| {{ if gt $paginator.TotalPages 1 }} | ||||
| <footer class="list-footer"> | ||||
|   <nav class="pagination"> | ||||
|     {{ if $paginator.HasPrev }} | ||||
|     <a class="pagination-prev" href="{{ $paginator.Prev.URL }}">← 上一页</a> | ||||
|     {{ end }} | ||||
|     {{ if $paginator.HasNext }} | ||||
|     <a class="pagination-next" href="{{ $paginator.Next.URL }}">下一页 →</a> | ||||
|     {{ end }} | ||||
|   </nav> | ||||
| </footer> | ||||
| {{ end }} | ||||
| {{ partial "footer.html" . }} | ||||
							
								
								
									
										23
									
								
								layouts/_default/single.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								layouts/_default/single.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| {{ partial "header.html" . }} | ||||
| <article class="post post-view"> | ||||
|   <header class="post-header"> | ||||
|     <h1 class="post-title">{{ .Title }}</h1> | ||||
|     <p class="post-meta"> | ||||
|       {{- if or .Params.author .Site.Params.author -}} | ||||
|       {{ .Params.author | default .Site.Params.author }} · {{ end }} | ||||
|       {{- .Date.Format "2006.1.2" -}} | ||||
|     </p> | ||||
|   </header> | ||||
|   <div class="post-content">{{ .Content }}</div> | ||||
|   <footer class="post-footer"> | ||||
|     {{ if .Params.tags }} | ||||
|     <ul class="post-tags"> | ||||
|       {{ range .Params.tags }} | ||||
|       <li><a href="{{ `/tags/` | absURL }}{{ . | urlize }}/">{{ . }}</a></li> | ||||
|       {{ end }} | ||||
|     </ul> | ||||
|     {{ end }} | ||||
|   </footer> | ||||
|   <!-- Comments system area --> | ||||
| </article> | ||||
| {{ partial "footer.html" . }} | ||||
							
								
								
									
										34
									
								
								layouts/partials/footer.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								layouts/partials/footer.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| </main> | ||||
| <footer class="footer"> | ||||
|   <span>© {{ if eq now.Year 2017 }}2017{{ else }}2017-{{ now.Year }}{{ end }} {{ .Site.Title }} 🎉</span> | ||||
|   <span>·</span> | ||||
|   <span>Powered by <a href="https://gohugo.io/" target="_blank">Hugo❤️️</a></span> | ||||
|   <span>·</span> | ||||
|   <span>Designed by <a href="http://21beats.com/" target="_blank">️21beats⚡️</a></span> | ||||
| </footer> | ||||
| <script src="https://cdn.bootcss.com/instantclick/3.0.1/instantclick.min.js" data-no-instant></script> | ||||
| <script data-no-instant>InstantClick.init();</script> | ||||
| <script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js" data-no-instant></script> | ||||
| <script data-no-instant> | ||||
|   hljs.initHighlightingOnLoad(); | ||||
|   menuToggle(); | ||||
|   InstantClick.on('change', function() { | ||||
|     var blocks = document.querySelectorAll('pre code'); | ||||
|     for (var i = 0; i < blocks.length; i++) { | ||||
|       hljs.highlightBlock(blocks[i]); | ||||
|     } | ||||
|     menuToggle(); | ||||
|   }); | ||||
|   function menuToggle() { | ||||
|     var $toggle = document.querySelector('.menu-toggle'); | ||||
|     if (!$toggle.offsetParent) { | ||||
|       return; | ||||
|     } | ||||
|     var $body = document.querySelector('body'); | ||||
|     $toggle.addEventListener('click', function() { | ||||
|       $body.classList.toggle('noscroll'); | ||||
|     }, false); | ||||
|   } | ||||
| </script> | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										56
									
								
								layouts/partials/header.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								layouts/partials/header.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="{{ .Site.LanguageCode }}"> | ||||
| <head> | ||||
|   <meta charset="utf-8"> | ||||
|   <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
|   <meta name="renderer" content="webkit"> | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||
|   <!-- Title --> | ||||
|   <title> | ||||
|     {{- if not .IsHome }} | ||||
|     {{- if eq .Kind "page" }}{{ .Title }} | ||||
|     {{- else if eq .Data.Singular "tag" }}{{ .Data.Term }} | ||||
|     {{- else }}Posts | ||||
|     {{- end }} - {{ end }} | ||||
|     {{- .Site.Title -}} | ||||
|   </title> | ||||
|   <!-- Meta --> | ||||
|   {{- if eq .Kind "page" }} | ||||
|   <meta name="description" content="{{ .Summary }}"> | ||||
|   <meta name="author" content="{{ .Params.author | default .Site.Params.author }}"> | ||||
|   {{ else }} | ||||
|   <meta name="description" content="{{ .Site.Params.description }}"> | ||||
|   <meta name="author" content="{{ .Site.Params.author }}"> | ||||
|   {{ end -}} | ||||
|   <!-- Styles --> | ||||
|   <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i" rel="stylesheet"> | ||||
|   <link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet"> | ||||
|   <link href="/css/style.css" rel="stylesheet"> | ||||
|   <!-- Favicons --> | ||||
|   <link rel="apple-touch-icon" href="/img/apple-touch-icon.png"> | ||||
|   <link rel="icon" href="/img/favicon.png"> | ||||
|   <!-- Generator --> | ||||
|   <meta name="generator" content="Hugo {{ .Hugo.Version }}"> | ||||
|   <!-- RSS --> | ||||
|   <link rel="alternate" type="application/atom+xml" href="/index.xml" title="{{ .Site.Title }}"> | ||||
| </head> | ||||
| <body class="{{if eq .Kind `page` }}single{{else}}list{{end}}"> | ||||
| <header class="header"> | ||||
|   {{ if .IsHome }} | ||||
|   <h1 class="title"><a href="{{ `/` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></h1> | ||||
|   {{ else }} | ||||
|   <p class="title"><a href="{{ `/` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></p> | ||||
|   {{ end }} | ||||
|   <button class="menu-toggle" type="button"></button> | ||||
|   <nav class="menu"> | ||||
|     <ul> | ||||
|       {{ $currentPage := . }} | ||||
|       {{ range .Site.Menus.main }} | ||||
|       <li class="{{ if $currentPage.IsMenuCurrent `main` . }}active{{ end }}"> | ||||
|         <a href="{{ .URL }}">{{ .Name }}</a> | ||||
|       </li> | ||||
|       {{ end }} | ||||
|     </ul> | ||||
|   </nav> | ||||
| </header> | ||||
| <main class="main"> | ||||
		Reference in New Issue
	
	Block a user
	 Lee
					Lee