mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-26 07:43:29 -05:00 
			
		
		
		
	Compare commits
	
		
			101 Commits
		
	
	
		
			2731d9795f
			...
			reduce-pri
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 98d03cd803 | |||
| c980ced2fb | |||
| 9ca15a198f | |||
| 5c87c2b069 | |||
| 6c42ae9518 | |||
| f33492ef8e | |||
| ffcae79156 | |||
| a59a87374b | |||
| 88adfbdf89 | |||
| 0f717e81c0 | |||
| ede5958a46 | |||
| 0b3b160e87 | |||
| 12c6efc0fe | |||
| 0e930f7ae1 | |||
| 289f55dc19 | |||
| 0ddf0bdf42 | |||
| 03d826f1c4 | |||
| f94307cdbf | |||
| fde24f7438 | |||
| c0426f191a | |||
| e8a34ae4a4 | |||
| 18731498e8 | |||
| ad5c40b02b | |||
| e6b5997dff | |||
| 960d1d24be | |||
| 17047babc0 | |||
| 7bc8a4cb57 | |||
| d34b2a56d7 | |||
| 50a207b8ee | |||
| 6f140f096b | |||
| 316c62ebe8 | |||
| 1caa7acdc9 | |||
| f2f9e78559 | |||
| dd65d55389 | |||
| c7acf8ce38 | |||
| d7647a0b6f | |||
| ebaa1de00b | |||
| 0744af717d | |||
| 23f86d5982 | |||
| b854ae48e6 | |||
| 36a19a48b7 | |||
| 1f8a82228e | |||
| 60ed1c0264 | |||
| 3fae019148 | |||
| 8ef1e3840a | |||
| 629b3758b9 | |||
| 9412906b4f | |||
| f8cfad647f | |||
| b200623dca | |||
| 80f5994d96 | |||
| 342710a755 | |||
| 8eb642dbc8 | |||
| a4be8b395b | |||
| 47d6d02186 | |||
| a26ea62b60 | |||
| 7cff045cb3 | |||
| 9f080377e7 | |||
| fb40c8a4c3 | |||
| 0c248a4ca5 | |||
| 56d8a07893 | |||
| 8aab2ca693 | |||
| e46288dc45 | |||
| 637ffc12f5 | |||
| 2a40664bb6 | |||
| e34d2109ec | |||
| 54f89dad51 | |||
| 04b5017279 | |||
| a65a435b1d | |||
| 73dc916d5a | |||
| e8be3ae45b | |||
| 73ef9cc7a6 | |||
| 4adb754ae3 | |||
| 81709bb47e | |||
| 9c3a076e96 | |||
| 833edacc1f | |||
| 121a67a1fc | |||
| 8e3fb4038a | |||
| e9266cdead | |||
| 3a4cb538f7 | |||
| de84bc5ddf | |||
| 466c91a980 | |||
| 8d81f5e37c | |||
| 7dd01894da | |||
| 9665133ba4 | |||
| b272ed6181 | |||
| 17918a5617 | |||
| 493ee2da96 | |||
| 3d83e9fbdf | |||
| 684769df5a | |||
| 9bee463a3c | |||
| 805dc65ccb | |||
| a9d1c25ee4 | |||
| fe08bdc93c | |||
| 026d5ab2c3 | |||
| 311d846cb8 | |||
| 0888356292 | |||
| bcf0b68df9 | |||
| 034ef462a2 | |||
| 56610009e9 | |||
| 76b0383c2c | |||
| 0877a9d400 | 
| @@ -1,2 +1,4 @@ | ||||
| # bobatheme | ||||
| Simple Hugo theme | ||||
|  | ||||
| The (boba) best Hugo theme. Contains everything I need for bbaovanc.com and | ||||
| boba.best. | ||||
|   | ||||
| @@ -8,7 +8,10 @@ comments: true | ||||
| draft: true | ||||
|  | ||||
| authors: | ||||
|   - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||
|   - {{ with .Site.Params.author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||
|  | ||||
| categories: | ||||
|   - archetype-stuff | ||||
|  | ||||
| tags: | ||||
|   - awesome | ||||
|   | ||||
							
								
								
									
										15
									
								
								archetypes/categories/_index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								archetypes/categories/_index.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| --- | ||||
|  | ||||
| title: {{ replace .Name "-" " " | title }} | ||||
|  | ||||
| --- | ||||
|  | ||||
| A short summary of what the category is about. | ||||
|  | ||||
| <!--more--> | ||||
|  | ||||
| Optionally provide more information about the category here. This part will only | ||||
| show on the category page, not on the category list page. | ||||
|  | ||||
| If you delete this section, DO NOT delete the summary separator (`<!--more-->`) | ||||
| or else the summary won't be shown. | ||||
| @@ -6,7 +6,7 @@ toc: true | ||||
| comments: false | ||||
|  | ||||
| authors: | ||||
|   - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||
|   - {{ with .Site.params.author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||
|  | ||||
| --- | ||||
|  | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,14 +1,21 @@ | ||||
| /* tango style */ | ||||
|  | ||||
| @media print, (prefers-color-scheme: light) { | ||||
|   .chroma { | ||||
|     color: black; | ||||
|   } | ||||
|  | ||||
| /* Background */ .bg { background-color: #f8f8f8 } | ||||
| /* PreWrapper */ .chroma { background-color: #f8f8f8; } | ||||
| /* Other */ .chroma .x { color: #000000 } | ||||
| /* Error */ .chroma .err { color: #a40000 } | ||||
| /* CodeLine */ .chroma .cl {  } | ||||
| /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } | ||||
| /* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } | ||||
| /* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||||
| /* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | ||||
| /* LineHighlight */ .chroma .hl { background-color: #ffffcc } | ||||
| /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||||
| /* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||||
| /* Line */ .chroma .line { display: flex; } | ||||
| /* Keyword */ .chroma .k { color: #204a87; font-weight: bold } | ||||
| /* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold } | ||||
| /* KeywordDeclaration */ .chroma .kd { color: #204a87; font-weight: bold } | ||||
| @@ -83,6 +90,7 @@ | ||||
| /* GenericTraceback */ .chroma .gt { color: #a40000; font-weight: bold } | ||||
| /* GenericUnderline */ .chroma .gl { color: #000000; text-decoration: underline } | ||||
| /* TextWhitespace */ .chroma .w { color: #f8f8f8; text-decoration: underline } | ||||
|  | ||||
| } | ||||
|  | ||||
| @media (prefers-color-scheme: light) { | ||||
|   | ||||
| @@ -1,11 +1,16 @@ | ||||
| /* Background */ .chroma { color: #d0d0d0; background-color: #202020 } | ||||
| /* native style */ | ||||
|  | ||||
| /* Background */ .bg { color: #d0d0d0; background-color: #202020 } | ||||
| /* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; } | ||||
| /* Other */ .chroma .x {  } | ||||
| /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 } | ||||
| /* CodeLine */ .chroma .cl {  } | ||||
| /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } | ||||
| /* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #363636 } | ||||
| /* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | ||||
| /* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | ||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | ||||
| /* LineHighlight */ .chroma .hl { background-color: #ffffcc } | ||||
| /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | ||||
| /* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | ||||
| /* Line */ .chroma .line { display: flex; } | ||||
| /* Keyword */ .chroma .k { color: #6ab825; font-weight: bold } | ||||
| /* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold } | ||||
| /* KeywordDeclaration */ .chroma .kd { color: #6ab825; font-weight: bold } | ||||
|   | ||||
| @@ -1,8 +0,0 @@ | ||||
| const backToTop = document.getElementById("back-to-top"); | ||||
| window.onscroll = function() { | ||||
|     if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { | ||||
|         backToTop.style.display = "block"; | ||||
|     } else { | ||||
|         backToTop.style.display = "none"; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										25
									
								
								assets/js/bobatheme.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								assets/js/bobatheme.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| // code block copy to clipboard | ||||
| window.onload = () => { | ||||
|     document.querySelectorAll(".code-block").forEach(codeBlock => { | ||||
|         const button = codeBlock.querySelector(".code-header > .code-copy-button"); | ||||
|  | ||||
|         // lang will not be unset because we default it to text | ||||
|         // clone it so it doesn't change the actual DOM element | ||||
|         const codeElem = codeBlock.querySelector("code[data-lang]").cloneNode(true); | ||||
|         // bashsession: remove command output lines | ||||
|         codeElem.querySelectorAll(".go").forEach(e => e.parentNode.removeChild(e)); | ||||
|         // bashsession: remove prompt symbol | ||||
|         codeElem.querySelectorAll(".gp").forEach(e => e.parentNode.removeChild(e)); | ||||
|         const rawCode = codeElem.innerText; | ||||
|  | ||||
|         const originalCopyText = button.innerHTML; | ||||
|         button.onclick = event => { | ||||
|             navigator.clipboard.writeText(rawCode); | ||||
|             // TODO: maybe we could add a fancier indicator, like a flash or something | ||||
|             event.target.innerHTML = "Copied!"; | ||||
|             setTimeout(() => { | ||||
|                 event.target.innerHTML = originalCopyText; | ||||
|             }, 3000); | ||||
|         } | ||||
|     }); | ||||
| } | ||||
| @@ -1,12 +0,0 @@ | ||||
| 1: "enero" | ||||
| 2: "febrero" | ||||
| 3: "marzo" | ||||
| 4: "abril" | ||||
| 5: "mayo" | ||||
| 6: "julio" | ||||
| 7: "junio" | ||||
| 8: "agosto" | ||||
| 9: "septiembre" | ||||
| 10: "octubre" | ||||
| 11: "noviembre" | ||||
| 12: "diciembre" | ||||
| @@ -10,13 +10,13 @@ enableGitInfo: true | ||||
| taxonomies: | ||||
|   _merge: deep | ||||
| 
 | ||||
| author: | ||||
|   name: bbaovanc | ||||
| 
 | ||||
| markup: # this just keeps the bobatheme markup styling | ||||
|   _merge: deep | ||||
| 
 | ||||
| params: | ||||
|   author: | ||||
|     name: bbaovanc | ||||
| 
 | ||||
|   # these are for the OpenGraph/Twitter embeds in Hugo | ||||
|   description: Example website for bobatheme | ||||
| 
 | ||||
| @@ -30,9 +30,7 @@ params: | ||||
|   # used for "View source" (unset by default) | ||||
|   # gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master | ||||
|   # gitFileIcon: github-circle | ||||
| 
 | ||||
|   # display a "Latest Posts" section on the homepage below its content | ||||
|   homepageLatestPosts: true | ||||
|   # gitHistoryURL: https://github.com/BBaoVanC/bobatheme/commits/master | ||||
| 
 | ||||
|   # social media share icons | ||||
|   # shareButtons: | ||||
| @@ -41,6 +39,10 @@ params: | ||||
|   #   linkedin: true | ||||
|   #   reddit: true | ||||
|   #   telegram: true | ||||
|   #   print: true | ||||
| 
 | ||||
|   # show "Latest Posts" section at bottom of content pages | ||||
|   # latestPostsOnContent: true | ||||
| 
 | ||||
|   # footer: >- | ||||
|   #   Some example text for the footer. | ||||
| @@ -56,10 +58,3 @@ languages: | ||||
|     languageName: English | ||||
|     title: Example Website | ||||
|     weight: 1 | ||||
| 
 | ||||
|   es: | ||||
|     languageName: Español | ||||
|     title: Sitio web ejemplo | ||||
|     weight: 2 | ||||
|     params: | ||||
|       description: Sitio web ejemplo para bobatheme | ||||
| @@ -7,6 +7,7 @@ params: | ||||
|   readingtime: true | ||||
| 
 | ||||
| taxonomies: | ||||
|   category: categories | ||||
|   tag: tags | ||||
|   author: authors | ||||
|   series: series | ||||
							
								
								
									
										56
									
								
								i18n/en.yaml
									
									
									
									
									
								
							
							
						
						
									
										56
									
								
								i18n/en.yaml
									
									
									
									
									
								
							| @@ -11,11 +11,14 @@ browser_no_video_support: | ||||
| latest_posts: | ||||
|   other: "Latest Posts" | ||||
|  | ||||
| see_also: | ||||
|   other: "SEE ALSO:" | ||||
|  | ||||
| copy_to_clipboard: | ||||
|   other: "Copy" | ||||
|  | ||||
|  | ||||
| # Meta items | ||||
| long_date: | ||||
|   other: "{{ .Date.Format `January 2, 2006` }}" | ||||
|  | ||||
| wordcount: | ||||
|   one: "{{ . }} word" | ||||
|   other: "{{ . }} words" | ||||
| @@ -24,6 +27,9 @@ readingtime: | ||||
|   one: "{{ . }} min" | ||||
|   other: "{{ . }} mins" | ||||
|  | ||||
| edit_history: | ||||
|   other: "Edit history" | ||||
|  | ||||
|  | ||||
| # Post count | ||||
| no_posts: | ||||
| @@ -39,7 +45,7 @@ read_more: | ||||
|   other: "Read more" | ||||
|  | ||||
| related_posts: | ||||
|   other: "Related posts" | ||||
|   other: "Related Posts" | ||||
|  | ||||
| older_post: | ||||
|   other: "Older" | ||||
| @@ -49,8 +55,8 @@ newer_post: | ||||
|  | ||||
|  | ||||
| # ARIA labels | ||||
| aria_header_link: | ||||
|   other: "header link" | ||||
| aria_heading_link: | ||||
|   other: "heading link" | ||||
|  | ||||
| aria_back_to_top_button: | ||||
|   other: "back to top button" | ||||
| @@ -58,11 +64,11 @@ aria_back_to_top_button: | ||||
| aria_rss_link: | ||||
|   other: "RSS feed link" | ||||
|  | ||||
| aria_post_meta_view_source: | ||||
|   other: "link to page source" | ||||
| aria_post_meta_edit_history: | ||||
|   other: "link to page edit history" | ||||
|  | ||||
| aria_post_meta_translations: | ||||
|   other: "translations" | ||||
| aria_post_meta_categories: | ||||
|   other: "categories" | ||||
|  | ||||
| aria_post_meta_tags: | ||||
|   other: "tags" | ||||
| @@ -85,6 +91,9 @@ aria_post_metadata: | ||||
| aria_author_metadata: | ||||
|   other: "author metadata" | ||||
|  | ||||
| aria_taxonomy_metadata: | ||||
|   other: "taxonomy metadata" | ||||
|  | ||||
| aria_post_meta_date: | ||||
|   other: "date" | ||||
|  | ||||
| @@ -97,17 +106,32 @@ aria_author_post_count: | ||||
| aria_author_word_count: | ||||
|   other: "word count" | ||||
|  | ||||
| aria_taxonomy_post_count: | ||||
|   other: "post count" | ||||
|  | ||||
| aria_series_metadata: | ||||
|   other: "series metadata" | ||||
|  | ||||
| aria_navbar: | ||||
|   other: "navigation bar" | ||||
|  | ||||
| aria_langpicker: | ||||
|   other: "language picker" | ||||
|  | ||||
| aria_langpicker_list: | ||||
|   other: "language list" | ||||
|  | ||||
| aria_table_of_contents: | ||||
|   other: "table of contents" | ||||
|  | ||||
| aria_share_twitter: | ||||
|   other: "share to twitter button" | ||||
|  | ||||
| aria_share_facebook: | ||||
|   other: "share to facebook button" | ||||
|  | ||||
| aria_share_linkedin: | ||||
|   other: "share to linkedin button" | ||||
|  | ||||
| aria_share_reddit: | ||||
|   other: "share to reddit button" | ||||
|  | ||||
| aria_share_telegram: | ||||
|   other: "share to telegram button" | ||||
|  | ||||
| aria_share_print: | ||||
|   other: "print article button" | ||||
|   | ||||
							
								
								
									
										110
									
								
								i18n/es.yaml
									
									
									
									
									
								
							
							
						
						
									
										110
									
								
								i18n/es.yaml
									
									
									
									
									
								
							| @@ -1,110 +0,0 @@ | ||||
| # Misc | ||||
| credit_comment: | ||||
|   other: "<!-- bobatheme está disponible en GitHub basado en la licensia MIT: https://github.com/BBaoVanC/bobatheme. -->" | ||||
|  | ||||
| table_of_contents: | ||||
|   other: "Índice" | ||||
|  | ||||
| browser_no_video_support: | ||||
|   other: "Tu navegador de internet no admite video." | ||||
|  | ||||
|  | ||||
| # Meta items | ||||
| long_date: | ||||
|   other: "{{ .Date.Day }} de {{ index .Data.meses (printf `%d` .Date.Month) }} de {{ .Date.Year }}" | ||||
|  | ||||
| wordcount: | ||||
|   one: "{{ . }} palabra" | ||||
|   other: "{{ . }} palabras" | ||||
|  | ||||
| readingtime: | ||||
|   one: "{{ . }} min" | ||||
|   other: "{{ . }} mins" | ||||
|  | ||||
|  | ||||
| # Post count | ||||
| no_posts: | ||||
|   other: "¡No hay contenido para mostrar!" | ||||
|  | ||||
| # post_count: | ||||
| #   one: "{{ . }} post" | ||||
| #   other: "{{ . }} posts" | ||||
|  | ||||
|  | ||||
| # Navigation | ||||
| read_more: | ||||
|   other: "Leer más" | ||||
|  | ||||
| related_posts: | ||||
|   other: "Publicaciones similares" | ||||
|  | ||||
| older_post: | ||||
|   other: "Más antiguo" | ||||
|  | ||||
| newer_post: | ||||
|   other: "Más nuevo" | ||||
|  | ||||
|  | ||||
| # ARIA labels | ||||
| # aria_header_link: | ||||
| #   other: "header link" | ||||
|  | ||||
| # aria_back_to_top_button: | ||||
| #   other: "back to top button" | ||||
|  | ||||
| # aria_rss_link: | ||||
| #   other: "RSS feed link" | ||||
|  | ||||
| # aria_post_meta_view_source: | ||||
| #   other: "link to page source" | ||||
|  | ||||
| # aria_post_meta_translations: | ||||
| #   other: "translations" | ||||
|  | ||||
| # aria_post_meta_tags: | ||||
| #   other: "tags" | ||||
|  | ||||
| # aria_post_meta_reading_time: | ||||
| #   other: "reading time" | ||||
|  | ||||
| # aria_post_meta_authors: | ||||
| #   other: "authors" | ||||
|  | ||||
| # aria_post_meta_series: | ||||
| #   other: "series" | ||||
|  | ||||
| # aria_breadcrumbnav: | ||||
| #   other: "breadcrumb navigation bar" | ||||
|  | ||||
| # aria_post_metadata: | ||||
| #   other: "post metadata" | ||||
|  | ||||
| # aria_author_metadata: | ||||
| #   other: "author metadata" | ||||
|  | ||||
| # aria_post_meta_date: | ||||
| #   other: "date" | ||||
|  | ||||
| # aria_post_meta_modified_date: | ||||
| #   other: "last modified date" | ||||
|  | ||||
| # aria_author_post_count: | ||||
| #   other: "post count" | ||||
|  | ||||
| # aria_author_word_count: | ||||
| #   other: "word count" | ||||
|  | ||||
| # aria_series_metadata: | ||||
| #   other: "series metadata" | ||||
|  | ||||
| # aria_navbar: | ||||
| #   other: "navigation bar" | ||||
|  | ||||
| # aria_langpicker: | ||||
| #   other: "language picker" | ||||
|  | ||||
| # aria_langpicker_list: | ||||
| #   other: "language list" | ||||
|  | ||||
| # aria_table_of_contents: | ||||
| #   other: "table of contents" | ||||
							
								
								
									
										15
									
								
								layouts/_default/_markup/render-codeblock.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								layouts/_default/_markup/render-codeblock.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| {{ $type := "text" }} | ||||
| {{ with .Type }} | ||||
|     {{ $type = . }} | ||||
| {{ end }} | ||||
| <div class="code-block"> | ||||
|     <div class="code-header"> | ||||
|         <pre class="code-type">{{ $type }}</pre> | ||||
|         <a href="javascript:void(0)" class="code-copy-button"> | ||||
|             {{ i18n "copy_to_clipboard" }} | ||||
|         </a> | ||||
|     </div> | ||||
|  | ||||
|     {{/* a div.highlight is already created by highlight function */}} | ||||
|     {{ highlight .Inner $type }} | ||||
| </div> | ||||
| @@ -1,7 +1,7 @@ | ||||
| <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header"> | ||||
| <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-heading"> | ||||
|     {{ .Text | safeHTML }} | ||||
|     <a href="#{{ .Anchor | safeURL }}"> | ||||
|         <span class="section-header-link" aria-label="{{ i18n "aria_header_link" }}"> | ||||
|     <a class="heading-link" href="#{{ .Anchor | safeURL }}"> | ||||
|         <span aria-label="{{ i18n "aria_heading_link" }}"> | ||||
|             {{ partial "icon.html" "link" }} | ||||
|         </span> | ||||
|     </a> | ||||
|   | ||||
| @@ -1,50 +1,40 @@ | ||||
| {{ partial "credit.html" }} | ||||
| {{ i18n "credit_comment" | safeHTML }} | ||||
| <!DOCTYPE html> | ||||
| <html lang="{{ .Language.Lang }}"> | ||||
|     {{ partial "head.html" . }} | ||||
|  | ||||
|     <body> | ||||
|         <a id="top" name="top" aria-hidden="true"></a> | ||||
|         <a id="skip-to-main" href="#main-content">Skip to main content</a> | ||||
|  | ||||
|         <div class="top"> | ||||
|             {{ partial "top.html" . }} | ||||
|         {{ partial "top.html" . }} | ||||
|  | ||||
|         <div class="main-container"> | ||||
|             {{ if not .IsHome }} | ||||
|                 {{ partial "breadcrumb.html" . }} | ||||
|             {{ end }} | ||||
|  | ||||
|             <main id="main-content"> | ||||
|                 {{ block "main" . }} | ||||
|                     THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it) | ||||
|                 {{ end }} | ||||
|             </main> | ||||
|         </div> | ||||
|  | ||||
|         {{ if not .IsHome }} | ||||
|             {{ partial "breadcrumb.html" . }} | ||||
|         {{ block "post-body" . }} | ||||
|             {{/* currently this is only used for related posts */}} | ||||
|         {{ end }} | ||||
|  | ||||
|         <main> | ||||
|             {{ block "main" . }} | ||||
|                 THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it) | ||||
|             {{ end }} | ||||
|         </main> | ||||
|  | ||||
|         {{ if or .Site.Copyright .Site.Params.footer }} | ||||
|             <hr> | ||||
|             <footer> | ||||
|                 <small> | ||||
|                     {{ with .Site.Copyright }} | ||||
|                         <p>{{ . | safeHTML }}</p> | ||||
|                     {{ end }} | ||||
|                 {{ with .Site.Copyright }} | ||||
|                     <p>{{ . | safeHTML }}</p> | ||||
|                 {{ end }} | ||||
|  | ||||
|                     {{ with .Site.Params.footer }} | ||||
|                         {{ . | $.RenderString (dict "display" "block") }} | ||||
|                     {{ end }} | ||||
|                 </small> | ||||
|                 {{ with .Site.Params.footer }} | ||||
|                     {{ . | $.RenderString (dict "display" "block") }} | ||||
|                 {{ end }} | ||||
|             </footer> | ||||
|         {{ end }} | ||||
|  | ||||
|         <a id="back-to-top" href="#top" aria-label="{{ i18n "aria_back_to_top_button" }}"> | ||||
|             {{ partial "icon.html" "chevron-up" }} | ||||
|         </a> | ||||
|         <noscript> | ||||
|             <style> | ||||
|                 #back-to-top { | ||||
|                     display: block; | ||||
|                 } | ||||
|             </style> | ||||
|         </noscript> | ||||
|     </body> | ||||
|  | ||||
| </html> | ||||
|   | ||||
| @@ -5,28 +5,20 @@ | ||||
|         {{ partial "rss-link.html" . }} | ||||
|     </h1> | ||||
|  | ||||
|     <div class="list-page-content"> | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="list-page-container"> | ||||
|         {{ with .Sections }} | ||||
|             <div class="sections"> | ||||
|                 {{ range . }} | ||||
|                     {{ .Render "summary/section" }} | ||||
|                     {{ .Render "summary" }} | ||||
|                 {{ end }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|  | ||||
|         <div class="page-list"> | ||||
|             {{ with .Paginator.Pages }} | ||||
|                 <ul> | ||||
|                     {{ range . }} | ||||
|                         <li>{{ .Render "summary/post" }}</li> | ||||
|                     {{ end }} | ||||
|                 </ul> | ||||
|             {{ else }} | ||||
|                 <div> | ||||
|                     {{ i18n "no_posts" }} | ||||
|                 </div> | ||||
|             {{ end }} | ||||
|         </div> | ||||
|         {{ partial "page-list.html" .Paginator.Pages }} | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "pagination.html" . }} | ||||
|   | ||||
| @@ -1,12 +1,12 @@ | ||||
| {{ define "main" }} | ||||
|     <div class="post-title"> | ||||
|     <div class="page-title"> | ||||
|         <h1> | ||||
|             {{ .Title | markdownify }} | ||||
|             {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
|         </h1> | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "post-metadata/full.html" . }} | ||||
|     {{ partial "page-metadata/post-full.html" . }} | ||||
|     {{ partial "series-box.html" . }} | ||||
|  | ||||
|     {{ if .Params.Toc }} | ||||
| @@ -24,13 +24,13 @@ | ||||
|  | ||||
|     {{ with .Resources.GetMatch "feature" }} | ||||
|         <div class="post-media"> | ||||
|             {{ partial "figure.html" (dict "src" . "border" true) }} | ||||
|             {{ partial "figure.html" (dict "src" .) }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="post-content"> | ||||
|     <article class="post-content"> | ||||
|         {{ .Content }} | ||||
|     </div> | ||||
|     </article> | ||||
|  | ||||
|     {{ partial "series-box.html" . }} | ||||
|  | ||||
| @@ -68,23 +68,21 @@ | ||||
|         {{ partial "share.html" . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ $related := .Site.RegularPages.Related . | first 10 }} | ||||
|     {{ with $related }} | ||||
|         <div class="related"> | ||||
|             <hr> | ||||
|             <h2>{{ i18n "related_posts" }}</h2> | ||||
|             <div class="related-posts"> | ||||
|                 {{ range . }} | ||||
|                     {{ .Render "summary/post" }} | ||||
|                 {{ end }} | ||||
|             </div> | ||||
|             <hr> | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ if .Params.comments }} | ||||
|         <div class="comments"> | ||||
|             {{ partial "comments.html" . }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
| {{ end }} | ||||
|  | ||||
|  | ||||
| {{ define "post-body" }} | ||||
|     {{ $related := .Site.RegularPages.Related . | first 10 }} | ||||
|     {{ with $related }} | ||||
|         <div class="related-posts"> | ||||
|             <hr> | ||||
|             <h1>{{ i18n "related_posts" }}</h1> | ||||
|             {{ partial "page-list.html" . }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
| {{ end }} | ||||
|   | ||||
							
								
								
									
										21
									
								
								layouts/_default/summary.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								layouts/_default/summary.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| <h2 class="page-title"> | ||||
|     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
| </h2> | ||||
|  | ||||
| {{ partial "page-metadata/post-short.html" . }} | ||||
|  | ||||
| {{ with .Resources.GetMatch "feature" }} | ||||
|     <div class="post-media"> | ||||
|         {{ partial "figure.html" (dict "src" .) }} | ||||
|     </div> | ||||
| {{ end }} | ||||
|  | ||||
| <div class="page-description"> | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
| </div> | ||||
|  | ||||
| <div class="readmore"> | ||||
|     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||
| </div> | ||||
| @@ -1,16 +0,0 @@ | ||||
| <div class="author"> | ||||
|     <h2 class="author-name"> | ||||
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|         {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
|     </h2> | ||||
|  | ||||
|     {{ partial "post-metadata/author.html" . }} | ||||
|  | ||||
|     <div class="author-description"> | ||||
|         {{ partial "description-or-summary.html" . }} | ||||
|     </div> | ||||
|  | ||||
|     <div class="readmore"> | ||||
|         <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||
|     </div> | ||||
| </div> | ||||
| @@ -1,23 +0,0 @@ | ||||
| <div class="post"> | ||||
|     <h2 class="post-title"> | ||||
|         {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|         {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
|     </h2> | ||||
|  | ||||
|     {{ partial "post-metadata/short.html" . }} | ||||
|  | ||||
|     {{ with .Resources.GetMatch "feature" }} | ||||
|         <div class="post-media"> | ||||
|             {{ partial "figure.html" (dict "src" . "border" true) }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="post-description"> | ||||
|         {{ partial "description-or-summary.html" . }} | ||||
|     </div> | ||||
|  | ||||
|     <div class="readmore"> | ||||
|         <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||
|     </div> | ||||
| </div> | ||||
| @@ -1,26 +0,0 @@ | ||||
| <div class="post"> | ||||
|     <h2 class="post-title"> | ||||
|         {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|         {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
|     </h2> | ||||
|  | ||||
|     {{ partial "post-metadata/series.html" . }} | ||||
|  | ||||
|     <div class="post-description"> | ||||
|         {{ partial "description-or-summary.html" . }} | ||||
|     </div> | ||||
|  | ||||
|     <div class="series-pages"> | ||||
|         <ul> | ||||
|             {{ $i := 0 }} | ||||
|             {{ $total := len .Data.Pages }} | ||||
|             {{ range .Data.Pages.Reverse }} | ||||
|                 {{ $i = add 1 $i }} | ||||
|                 {{ .Scratch.Set "series_position" $i }} | ||||
|                 {{ .Scratch.Set "series_total" $total }} | ||||
|                 <li>{{ .Render "summary/series_post" }}</li> | ||||
|             {{ end }} | ||||
|         </ul> | ||||
|     </div> | ||||
| </div> | ||||
| @@ -1,29 +0,0 @@ | ||||
| <div class="post"> | ||||
|     <div class="post-series-position"> | ||||
|         {{ if .Scratch.Get "series_position" }} | ||||
|             ({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }}) | ||||
|         {{ end }} | ||||
|     </div> | ||||
|  | ||||
|     <h2 class="post-title"> | ||||
|         {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||
|         <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|         {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
|     </h2> | ||||
|  | ||||
|     {{ partial "post-metadata/short.html" . }} | ||||
|  | ||||
|     {{ with .Resources.GetMatch "feature" }} | ||||
|         <div class="post-media"> | ||||
|             {{ partial "figure.html" (dict "src" . "border" true) }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="post-description"> | ||||
|         {{ partial "description-or-summary.html" . }} | ||||
|     </div> | ||||
|  | ||||
|     <div class="readmore"> | ||||
|         <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||
|     </div> | ||||
| </div> | ||||
| @@ -4,13 +4,17 @@ | ||||
|         {{ .Title | markdownify }} | ||||
|     </h1> | ||||
|  | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="page-list"> | ||||
|         {{ with .Paginator.Pages }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li>{{ .Render "summary/author" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|             {{ range . }} | ||||
|                 <article class="page"> | ||||
|                     {{ .Render "summary" }} | ||||
|                 </article> | ||||
|             {{ end }} | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|   | ||||
							
								
								
									
										14
									
								
								layouts/authors/summary.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								layouts/authors/summary.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <h2 class="page-title"> | ||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
| </h2> | ||||
|  | ||||
| {{ partial "page-metadata/author.html" . }} | ||||
|  | ||||
| <div class="page-description"> | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
| </div> | ||||
|  | ||||
| <div class="readmore"> | ||||
|     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||
| </div> | ||||
| @@ -1,27 +1,19 @@ | ||||
| {{ define "main" }} | ||||
|     <h1> | ||||
|         {{ partial "icon.html" "user-circle" }} | ||||
|         {{ .Title | markdownify }} | ||||
|         {{ partial "rss-link.html" . }} | ||||
|     </h1> | ||||
|  | ||||
|     {{ partial "post-metadata/author.html" . }} | ||||
|  | ||||
|     {{ .Content }} | ||||
|  | ||||
|     <div class="page-list"> | ||||
|         {{ with .Paginator.Pages }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li>{{ .Render "summary/post" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|     <div class="page-title"> | ||||
|         <h1> | ||||
|             {{ partial "icon.html" "user-circle" }} | ||||
|             {{ .Title | markdownify }} | ||||
|             {{ partial "rss-link.html" . }} | ||||
|         </h1> | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "page-metadata/author.html" . }} | ||||
|  | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ partial "page-list.html" .Paginator.Pages }} | ||||
|  | ||||
|     {{ partial "pagination.html" . }} | ||||
| {{ end }} | ||||
|   | ||||
							
								
								
									
										21
									
								
								layouts/home.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								layouts/home.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| {{ define "main" }} | ||||
|     {{ with .Content }} | ||||
|         <article class="homepage-content"> | ||||
|             {{ . }} | ||||
|         </article> | ||||
|         <hr> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ if .Site.Params.homepageLatestPosts }} | ||||
|         <div class="homepage-latest-posts"> | ||||
|             <h1> | ||||
|                 {{ i18n "latest_posts" }} | ||||
|                 {{ partial "rss-link.html" . }} | ||||
|             </h1> | ||||
|  | ||||
|             {{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }} | ||||
|  | ||||
|             {{ partial "pagination.html" . }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
| {{ end }} | ||||
| @@ -1,33 +0,0 @@ | ||||
| {{ define "main" }} | ||||
|     {{ with .Content }} | ||||
|         <div class="homepage-content"> | ||||
|             {{ . }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ if .Site.Params.homepageLatestPosts }} | ||||
|         <div class="hompage-latest-posts"> | ||||
|             <hr> | ||||
|             <h1> | ||||
|                 {{ i18n "latest_posts" }} | ||||
|                 {{ partial "rss-link.html" . }} | ||||
|             </h1> | ||||
|  | ||||
|             {{ with (.Paginate .Site.RegularPages).Pages }} | ||||
|                 <div class="page-list"> | ||||
|                     <ul> | ||||
|                         {{ range . }} | ||||
|                             <li>{{ .Render "summary/post" }}</li> | ||||
|                         {{ end }} | ||||
|                     </ul> | ||||
|                 </div> | ||||
|             {{ else }} | ||||
|                 <div> | ||||
|                     {{ i18n "no_posts" }} | ||||
|                 </div> | ||||
|             {{ end }} | ||||
|  | ||||
|             {{ partial "pagination.html" . }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
| {{ end }} | ||||
| @@ -1 +0,0 @@ | ||||
| {{ i18n "credit_comment" | safeHTML }} | ||||
| @@ -9,7 +9,7 @@ | ||||
|     {{ with index . "src" }} | ||||
|         {{ $media := . }} | ||||
|         {{ if eq .MediaType.MainType "image" }} | ||||
|             <img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" /> | ||||
|             <img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" loading="lazy" /> | ||||
|         {{ else if eq .MediaType.MainType "video" }} | ||||
|             <video controls preload="metadata"> | ||||
|                 <source src="{{ $media.Permalink }}" alt="{{ $media.Title }}"> | ||||
|   | ||||
| @@ -7,17 +7,17 @@ | ||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||
|     {{ end }} | ||||
|     {{ with resources.Get "css/syntax.css" | fingerprint "sha512" }} | ||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'"> | ||||
|     {{ end }} | ||||
|     {{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }} | ||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" media="print" onload="this.media='all'"> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ with resources.Get "js/back-to-top.js" | fingerprint "sha512" }} | ||||
|         <script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||
|     {{ with resources.Get "js/bobatheme.js" | fingerprint "sha512" }} | ||||
|         <script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||
|     {{ end }} | ||||
|     {{ with resources.Get "js/share-event.js" | fingerprint "sha512" }} | ||||
|         <script defer src="{{ .Permalink }}" type="text/javascript" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||
|         <script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ with .Site.Params.faviconSVG }} | ||||
| @@ -40,7 +40,7 @@ | ||||
|     {{ partial "seo-tags/author.html" . }} | ||||
|  | ||||
|     <meta name="language" content="{{ .Language.Lang }}"> | ||||
|     <meta name="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}"> | ||||
|     <meta name="description" content="{{ (partial "seo-description.html" .) | plainify }}"> | ||||
|  | ||||
|     {{ partial "additional-head.html" . }} | ||||
| </head> | ||||
|   | ||||
							
								
								
									
										13
									
								
								layouts/partials/page-list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								layouts/partials/page-list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| <div class="page-list"> | ||||
|     {{ with . }} | ||||
|         {{ range . }} | ||||
|             <article class="page"> | ||||
|                 {{ .Render "summary" }} | ||||
|             </article> | ||||
|         {{ end }} | ||||
|     {{ else }} | ||||
|         <div> | ||||
|             {{ i18n "no_posts" }} | ||||
|         </div> | ||||
|     {{ end }} | ||||
| </div> | ||||
| @@ -1,16 +1,16 @@ | ||||
| <div class="author-metadata" aria-label="{{ i18n "aria_author_metadata" }}"> | ||||
| <div class="page-metadata" aria-label="{{ i18n "aria_author_metadata" }}"> | ||||
|     {{/* Calculate the total word count */}} | ||||
|     {{ $total_words := 0 }} | ||||
|     {{ range .Data.Pages }} | ||||
|         {{ $total_words = add $total_words .WordCount }} | ||||
|     {{ end }} | ||||
| 
 | ||||
|     <span class="author-meta-item" aria-label="{{ i18n "aria_author_post_count" }}"> | ||||
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_author_post_count" }}"> | ||||
|         {{ partial "icon.html" "newspaper" }} | ||||
|         {{ i18n "post_count" (len .Data.Pages) }} | ||||
|     </span> | ||||
| 
 | ||||
|     <span class="author-meta-item" aria-label="{{ i18n "aria_author_word_count" }}"> | ||||
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_author_word_count" }}"> | ||||
|         {{ partial "icon.html" "align-left" }} | ||||
|         {{ i18n "wordcount" $total_words }} | ||||
|     </span> | ||||
| @@ -1,14 +1,14 @@ | ||||
| {{ with .Params.authors }} | ||||
|     <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_authors" }}"> | ||||
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_authors" }}"> | ||||
|         {{ partial "icon.html" "user-circle" }} | ||||
| 
 | ||||
|         {{ if index $.Site.Taxonomies "authors" }} | ||||
|             {{ $authors := slice }} | ||||
|             {{ range . }} | ||||
|                 {{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }} | ||||
|                 {{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url . | safeHTML) }} | ||||
|                 {{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }} | ||||
|             {{ end }} | ||||
|             {{ delimit $authors ", " }} | ||||
|             {{ delimit $authors ", " | safeHTML }} | ||||
|         {{ else }} | ||||
|             {{ delimit . ", " }} | ||||
|         {{ end }} | ||||
							
								
								
									
										11
									
								
								layouts/partials/page-metadata/item/categories.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								layouts/partials/page-metadata/item/categories.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| {{ with (.GetTerms "categories") }} | ||||
|     {{ $categories := slice }} | ||||
|     {{ range . }} | ||||
|         {{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}"> | ||||
|         {{ partial "icon.html" "folder" }} | ||||
|         {{ delimit $categories ", " | safeHTML }} | ||||
|     </div> | ||||
| {{ end }} | ||||
							
								
								
									
										8
									
								
								layouts/partials/page-metadata/item/edithistory.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								layouts/partials/page-metadata/item/edithistory.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| {{ if and .Site.Params.gitHistoryURL .File.Path }} | ||||
|     <span class="page-metadata-item post-meta-edit-history" aria-label="{{ i18n "aria_post_meta_edit_history" }}"> | ||||
|         {{ partial "icon.html" "history" }} | ||||
|         <a href="{{ printf "%s/content/%s" .Site.Params.gitHistoryURL .File.Path }}" target="_blank" rel="noopener"> | ||||
|             {{- i18n "edit_history" -}} | ||||
|         </a> | ||||
|     </span> | ||||
| {{ end }} | ||||
| @@ -1,5 +1,5 @@ | ||||
| {{ if ne .Site.Params.readingtime false }} | ||||
|     <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_reading_time" }}"> | ||||
|     <span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_reading_time" }}"> | ||||
|         {{ partial "icon.html" "clock" }} | ||||
|         {{ i18n "readingtime" .ReadingTime }} | ||||
|     </span> | ||||
| @@ -4,8 +4,8 @@ | ||||
|         {{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }} | ||||
|     {{ end }} | ||||
| 
 | ||||
|     <div class="series" aria-label="{{ i18n "aria_post_meta_series" }}"> | ||||
|     <div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}"> | ||||
|         {{ partial "icon.html" "files" }} | ||||
|         {{ delimit $series ", " }} | ||||
|         {{ delimit $series ", " | safeHTML }} | ||||
|     </div> | ||||
| {{ end }} | ||||
| @@ -4,8 +4,8 @@ | ||||
|         {{ $tags = $tags | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }} | ||||
|     {{ end }} | ||||
| 
 | ||||
|     <div class="tags" aria-label="{{ i18n "aria_post_meta_tags" }}"> | ||||
|     <div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}"> | ||||
|         {{ partial "icon.html" "tag" }} | ||||
|         {{ delimit $tags ", " }} | ||||
|         {{ delimit $tags ", " | safeHTML }} | ||||
|     </div> | ||||
| {{ end }} | ||||
							
								
								
									
										26
									
								
								layouts/partials/page-metadata/post-full.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								layouts/partials/page-metadata/post-full.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| {{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }} | ||||
|     <div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}"> | ||||
|         {{ if .Date }} | ||||
|             <span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_date" }}"> | ||||
|                 {{ partial "icon.html" "calendar" }} | ||||
|                 {{ partial "time-element.html" .Date }} | ||||
|             </span> | ||||
|  | ||||
|             {{/* TODO: make this be a tooltip */}} | ||||
|             {{/* DISABLED | ||||
|             {{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }} | ||||
|                 <span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_modified_date" }}"> | ||||
|                     {{ partial "icon.html" "pencil" }} | ||||
|                     {{ partial "time-element.html" .Lastmod }} | ||||
|                     {{ end }} | ||||
|                 </span> | ||||
|             */}} | ||||
|         {{ end }} | ||||
|  | ||||
|         {{ partial "page-metadata/item/authors.html" . }} | ||||
|         {{ partial "page-metadata/item/readingtime.html" . }} | ||||
|         {{ partial "page-metadata/item/edithistory.html" . }} | ||||
|         {{ partial "page-metadata/item/categories.html" . }} | ||||
|         {{ partial "page-metadata/item/tags.html" . }} | ||||
|     </div> | ||||
| {{ end }} | ||||
							
								
								
									
										16
									
								
								layouts/partials/page-metadata/post-short.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								layouts/partials/page-metadata/post-short.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| {{ if or .Date .Params.authors .Site.Params.readingtime }} | ||||
|     <div class="page-metadata" aria-label="{{ i18n "aria_post_metadata" }}"> | ||||
|         {{ if .Date }} | ||||
|             <span class="page-metadata-item" aria-label="date"> | ||||
|                 {{ partial "icon.html" "calendar" }} | ||||
|                 {{ partial "time-element.html" .Date }} | ||||
|             </span> | ||||
|         {{ end }} | ||||
|  | ||||
|         {{ partial "page-metadata/item/authors.html" . }} | ||||
|         {{ partial "page-metadata/item/readingtime.html" . }} | ||||
|         {{ partial "page-metadata/item/series.html" . }} | ||||
|         {{ partial "page-metadata/item/categories.html" . }} | ||||
|         {{ partial "page-metadata/item/tags.html" . }} | ||||
|     </div> | ||||
| {{ end }} | ||||
| @@ -1,11 +1,11 @@ | ||||
| <div class="post-metadata" aria-label="{{ i18n "aria_series_metadata" }}"> | ||||
|     <span class="post-meta-item"> | ||||
| <div class="page-metadata" aria-label="{{ i18n "aria_series_metadata" }}"> | ||||
|     <span class="page-metadata-item"> | ||||
|         {{ partial "icon.html" "newspaper" }} | ||||
|         {{ i18n "post_count" (len .Data.Pages) }} | ||||
|     </span> | ||||
| 
 | ||||
|     {{ if ne .Site.Params.readingtime false }} | ||||
|         <span class="post-meta-item"> | ||||
|         <span class="page-metadata-item"> | ||||
|             {{ partial "icon.html" "clock" }} | ||||
|             {{ $readingtime := 0 }} | ||||
|             {{ range .Data.Pages }} | ||||
| @@ -14,9 +14,4 @@ | ||||
|             {{ i18n "readingtime" $readingtime }} | ||||
|         </span> | ||||
|     {{ end }} | ||||
| 
 | ||||
|     {{ partial "post-meta-item/translations.html" . }} | ||||
|     {{ if .File }} | ||||
|         {{ partial "post-meta-item/viewsource.html" . }} | ||||
|     {{ end }} | ||||
| </div> | ||||
							
								
								
									
										6
									
								
								layouts/partials/page-metadata/taxonomy.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								layouts/partials/page-metadata/taxonomy.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| <div class="taxonomy-metadata" aria-label="{{ i18n "aria_taxonomy_metadata" }}"> | ||||
|     <span class="taxonomy-meta-item" aria-label="{{ i18n "aria_taxonomy_post_count" }}"> | ||||
|         {{ partial "icon.html" "newspaper" }} | ||||
|         {{ i18n "post_count" (len .Data.Pages) }} | ||||
|     </span> | ||||
| </div> | ||||
| @@ -1,5 +1,5 @@ | ||||
| {{ if gt .Paginator.TotalPages 1 }} | ||||
|     <div class="pagination"> | ||||
|     <nav class="pagination"> | ||||
|         {{ template "_internal/pagination.html" . }} | ||||
|     </div> | ||||
|     </nav> | ||||
| {{ end }} | ||||
|   | ||||
| @@ -1,8 +0,0 @@ | ||||
| {{ if .IsTranslated }} | ||||
|     <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_translations" }}"> | ||||
|         {{ partial "icon.html" "world" }} | ||||
|         {{ range .Translations }} | ||||
|             <a href="{{ .Permalink }}">{{ .Language }}</a> | ||||
|         {{ end }} | ||||
|     </span> | ||||
| {{ end }} | ||||
| @@ -1,13 +0,0 @@ | ||||
| {{ if and .Site.Params.gitFileURL .File.Path }} | ||||
|     <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_view_source" }}"> | ||||
|         {{ with .Site.Params.gitFileIcon }} | ||||
|             {{ partial "icon.html" . }} | ||||
|         {{ else }} | ||||
|             {{ partial "icon.html" "file" }} | ||||
|         {{ end }} | ||||
|  | ||||
|         <a href="{{ printf "%s/content/%s" .Site.Params.gitFileURL .File.Path }}" target="_blank" rel="noopener"> | ||||
|             View source | ||||
|         </a> | ||||
|     </span> | ||||
| {{ end }} | ||||
| @@ -1,30 +0,0 @@ | ||||
| {{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime .Site.Params.gitFileURL }} | ||||
|     <div class="post-metadata" aria-label="{{ i18n "aria_post_metadata" }}"> | ||||
|         {{ if .Date }} | ||||
|             <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_date" }}"> | ||||
|                 {{ partial "icon.html" "calendar" }} | ||||
|                 <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate> | ||||
|                     {{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }} | ||||
|                 </time> | ||||
|             </span> | ||||
|  | ||||
|             {{/* TODO: make this be a tooltip */}} | ||||
|             {{/* DISABLED | ||||
|             {{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }} | ||||
|                 <span class="post-meta-item" aria-label="{{ i18n "aria_post_meta_modified_date" }}"> | ||||
|                     {{ partial "icon.html" "pencil" }} | ||||
|                     <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate> | ||||
|                         {{ i18n "long_date" (dict "Date" .Lastmod "Data" .Site.Data) }} | ||||
|                     </time> | ||||
|                     {{ end }} | ||||
|                 </span> | ||||
|             */}} | ||||
|         {{ end }} | ||||
|  | ||||
|         {{ partial "post-meta-item/authors.html" . }} | ||||
|         {{ partial "post-meta-item/translations.html" . }} | ||||
|         {{ partial "post-meta-item/readingtime.html" . }} | ||||
|         {{ partial "post-meta-item/viewsource.html" . }} | ||||
|         {{ partial "post-meta-item/tags.html" . }} | ||||
|     </div> | ||||
| {{ end }} | ||||
| @@ -1,18 +0,0 @@ | ||||
| {{ if or .Date .Params.authors .IsTranslated .Site.Params.readingtime }} | ||||
|     <div class="post-metadata" aria-label="{{ i18n "aria_post_metadata" }}"> | ||||
|         {{ if .Date }} | ||||
|             <span class="post-meta-item" aria-label="date"> | ||||
|                 {{ partial "icon.html" "calendar" }} | ||||
|                 <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate> | ||||
|                     {{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }} | ||||
|                 </time> | ||||
|             </span> | ||||
|         {{ end }} | ||||
|  | ||||
|         {{ partial "post-meta-item/authors.html" . }} | ||||
|         {{ partial "post-meta-item/translations.html" . }} | ||||
|         {{ partial "post-meta-item/readingtime.html" . }} | ||||
|         {{ partial "post-meta-item/series.html" . }} | ||||
|         {{ partial "post-meta-item/tags.html" . }} | ||||
|     </div> | ||||
| {{ end }} | ||||
| @@ -10,7 +10,7 @@ | ||||
| {{ end }} | ||||
|  | ||||
|     {{ if eq $type "image" }} | ||||
|         <img src="{{ $src }}" alt="{{ $alt }}" /> | ||||
|         <img src="{{ $src }}" alt="{{ $alt }}" loading="lazy" /> | ||||
|     {{ else if eq $type "video" }} | ||||
|         <video controls preload="metadata"> | ||||
|             <source src="{{ $src }}" alt="{{ $alt }}"> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <meta property="og:title" content="{{ .Title | plainify }}"> | ||||
| <meta property="og:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}"> | ||||
| <meta property="og:description" content="{{ (partial "seo-description.html" .) | plainify }}"> | ||||
| <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> | ||||
| <meta property="og:url" content="{{ .Permalink }}"> | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <meta itemprop="name" content="{{ .Title | plainify }}"> | ||||
| <meta itemprop="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}"> | ||||
| <meta itemprop="description" content="{{ (partial "seo-description.html" .) | plainify }}"> | ||||
|  | ||||
| {{ $format := "2006-01-02T15:04:05-07:00" }} | ||||
| {{ with .Date }} | ||||
| @@ -21,6 +21,10 @@ | ||||
|     <meta itemprop="image" content="{{ $featured.Permalink }}"> | ||||
| {{ end }} | ||||
|  | ||||
| {{ with .Params.tags }} | ||||
|     <meta itemprop="keywords" content="{{ delimit . ", " }}"> | ||||
| {{ with (.GetTerms "tags") }} | ||||
|     {{ $tags := slice }} | ||||
|     {{ range . }} | ||||
|         {{ $tags = $tags | append .LinkTitle }} | ||||
|     {{ end }} | ||||
|     <meta itemprop="keywords" content="{{ delimit $tags ", " }}"> | ||||
| {{ end }} | ||||
|   | ||||
| @@ -22,7 +22,7 @@ | ||||
| {{ end }} | ||||
|  | ||||
| <meta name="twitter:title" content="{{ .Title | plainify }}"> | ||||
| <meta name="twitter:description" content="{{ (partial "seo-tags/description.html" .) | plainify }}"> | ||||
| <meta name="twitter:description" content="{{ (partial "seo-description.html" .) | plainify }}"> | ||||
|  | ||||
| {{ with .Site.Social.twitter }} | ||||
|     <meta name="twitter:site" content="@{{ . }}"> | ||||
|   | ||||
| @@ -12,6 +12,6 @@ | ||||
|             This post is part of a series: | ||||
|         {{ end }} | ||||
|  | ||||
|         {{ delimit $series ", " }} | ||||
|         {{ delimit $series ", " | safeHTML }} | ||||
|     </div> | ||||
| {{ end }} | ||||
|   | ||||
| @@ -3,6 +3,7 @@ | ||||
|         <a class="twitter-share" | ||||
|            target="_blank" | ||||
|            rel="noopener" | ||||
|            aria-label="{{ i18n "aria_share_twitter" }}" | ||||
|            onclick="share_event('Twitter');" | ||||
|            href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&via=bbaovanc"> | ||||
|             {{- partial "icon.html" "twitter" -}} | ||||
| @@ -13,6 +14,7 @@ | ||||
|         <a class="facebook-share" | ||||
|            target="_blank" | ||||
|            rel="noopener" | ||||
|            aria-label="{{ i18n "aria_share_facebook" }}" | ||||
|            onclick="share_event('Facebook');" | ||||
|            href="https://www.facebook.com/sharer.php?u={{ .Permalink }}"> | ||||
|             {{- partial "icon.html" "facebook" -}} | ||||
| @@ -23,6 +25,7 @@ | ||||
|         <a class="linkedin-share" | ||||
|            target="_blank" | ||||
|            rel="noopener" | ||||
|            aria-label="{{ i18n "aria_share_linkedin" }}" | ||||
|            onclick="share_event('LinkedIn');" | ||||
|            href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}"> | ||||
|             {{- partial "icon.html" "linkedin" -}} | ||||
| @@ -33,6 +36,7 @@ | ||||
|         <a class="reddit-share" | ||||
|            target="_blank" | ||||
|            rel="noopener" | ||||
|            aria-label="{{ i18n "aria_share_reddit" }}" | ||||
|            onclick="share_event('Reddit');" | ||||
|            href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}"> | ||||
|             {{- partial "icon.html" "reddit" -}} | ||||
| @@ -46,10 +50,20 @@ | ||||
|         <a class="telegram-share" | ||||
|            target="_blank" | ||||
|            rel="noopener" | ||||
|            aria-label="{{ i18n "aria_share_telegram" }}" | ||||
|            onclick="share_event('Telegram');" | ||||
|            href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}"> | ||||
|             {{- partial "icon.html" "telegram" -}} | ||||
|         </a> | ||||
|     {{ end }} | ||||
|     */}} | ||||
|  | ||||
|     {{ if .Site.Params.shareButtons.print }} | ||||
|         <a class="print-share" | ||||
|            aria-label="{{ i18n "aria_share_print" }}" | ||||
|            href="javascript:void(0)" | ||||
|            onclick="window.print(); share_event('Print');"> | ||||
|             {{- partial "icon.html" "printer" -}} | ||||
|         </a> | ||||
|     {{ end }} | ||||
| </div> | ||||
|   | ||||
							
								
								
									
										3
									
								
								layouts/partials/time-element.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								layouts/partials/time-element.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| <time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}" title="{{ . }}"> | ||||
|     {{ .Format "January 2, 2006" }} | ||||
| </time> | ||||
| @@ -1,8 +1,10 @@ | ||||
| <h2 class="header"> | ||||
|     <a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a> | ||||
| </h2> | ||||
| <div class="top"> | ||||
|     <header class="header"> | ||||
|         <a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}"> | ||||
|             {{ .Site.Title | markdownify }} | ||||
|         </a> | ||||
|     </header> | ||||
|  | ||||
| <div class="topbar"> | ||||
|     <nav class="navbar" aria-label="{{ i18n "aria_navbar" }}"> | ||||
|         {{ with .Site.Home }} | ||||
|             <a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a> | ||||
| @@ -10,7 +12,8 @@ | ||||
|  | ||||
|         {{ range .Site.Menus.main }} | ||||
|             {{ $isActive := false }} | ||||
|             {{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }} | ||||
|             {{/* https://discourse.gohugo.io/t/ismenucurrent-not-working-with-using-sectionpagesmenu/46687/2?u=bbaovanc */}} | ||||
|             {{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }} | ||||
|                 {{ $isActive = true }} | ||||
|             {{ end }} | ||||
|             <a class="navbar-item{{ if $isActive }} active{{ end }}" | ||||
| @@ -18,35 +21,4 @@ | ||||
|                href="{{ .URL }}">{{ .Name }}</a> | ||||
|         {{ end }} | ||||
|     </nav> | ||||
|  | ||||
|     {{ if .Site.IsMultiLingual }} | ||||
|         <details class="langpicker" aria-label="{{ i18n "aria_langpicker" }}"> | ||||
|             <summary> | ||||
|                 {{- partial "icon.html" "world" -}} | ||||
|             </summary> | ||||
|             <ul class="languages" aria-label="{{ i18n "aria_langpicker_list" }}"> | ||||
|                 {{ range .AllTranslations }} | ||||
|                     <li> | ||||
|                         <a class="langpicker-item{{ if eq .Language $.Site.Language }} active{{ end }}" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> | ||||
|                     </li> | ||||
|                 {{ end }} | ||||
|  | ||||
|                 {{ $site_translations := slice }} | ||||
|                 {{ range .Site.Languages }} | ||||
|                     {{ $site_translations = $site_translations | append .LanguageName }} | ||||
|                 {{ end }} | ||||
|  | ||||
|                 {{ $translation_codes := slice }} | ||||
|                 {{ range .AllTranslations }} | ||||
|                     {{ $translation_codes = $translation_codes | append .Language }} | ||||
|                 {{ end }} | ||||
|  | ||||
|                 {{ range (.Site.Languages | complement $translation_codes) }} | ||||
|                     <li> | ||||
|                         <a class="langpicker-item unavailable" aria-disabled="true">{{ .LanguageName }}</a> | ||||
|                     </li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         </details> | ||||
|     {{ end }} | ||||
| </div> | ||||
|   | ||||
| @@ -4,13 +4,17 @@ | ||||
|         {{ .Title | markdownify }} | ||||
|     </h1> | ||||
|  | ||||
|     <div class="series-taxonomy"> | ||||
|         {{ with .Pages }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li>{{ .Render "summary/series" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="page-list series"> | ||||
|         {{ with .Paginator.Pages }} | ||||
|             {{ range . }} | ||||
|                 <div class="page series"> | ||||
|                     {{ .Render "summary" }} | ||||
|                 </div> | ||||
|             {{ end }} | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|   | ||||
							
								
								
									
										19
									
								
								layouts/series/summary.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								layouts/series/summary.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| <h2 class="page-title"> | ||||
|     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||
| </h2> | ||||
|  | ||||
| {{ partial "page-metadata/series.html" . }} | ||||
|  | ||||
| <div class="page-description"> | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
| </div> | ||||
|  | ||||
| <div class="page-list series-inner"> | ||||
|     {{ range .Data.Pages.Reverse }} | ||||
|         <article class="page"> | ||||
|             {{ .Render "summary" }} | ||||
|         </article> | ||||
|     {{ end }} | ||||
| </div> | ||||
| @@ -5,28 +5,16 @@ | ||||
|         {{ partial "rss-link.html" . }} | ||||
|     </h1> | ||||
|  | ||||
|     {{ partial "post-metadata/series.html" . }} | ||||
|     {{ partial "page-metadata/series.html" . }} | ||||
|  | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ with .Paginator.Pages.Reverse }} | ||||
|         {{ partial "page-list.html" . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="page-list"> | ||||
|         {{ with .Paginator.Pages.Reverse }} | ||||
|             <ul> | ||||
|                 {{ $i := 0 }} | ||||
|                 {{ $total := len $.Pages }} | ||||
|                 {{ range . }} | ||||
|                     {{ $i = add 1 $i }} | ||||
|                     {{ .Scratch.Set "series_position" $i }} | ||||
|                     {{ .Scratch.Set "series_total" $total }} | ||||
|                     <li>{{ .Render "summary/post" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "pagination.html" . }} | ||||
| {{ end }} | ||||
|   | ||||
| @@ -1 +1,5 @@ | ||||
| <abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr> | ||||
| {{ if .IsNamedParams }} | ||||
|     <abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr> | ||||
| {{ else }} | ||||
|     <abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr> | ||||
| {{ end }} | ||||
|   | ||||
| @@ -1,7 +1,28 @@ | ||||
| <aside> | ||||
|     {{ with .Inner }} | ||||
|         {{ . | markdownify }} | ||||
|     {{ else }} | ||||
|         {{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }} | ||||
|     {{ end }} | ||||
| {{ $type := "" }} | ||||
| {{ if .IsNamedParams }} | ||||
|     {{ $type = .Get "type" | default "note" }} | ||||
| {{ else }} | ||||
|     {{ $type = .Get 0 | default "note" }} | ||||
| {{ end }} | ||||
|  | ||||
| {{/* This idea comes from the LoveIt theme: | ||||
|      https://github.com/dillonzq/LoveIt/blob/aa834e89af8349f6c18d4c7ad50a73fd5f1e40e0/layouts/shortcodes/admonition.html#L3-L14 | ||||
| */}} | ||||
|  | ||||
| {{ $icons := dict "note" "pencil" }} | ||||
| {{ $icons  = dict "info" "info" | merge $icons }} | ||||
| {{ $icons  = dict "tip" "lightbulb" | merge $icons }} | ||||
| {{ $icons  = dict "warning" "info" | merge $icons }} | ||||
| {{ $icons  = dict "example" "flask" | merge $icons }} | ||||
| {{ $icons  = dict "quote" "quote" | merge $icons }} | ||||
|  | ||||
| <aside class="{{ $type }}"> | ||||
|     <div class="aside-title"> | ||||
|         {{ partial "icon.html" (index $icons $type) }} | ||||
|         {{ title $type }} | ||||
|     </div> | ||||
|  | ||||
|     <div class="aside-content"> | ||||
|         {{ .Inner | .Page.RenderString (dict "display" "block") }} | ||||
|     </div> | ||||
| </aside> | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| {{ $resource := $.Page.Resources.GetMatch (.Get "src") }} | ||||
| {{ $resource := .Page.Resources.GetMatch (.Get "src") }} | ||||
|  | ||||
| {{ $noborder := false }} | ||||
| {{ if .Get "noborder" }} | ||||
|   | ||||
							
								
								
									
										1
									
								
								layouts/shortcodes/full-width-hr.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/shortcodes/full-width-hr.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <hr class="full-width-hr"> | ||||
							
								
								
									
										20
									
								
								layouts/shortcodes/include.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								layouts/shortcodes/include.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| {{ $path := "" }} | ||||
| {{ $markdown := false }} | ||||
| {{ if .IsNamedParams }} | ||||
|     {{ $path = .Get "path" }} | ||||
|     {{ with .Get "markdown" }} | ||||
|         {{ $markdown = . }} | ||||
|     {{ end }} | ||||
| {{ else }} | ||||
|     {{ $path = .Get 0 }} | ||||
| {{ end }} | ||||
|  | ||||
| {{ with ($path | readFile) }} | ||||
|     {{ if $markdown }} | ||||
|         {{ $path | readFile | $.Page.RenderString (dict "display" "block") }} | ||||
|     {{ else }} | ||||
|         {{ $path | readFile }} | ||||
|     {{ end }} | ||||
| {{ else }} | ||||
|     {{ errorf "file not found: %s" $path }} | ||||
| {{ end }} | ||||
| @@ -9,5 +9,5 @@ | ||||
| {{ end }} | ||||
| 
 | ||||
| <p> | ||||
|     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "image" "alt" (.Get "alt")) }} | ||||
|     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" (.Get "type") "alt" (.Get "alt")) }} | ||||
| </p> | ||||
| @@ -1,6 +1,6 @@ | ||||
| <div class="see-also"> | ||||
|     {{ with .Site.GetPage (.Get 0) }} | ||||
|         <p>SEE ALSO: <a href="{{ .Permalink }}">{{ .Title }}</a></p> | ||||
|         <p>{{ i18n "see_also" }} <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></p> | ||||
|     {{ else }} | ||||
|         {{ errorf "Page could not be found for see-also shortcode: %s" .Position }} | ||||
|     {{ end }} | ||||
|   | ||||
| @@ -5,6 +5,6 @@ | ||||
|     {{ $class = delimit (slice $class .) " " }} | ||||
| {{ end }} | ||||
|  | ||||
| {{ $htmlTable := .Inner | markdownify }} | ||||
| {{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }} | ||||
| {{ $new := printf `<table class="%s">` $class }} | ||||
| {{ (replace $htmlTable "<table>" $new) | safeHTML }} | ||||
|   | ||||
| @@ -1,13 +0,0 @@ | ||||
| {{ $border := false }} | ||||
| {{ if .Get "border" }} | ||||
|     {{ $border = true }} | ||||
| {{ end }} | ||||
|  | ||||
| {{ $hidecaption := false }} | ||||
| {{ if .Get "hidecaption" }} | ||||
|     {{ $hidecaption = true }} | ||||
| {{ end }} | ||||
|  | ||||
| <p> | ||||
|     {{ partial "remote_figure.html" (dict "src" (.Get "src") "border" $border "hidecaption" $hidecaption "type" "video" "alt" (.Get "alt")) }} | ||||
| </p> | ||||
| @@ -1,22 +0,0 @@ | ||||
| {{ define "main" }} | ||||
|     <h1> | ||||
|         {{ partial "icon.html" "tag" }} | ||||
|         {{ .Title | markdownify }} | ||||
|     </h1> | ||||
|  | ||||
|     <div class="tag-list"> | ||||
|         {{ with .Data.Terms.Alphabetical }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <a href="{{ .Page.Permalink }}"> | ||||
|                         <li>{{ .Page.Title | markdownify }}</li> | ||||
|                     </a> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|     </div> | ||||
| {{ end }} | ||||
| @@ -1,24 +0,0 @@ | ||||
| {{ define "main" }} | ||||
|     <h1> | ||||
|         {{ partial "icon.html" "tag" }} | ||||
|         {{ .Title | markdownify }} | ||||
|         {{ partial "rss-link.html" . }} | ||||
|     </h1> | ||||
|  | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
|     <div class="page-list"> | ||||
|         {{ with .Paginator.Pages }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li>{{ .Render "summary/post" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "pagination.html" . }} | ||||
| {{ end }} | ||||
| @@ -1,23 +1,37 @@ | ||||
| {{ define "main" }} | ||||
|     <h1> | ||||
|         {{ if eq .Data.Singular "tag" }} | ||||
|             {{ partial "icon.html" "tag" }} | ||||
|         {{ else }} | ||||
|             {{ partial "icon.html" "filter" }} | ||||
|         {{ end }} | ||||
|     <div class="page-title"> | ||||
|         <h1> | ||||
|             {{ if eq .Data.Singular "tag" }} | ||||
|                 {{ partial "icon.html" "tag" }} | ||||
|             {{ else if eq .Data.Singular "category" }} | ||||
|                 {{ partial "icon.html" "folder" }} | ||||
|             {{ else }} | ||||
|                 {{ partial "icon.html" "filter" }} | ||||
|             {{ end }} | ||||
|  | ||||
|         {{ .Title | markdownify }} | ||||
|     </h1> | ||||
|             {{ .Title | markdownify }} | ||||
|         </h1> | ||||
|     </div> | ||||
|  | ||||
|     <div class="taxonomy"> | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     <div class="taxonomy-list"> | ||||
|         {{ with .Data.Terms.Alphabetical }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li> | ||||
|                         <a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a> | ||||
|                     </li> | ||||
|             {{ range . }} | ||||
|                 {{ with .Page }} | ||||
|                     <article class="taxonomy-term"> | ||||
|                         <div class="taxonomy-list-left"> | ||||
|                             <a href="{{ .Permalink }}"> | ||||
|                                 <p>{{ .Title | markdownify }}</p> | ||||
|                             </a> | ||||
|                             {{ partial "page-metadata/taxonomy.html" . }} | ||||
|                         </div> | ||||
|                         {{ partial "description-or-summary.html" . }} | ||||
|                     </article> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|             {{ end }} | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|   | ||||
| @@ -1,29 +1,26 @@ | ||||
| {{ define "main" }} | ||||
|     <h1> | ||||
|         {{ if eq .Data.Singular "tag" }} | ||||
|             {{ partial "icon.html" "tag" }} | ||||
|         {{ else }} | ||||
|             {{ partial "icon.html" "filter" }} | ||||
|         {{ end }} | ||||
|     <div class="page-title"> | ||||
|         <h1> | ||||
|             {{ if eq .Data.Singular "tag" }} | ||||
|                 {{ partial "icon.html" "tag" }} | ||||
|             {{ else if eq .Data.Singular "category" }} | ||||
|                 {{ partial "icon.html" "folder" }} | ||||
|             {{ else }} | ||||
|                 {{ partial "icon.html" "filter" }} | ||||
|             {{ end }} | ||||
|  | ||||
|         {{ .Title | markdownify }} | ||||
|         {{ partial "rss-link.html" . }} | ||||
|     </h1> | ||||
|  | ||||
|     {{ partial "description-or-summary.html" . }} | ||||
|     <div class="page-list"> | ||||
|         {{ with .Paginator.Pages }} | ||||
|             <ul> | ||||
|                 {{ range . }} | ||||
|                     <li>{{ .Render "summary/post" }}</li> | ||||
|                 {{ end }} | ||||
|             </ul> | ||||
|         {{ else }} | ||||
|             <div> | ||||
|                 {{ i18n "no_posts" }} | ||||
|             </div> | ||||
|         {{ end }} | ||||
|             {{ .Title | markdownify }} | ||||
|             {{ partial "rss-link.html" . }} | ||||
|         </h1> | ||||
|     </div> | ||||
|  | ||||
|     {{ partial "page-metadata/taxonomy.html" . }} | ||||
|  | ||||
|     {{ with .Content }} | ||||
|         {{ . }} | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ partial "page-list.html" .Paginator.Pages }} | ||||
|  | ||||
|     {{ partial "pagination.html" . }} | ||||
| {{ end }} | ||||
|   | ||||
							
								
								
									
										10
									
								
								static/font/jetbrainsmono/AUTHORS.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								static/font/jetbrainsmono/AUTHORS.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| # This is the official list of project authors for copyright purposes. | ||||
| # This file is distinct from the CONTRIBUTORS.txt file. | ||||
| # See the latter for an explanation. | ||||
| #  | ||||
| # Names should be added to this file as: | ||||
| # Name or Organization <email address> | ||||
|  | ||||
| JetBrains <> | ||||
| Philipp Nurullin <philipp.nurullin@jetbrains.com> | ||||
| Konstantin Bulenkov <kb@jetbrains.com> | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										93
									
								
								static/font/jetbrainsmono/OFL.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								static/font/jetbrainsmono/OFL.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,93 @@ | ||||
| Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) | ||||
|  | ||||
| This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||||
| This license is copied below, and is also available with a FAQ at: | ||||
| https://scripts.sil.org/OFL | ||||
|  | ||||
|  | ||||
| ----------------------------------------------------------- | ||||
| SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||||
| ----------------------------------------------------------- | ||||
|  | ||||
| PREAMBLE | ||||
| The goals of the Open Font License (OFL) are to stimulate worldwide | ||||
| development of collaborative font projects, to support the font creation | ||||
| efforts of academic and linguistic communities, and to provide a free and | ||||
| open framework in which fonts may be shared and improved in partnership | ||||
| with others. | ||||
|  | ||||
| The OFL allows the licensed fonts to be used, studied, modified and | ||||
| redistributed freely as long as they are not sold by themselves. The | ||||
| fonts, including any derivative works, can be bundled, embedded,  | ||||
| redistributed and/or sold with any software provided that any reserved | ||||
| names are not used by derivative works. The fonts and derivatives, | ||||
| however, cannot be released under any other type of license. The | ||||
| requirement for fonts to remain under this license does not apply | ||||
| to any document created using the fonts or their derivatives. | ||||
|  | ||||
| DEFINITIONS | ||||
| "Font Software" refers to the set of files released by the Copyright | ||||
| Holder(s) under this license and clearly marked as such. This may | ||||
| include source files, build scripts and documentation. | ||||
|  | ||||
| "Reserved Font Name" refers to any names specified as such after the | ||||
| copyright statement(s). | ||||
|  | ||||
| "Original Version" refers to the collection of Font Software components as | ||||
| distributed by the Copyright Holder(s). | ||||
|  | ||||
| "Modified Version" refers to any derivative made by adding to, deleting, | ||||
| or substituting -- in part or in whole -- any of the components of the | ||||
| Original Version, by changing formats or by porting the Font Software to a | ||||
| new environment. | ||||
|  | ||||
| "Author" refers to any designer, engineer, programmer, technical | ||||
| writer or other person who contributed to the Font Software. | ||||
|  | ||||
| PERMISSION & CONDITIONS | ||||
| Permission is hereby granted, free of charge, to any person obtaining | ||||
| a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||||
| redistribute, and sell modified and unmodified copies of the Font | ||||
| Software, subject to the following conditions: | ||||
|  | ||||
| 1) Neither the Font Software nor any of its individual components, | ||||
| in Original or Modified Versions, may be sold by itself. | ||||
|  | ||||
| 2) Original or Modified Versions of the Font Software may be bundled, | ||||
| redistributed and/or sold with any software, provided that each copy | ||||
| contains the above copyright notice and this license. These can be | ||||
| included either as stand-alone text files, human-readable headers or | ||||
| in the appropriate machine-readable metadata fields within text or | ||||
| binary files as long as those fields can be easily viewed by the user. | ||||
|  | ||||
| 3) No Modified Version of the Font Software may use the Reserved Font | ||||
| Name(s) unless explicit written permission is granted by the corresponding | ||||
| Copyright Holder. This restriction only applies to the primary font name as | ||||
| presented to the users. | ||||
|  | ||||
| 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||||
| Software shall not be used to promote, endorse or advertise any | ||||
| Modified Version, except to acknowledge the contribution(s) of the | ||||
| Copyright Holder(s) and the Author(s) or with their explicit written | ||||
| permission. | ||||
|  | ||||
| 5) The Font Software, modified or unmodified, in part or in whole, | ||||
| must be distributed entirely under this license, and must not be | ||||
| distributed under any other license. The requirement for fonts to | ||||
| remain under this license does not apply to any document created | ||||
| using the Font Software. | ||||
|  | ||||
| TERMINATION | ||||
| This license becomes null and void if any of the above conditions are | ||||
| not met. | ||||
|  | ||||
| DISCLAIMER | ||||
| THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||||
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||||
| OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||||
| COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||||
| INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||||
| DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
| FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||||
| OTHER DEALINGS IN THE FONT SOFTWARE. | ||||
							
								
								
									
										93
									
								
								static/font/opensans/OFL.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								static/font/opensans/OFL.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,93 @@ | ||||
| Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans) | ||||
|  | ||||
| This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||||
| This license is copied below, and is also available with a FAQ at: | ||||
| http://scripts.sil.org/OFL | ||||
|  | ||||
|  | ||||
| ----------------------------------------------------------- | ||||
| SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||||
| ----------------------------------------------------------- | ||||
|  | ||||
| PREAMBLE | ||||
| The goals of the Open Font License (OFL) are to stimulate worldwide | ||||
| development of collaborative font projects, to support the font creation | ||||
| efforts of academic and linguistic communities, and to provide a free and | ||||
| open framework in which fonts may be shared and improved in partnership | ||||
| with others. | ||||
|  | ||||
| The OFL allows the licensed fonts to be used, studied, modified and | ||||
| redistributed freely as long as they are not sold by themselves. The | ||||
| fonts, including any derivative works, can be bundled, embedded,  | ||||
| redistributed and/or sold with any software provided that any reserved | ||||
| names are not used by derivative works. The fonts and derivatives, | ||||
| however, cannot be released under any other type of license. The | ||||
| requirement for fonts to remain under this license does not apply | ||||
| to any document created using the fonts or their derivatives. | ||||
|  | ||||
| DEFINITIONS | ||||
| "Font Software" refers to the set of files released by the Copyright | ||||
| Holder(s) under this license and clearly marked as such. This may | ||||
| include source files, build scripts and documentation. | ||||
|  | ||||
| "Reserved Font Name" refers to any names specified as such after the | ||||
| copyright statement(s). | ||||
|  | ||||
| "Original Version" refers to the collection of Font Software components as | ||||
| distributed by the Copyright Holder(s). | ||||
|  | ||||
| "Modified Version" refers to any derivative made by adding to, deleting, | ||||
| or substituting -- in part or in whole -- any of the components of the | ||||
| Original Version, by changing formats or by porting the Font Software to a | ||||
| new environment. | ||||
|  | ||||
| "Author" refers to any designer, engineer, programmer, technical | ||||
| writer or other person who contributed to the Font Software. | ||||
|  | ||||
| PERMISSION & CONDITIONS | ||||
| Permission is hereby granted, free of charge, to any person obtaining | ||||
| a copy of the Font Software, to use, study, copy, merge, embed, modify, | ||||
| redistribute, and sell modified and unmodified copies of the Font | ||||
| Software, subject to the following conditions: | ||||
|  | ||||
| 1) Neither the Font Software nor any of its individual components, | ||||
| in Original or Modified Versions, may be sold by itself. | ||||
|  | ||||
| 2) Original or Modified Versions of the Font Software may be bundled, | ||||
| redistributed and/or sold with any software, provided that each copy | ||||
| contains the above copyright notice and this license. These can be | ||||
| included either as stand-alone text files, human-readable headers or | ||||
| in the appropriate machine-readable metadata fields within text or | ||||
| binary files as long as those fields can be easily viewed by the user. | ||||
|  | ||||
| 3) No Modified Version of the Font Software may use the Reserved Font | ||||
| Name(s) unless explicit written permission is granted by the corresponding | ||||
| Copyright Holder. This restriction only applies to the primary font name as | ||||
| presented to the users. | ||||
|  | ||||
| 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font | ||||
| Software shall not be used to promote, endorse or advertise any | ||||
| Modified Version, except to acknowledge the contribution(s) of the | ||||
| Copyright Holder(s) and the Author(s) or with their explicit written | ||||
| permission. | ||||
|  | ||||
| 5) The Font Software, modified or unmodified, in part or in whole, | ||||
| must be distributed entirely under this license, and must not be | ||||
| distributed under any other license. The requirement for fonts to | ||||
| remain under this license does not apply to any document created | ||||
| using the Font Software. | ||||
|  | ||||
| TERMINATION | ||||
| This license becomes null and void if any of the above conditions are | ||||
| not met. | ||||
|  | ||||
| DISCLAIMER | ||||
| THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF | ||||
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT | ||||
| OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE | ||||
| COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||||
| INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL | ||||
| DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
| FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM | ||||
| OTHER DEALINGS IN THE FONT SOFTWARE. | ||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										100
									
								
								static/font/opensans/README.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								static/font/opensans/README.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,100 @@ | ||||
| Open Sans Variable Font | ||||
| ======================= | ||||
|  | ||||
| This download contains Open Sans as both variable fonts and static fonts. | ||||
|  | ||||
| Open Sans is a variable font with these axes: | ||||
|   wdth | ||||
|   wght | ||||
|  | ||||
| This means all the styles are contained in these files: | ||||
|   OpenSans-VariableFont_wdth,wght.ttf | ||||
|   OpenSans-Italic-VariableFont_wdth,wght.ttf | ||||
|  | ||||
| If your app fully supports variable fonts, you can now pick intermediate styles | ||||
| that aren’t available as static fonts. Not all apps support variable fonts, and | ||||
| in those cases you can use the static font files for Open Sans: | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-Light.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-Regular.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-Medium.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-SemiBold.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-Bold.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-ExtraBold.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Light.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Regular.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Medium.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBold.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Bold.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBold.ttf | ||||
|   static/OpenSans/OpenSans-Light.ttf | ||||
|   static/OpenSans/OpenSans-Regular.ttf | ||||
|   static/OpenSans/OpenSans-Medium.ttf | ||||
|   static/OpenSans/OpenSans-SemiBold.ttf | ||||
|   static/OpenSans/OpenSans-Bold.ttf | ||||
|   static/OpenSans/OpenSans-ExtraBold.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-LightItalic.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-Italic.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-MediumItalic.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-SemiBoldItalic.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-BoldItalic.ttf | ||||
|   static/OpenSans_Condensed/OpenSans_Condensed-ExtraBoldItalic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-LightItalic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-Italic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-MediumItalic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-SemiBoldItalic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-BoldItalic.ttf | ||||
|   static/OpenSans_SemiCondensed/OpenSans_SemiCondensed-ExtraBoldItalic.ttf | ||||
|   static/OpenSans/OpenSans-LightItalic.ttf | ||||
|   static/OpenSans/OpenSans-Italic.ttf | ||||
|   static/OpenSans/OpenSans-MediumItalic.ttf | ||||
|   static/OpenSans/OpenSans-SemiBoldItalic.ttf | ||||
|   static/OpenSans/OpenSans-BoldItalic.ttf | ||||
|   static/OpenSans/OpenSans-ExtraBoldItalic.ttf | ||||
|  | ||||
| Get started | ||||
| ----------- | ||||
|  | ||||
| 1. Install the font files you want to use | ||||
|  | ||||
| 2. Use your app's font picker to view the font family and all the | ||||
| available styles | ||||
|  | ||||
| Learn more about variable fonts | ||||
| ------------------------------- | ||||
|  | ||||
|   https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts | ||||
|   https://variablefonts.typenetwork.com | ||||
|   https://medium.com/variable-fonts | ||||
|  | ||||
| In desktop apps | ||||
|  | ||||
|   https://theblog.adobe.com/can-variable-fonts-illustrator-cc | ||||
|   https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts | ||||
|  | ||||
| Online | ||||
|  | ||||
|   https://developers.google.com/fonts/docs/getting_started | ||||
|   https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide | ||||
|   https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts | ||||
|  | ||||
| Installing fonts | ||||
|  | ||||
|   MacOS: https://support.apple.com/en-us/HT201749 | ||||
|   Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux | ||||
|   Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows | ||||
|  | ||||
| Android Apps | ||||
|  | ||||
|   https://developers.google.com/fonts/docs/android | ||||
|   https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts | ||||
|  | ||||
| License | ||||
| ------- | ||||
| Please read the full license text (OFL.txt) to understand the permissions, | ||||
| restrictions and requirements for usage, redistribution, and modification. | ||||
|  | ||||
| You can use them in your products & projects – print or digital, | ||||
| commercial or otherwise. | ||||
|  | ||||
| This isn't legal advice, please consider consulting a lawyer and see the full | ||||
| license for all details. | ||||
| @@ -8,7 +8,7 @@ description = "Simple Hugo theme for boba.best and bbaovanc.com" | ||||
| homepage = "https://bbaovanc.com" | ||||
| tags = [] | ||||
| features = [] | ||||
| min_version = "0.80.0" | ||||
| min_version = "0.93.0" | ||||
|  | ||||
| [author] | ||||
|   name = "bbaovanc" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user