inital setup
This commit is contained in:
		
							
								
								
									
										1
									
								
								layouts/_default/_markup/render-image.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/_default/_markup/render-image.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <img loading="lazy" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} /> | ||||
							
								
								
									
										74
									
								
								layouts/_default/archives.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								layouts/_default/archives.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | ||||
| {{- define "main" }} | ||||
|  | ||||
| <header class="page-header"> | ||||
|   <h1> | ||||
|     {{ .Title }} | ||||
|     {{- if (.Param "ShowRssButtonInSectionTermList") }} | ||||
|     {{- $rss := (.OutputFormats.Get "rss") }} | ||||
|     {{- if (eq .Kind `page`) }} | ||||
|     {{- $rss = (.Parent.OutputFormats.Get "rss") }} | ||||
|     {{- end }} | ||||
|     {{- with $rss }} | ||||
|     <a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS"> | ||||
|       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" | ||||
|         stroke-linecap="round" stroke-linejoin="round" height="23"> | ||||
|         <path d="M4 11a9 9 0 0 1 9 9" /> | ||||
|         <path d="M4 4a16 16 0 0 1 16 16" /> | ||||
|         <circle cx="5" cy="19" r="1" /> | ||||
|       </svg> | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- end }} | ||||
|   </h1> | ||||
|   {{- if .Description }} | ||||
|   <div class="post-description"> | ||||
|     {{ .Description }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
| </header> | ||||
|  | ||||
| {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} | ||||
|  | ||||
| {{- if site.Params.ShowAllPagesInArchive }} | ||||
| {{- $pages = site.RegularPages }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- range $pages.GroupByPublishDate "2006" }} | ||||
| {{- if ne .Key "0001" }} | ||||
| <div class="archive-year"> | ||||
|   <h2 class="archive-year-header"> | ||||
|     {{- replace .Key "0001" "" }}<sup class="archive-count">  {{ len .Pages }}</sup> | ||||
|   </h2> | ||||
|   {{- range .Pages.GroupByDate "January" }} | ||||
|   <div class="archive-month"> | ||||
|     <h3 class="archive-month-header">{{- .Key }}<sup class="archive-count">  {{ len .Pages }}</sup></h3> | ||||
|     <div class="archive-posts"> | ||||
|       {{- range .Pages }} | ||||
|       {{- if eq .Kind "page" }} | ||||
|       <div class="archive-entry"> | ||||
|         <h3 class="archive-entry-title entry-hint-parent"> | ||||
|           {{- .Title | markdownify }} | ||||
|           {{- if .Draft }} | ||||
|           <span class="entry-hint" title="Draft"> | ||||
|             <svg xmlns="http://www.w3.org/2000/svg" height="15" viewBox="0 -960 960 960" fill="currentColor"> | ||||
|               <path | ||||
|                 d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z" /> | ||||
|             </svg> | ||||
|           </span> | ||||
|           {{- end }} | ||||
|         </h3> | ||||
|         <div class="archive-meta"> | ||||
|           {{- partial "post_meta.html" . -}} | ||||
|         </div> | ||||
|         <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> | ||||
|       </div> | ||||
|       {{- end }} | ||||
|       {{- end }} | ||||
|     </div> | ||||
|   </div> | ||||
|   {{- end }} | ||||
| </div> | ||||
| {{- end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- end }}{{/* end main */}} | ||||
							
								
								
									
										27
									
								
								layouts/_default/baseof.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								layouts/_default/baseof.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| {{- if lt hugo.Version "0.112.4" }} | ||||
| {{- errorf "=> hugo v0.112.4 or greater is required for hugo-PaperMod to build " }} | ||||
| {{- end -}} | ||||
|  | ||||
| <!DOCTYPE html> | ||||
| <html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}"> | ||||
|  | ||||
| <head> | ||||
|     {{- partial "head.html" . }} | ||||
| </head> | ||||
|  | ||||
| <body class=" | ||||
| {{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}} | ||||
| {{- print "list" -}} | ||||
| {{- end -}} | ||||
| {{- if eq site.Params.defaultTheme `dark` -}} | ||||
| {{- print " dark" }} | ||||
| {{- end -}} | ||||
| " id="top"> | ||||
|     {{- partialCached "header.html" . .Page -}} | ||||
|     <main class="main"> | ||||
|         {{- block "main" . }}{{ end }} | ||||
|     </main> | ||||
|     {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") (.Param "ShowCodeCopyButtons") -}} | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
							
								
								
									
										7
									
								
								layouts/_default/index.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								layouts/_default/index.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| {{- $.Scratch.Add "index" slice -}} | ||||
| {{- range site.RegularPages -}} | ||||
|     {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} | ||||
|     {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} | ||||
|     {{- end }} | ||||
| {{- end -}} | ||||
| {{- $.Scratch.Get "index" | jsonify -}} | ||||
							
								
								
									
										121
									
								
								layouts/_default/list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								layouts/_default/list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,121 @@ | ||||
| {{- define "main" }} | ||||
|  | ||||
| {{- if (and site.Params.profileMode.enabled .IsHome) }} | ||||
| {{- partial "index_profile.html" . }} | ||||
| {{- else }} {{/* if not profileMode */}} | ||||
|  | ||||
| {{- if not .IsHome | and .Title }} | ||||
| <header class="page-header"> | ||||
|   {{- partial "breadcrumbs.html" . }} | ||||
|   <h1> | ||||
|     {{ .Title }} | ||||
|     {{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }} | ||||
|     {{- with .OutputFormats.Get "rss" }} | ||||
|     <a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS"> | ||||
|       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" | ||||
|         stroke-linecap="round" stroke-linejoin="round" height="23"> | ||||
|         <path d="M4 11a9 9 0 0 1 9 9" /> | ||||
|         <path d="M4 4a16 16 0 0 1 16 16" /> | ||||
|         <circle cx="5" cy="19" r="1" /> | ||||
|       </svg> | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- end }} | ||||
|   </h1> | ||||
|   {{- if .Description }} | ||||
|   <div class="post-description"> | ||||
|     {{ .Description | markdownify }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
| </header> | ||||
| {{- end }} | ||||
|  | ||||
| {{- if .Content }} | ||||
| <div class="post-content"> | ||||
|   {{- if not (.Param "disableAnchoredHeadings") }} | ||||
|   {{- partial "anchored_headings.html" .Content -}} | ||||
|   {{- else }}{{ .Content }}{{ end }} | ||||
| </div> | ||||
| {{- end }} | ||||
|  | ||||
| {{- $pages := union .RegularPages .Sections }} | ||||
|  | ||||
| {{- if .IsHome }} | ||||
| {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} | ||||
| {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true"  }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- $paginator := .Paginate $pages }} | ||||
|  | ||||
| {{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} | ||||
| {{- partial "home_info.html" . }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- $term := .Data.Term }} | ||||
| {{- range $index, $page := $paginator.Pages }} | ||||
|  | ||||
| {{- $class := "post-entry" }} | ||||
|  | ||||
| {{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} | ||||
| {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} | ||||
| {{- $class = "first-entry" }} | ||||
| {{- else if $term }} | ||||
| {{- $class = "post-entry tag-entry" }} | ||||
| {{- end }} | ||||
|  | ||||
| <article class="{{ $class }}"> | ||||
|   {{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} | ||||
|   {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }} | ||||
|   <header class="entry-header"> | ||||
|     <h2 class="entry-hint-parent"> | ||||
|       {{- .Title }} | ||||
|       {{- if .Draft }} | ||||
|       <span class="entry-hint" title="Draft"> | ||||
|         <svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" fill="currentColor"> | ||||
|           <path | ||||
|             d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z" /> | ||||
|         </svg> | ||||
|       </span> | ||||
|       {{- end }} | ||||
|     </h2> | ||||
|   </header> | ||||
|   {{- if (ne (.Param "hideSummary") true) }} | ||||
|   <div class="entry-content"> | ||||
|     <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p> | ||||
|   </div> | ||||
|   {{- end }} | ||||
|   {{- if not (.Param "hideMeta") }} | ||||
|   <footer class="entry-footer"> | ||||
|     {{- partial "post_meta.html" . -}} | ||||
|   </footer> | ||||
|   {{- end }} | ||||
|   <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> | ||||
| </article> | ||||
| {{- end }} | ||||
|  | ||||
| {{- if gt $paginator.TotalPages 1 }} | ||||
| <footer class="page-footer"> | ||||
|   <nav class="pagination"> | ||||
|     {{- if $paginator.HasPrev }} | ||||
|     <a class="prev" href="{{ $paginator.Prev.URL | absURL }}"> | ||||
|       « {{ i18n "prev_page" }}  | ||||
|       {{- if (.Param "ShowPageNums") }} | ||||
|       {{- sub $paginator.PageNumber 1 }}/{{ $paginator.TotalPages }} | ||||
|       {{- end }} | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if $paginator.HasNext }} | ||||
|     <a class="next" href="{{ $paginator.Next.URL | absURL }}"> | ||||
|       {{- i18n "next_page" }}  | ||||
|       {{- if (.Param "ShowPageNums") }} | ||||
|       {{- add 1 $paginator.PageNumber }}/{{ $paginator.TotalPages }} | ||||
|       {{- end }} » | ||||
|     </a> | ||||
|     {{- end }} | ||||
|   </nav> | ||||
| </footer> | ||||
| {{- end }} | ||||
|  | ||||
| {{- end }}{{/* end profileMode */}} | ||||
|  | ||||
| {{- end }}{{- /* end main */ -}} | ||||
							
								
								
									
										83
									
								
								layouts/_default/rss.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								layouts/_default/rss.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,83 @@ | ||||
| {{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} | ||||
| {{- $authorEmail := "" }} | ||||
| {{- with site.Params.author }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- with .email }} | ||||
|       {{- $authorEmail = . }} | ||||
|     {{- end }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Author.email }} | ||||
|     {{- $authorEmail = . }} | ||||
|     {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} | ||||
| {{- $authorName := "" }} | ||||
| {{- with site.Params.author }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- with .name }} | ||||
|       {{- $authorName = . }} | ||||
|     {{- end }} | ||||
|   {{- else }} | ||||
|     {{- $authorName  = . }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Author.name }} | ||||
|     {{- $authorName = . }} | ||||
|     {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- $pctx := . }} | ||||
| {{- if .IsHome }}{{ $pctx = site }}{{ end }} | ||||
| {{- $pages := slice }} | ||||
| {{- if or $.IsHome $.IsSection }} | ||||
| {{- $pages = $pctx.RegularPages }} | ||||
| {{- else }} | ||||
| {{- $pages = $pctx.Pages }} | ||||
| {{- end }} | ||||
| {{- $limit := site.Config.Services.RSS.Limit }} | ||||
| {{- if ge $limit 1 }} | ||||
| {{- $pages = $pages | first $limit }} | ||||
| {{- end }} | ||||
| {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||||
| <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||||
|   <channel> | ||||
|     <title>{{ if eq .Title site.Title }}{{ site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ site.Title }}{{ end }}</title> | ||||
|     <link>{{ .Permalink }}</link> | ||||
|     <description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ site.Title }}</description> | ||||
|     {{- with site.Params.images }} | ||||
|     <image> | ||||
|       <title>{{ site.Title }}</title> | ||||
|       <url>{{ index . 0 | absURL }}</url> | ||||
|       <link>{{ index . 0 | absURL }}</link> | ||||
|     </image> | ||||
|     {{- end }} | ||||
|     <generator>Hugo -- gohugo.io</generator> | ||||
|     <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} | ||||
|     <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} | ||||
|     <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with site.Copyright }} | ||||
|     <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} | ||||
|     <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} | ||||
|     {{- with .OutputFormats.Get "RSS" }} | ||||
|     {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} | ||||
|     {{- end }} | ||||
|     {{- range $pages }} | ||||
|     {{- if and (ne .Layout `search`) (ne .Layout `archives`) }} | ||||
|     <item> | ||||
|       <title>{{ .Title }}</title> | ||||
|       <link>{{ .Permalink }}</link> | ||||
|       <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> | ||||
|       {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} | ||||
|       <guid>{{ .Permalink }}</guid> | ||||
|       <description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description> | ||||
|       {{- if site.Params.ShowFullTextinRSS }} | ||||
|       <content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded> | ||||
|       {{- end }} | ||||
|     </item> | ||||
|     {{- end }} | ||||
|     {{- end }} | ||||
|   </channel> | ||||
| </rss> | ||||
							
								
								
									
										29
									
								
								layouts/_default/search.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								layouts/_default/search.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| {{- define "main" }} | ||||
|  | ||||
| <header class="page-header"> | ||||
|     <h1>{{- (printf "%s " .Title ) | htmlUnescape -}} | ||||
|         <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" | ||||
|             stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||||
|             <circle cx="11" cy="11" r="8"></circle> | ||||
|             <line x1="21" y1="21" x2="16.65" y2="16.65"></line> | ||||
|         </svg> | ||||
|     </h1> | ||||
|     {{- if .Description }} | ||||
|     <div class="post-description"> | ||||
|         {{ .Description }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|     {{- if not (.Param "hideMeta") }} | ||||
|     <div class="post-meta"> | ||||
|         {{- partial "translation_list.html" . -}} | ||||
|     </div> | ||||
|     {{- end }} | ||||
| </header> | ||||
|  | ||||
| <div id="searchbox"> | ||||
|     <input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s ↵" .Title) }}" | ||||
|         aria-label="search" type="search" autocomplete="off" maxlength="64"> | ||||
|     <ul id="searchResults" aria-label="search results"></ul> | ||||
| </div> | ||||
|  | ||||
| {{- end }}{{/* end main */}} | ||||
							
								
								
									
										65
									
								
								layouts/_default/single.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								layouts/_default/single.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| {{- define "main" }} | ||||
|  | ||||
| <article class="post-single"> | ||||
|   <header class="post-header"> | ||||
|     {{ partial "breadcrumbs.html" . }} | ||||
|     <h1 class="post-title entry-hint-parent"> | ||||
|       {{ .Title }} | ||||
|       {{- if .Draft }} | ||||
|       <span class="entry-hint" title="Draft"> | ||||
|         <svg xmlns="http://www.w3.org/2000/svg" height="35" viewBox="0 -960 960 960" fill="currentColor"> | ||||
|           <path | ||||
|             d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z" /> | ||||
|         </svg> | ||||
|       </span> | ||||
|       {{- end }} | ||||
|     </h1> | ||||
|     {{- if .Description }} | ||||
|     <div class="post-description"> | ||||
|       {{ .Description }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|     {{- if not (.Param "hideMeta") }} | ||||
|     <div class="post-meta"> | ||||
|       {{- partial "post_meta.html" . -}} | ||||
|       {{- partial "translation_list.html" . -}} | ||||
|       {{- partial "edit_post.html" . -}} | ||||
|       {{- partial "post_canonical.html" . -}} | ||||
|     </div> | ||||
|     {{- end }} | ||||
|   </header> | ||||
|   {{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }} | ||||
|   {{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }} | ||||
|   {{- if (.Param "ShowToc") }} | ||||
|   {{- partial "toc.html" . }} | ||||
|   {{- end }} | ||||
|  | ||||
|   {{- if .Content }} | ||||
|   <div class="post-content"> | ||||
|     {{- if not (.Param "disableAnchoredHeadings") }} | ||||
|     {{- partial "anchored_headings.html" .Content -}} | ||||
|     {{- else }}{{ .Content }}{{ end }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
|  | ||||
|   <footer class="post-footer"> | ||||
|     {{- $tags := .Language.Params.Taxonomies.tag | default "tags" }} | ||||
|     <ul class="post-tags"> | ||||
|       {{- range ($.GetTerms $tags) }} | ||||
|       <li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li> | ||||
|       {{- end }} | ||||
|     </ul> | ||||
|     {{- if (.Param "ShowPostNavLinks") }} | ||||
|     {{- partial "post_nav_links.html" . }} | ||||
|     {{- end }} | ||||
|     {{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }} | ||||
|     {{- partial "share_icons.html" . -}} | ||||
|     {{- end }} | ||||
|   </footer> | ||||
|  | ||||
|   {{- if (.Param "comments") }} | ||||
|   {{- partial "comments.html" . }} | ||||
|   {{- end }} | ||||
| </article> | ||||
|  | ||||
| {{- end }}{{/* end main */}} | ||||
							
								
								
									
										27
									
								
								layouts/_default/terms.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								layouts/_default/terms.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| {{- define "main" }} | ||||
|  | ||||
| {{- if .Title }} | ||||
| <header class="page-header"> | ||||
|     <h1>{{ .Title }}</h1> | ||||
|     {{- if .Description }} | ||||
|     <div class="post-description"> | ||||
|         {{ .Description }} | ||||
|     </div> | ||||
|     {{- end }} | ||||
| </header> | ||||
| {{- end }} | ||||
|  | ||||
| <ul class="terms-tags"> | ||||
|     {{- $type := .Type }} | ||||
|     {{- range $key, $value := .Data.Terms.Alphabetical }} | ||||
|     {{- $name := .Name }} | ||||
|     {{- $count := .Count }} | ||||
|     {{- with site.GetPage (printf "/%s/%s" $type $name) }} | ||||
|     <li> | ||||
|         <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a> | ||||
|     </li> | ||||
|     {{- end }} | ||||
|     {{- end }} | ||||
| </ul> | ||||
|  | ||||
| {{- end }}{{/* end main */ -}} | ||||
		Reference in New Issue
	
	Block a user