mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-28 08:43:30 -05:00 
			
		
		
		
	Compare commits
	
		
			92 Commits
		
	
	
		
			0ddf0bdf42
			...
			cleanup-bo
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f9481a6e7f | |||
| 8083b1a299 | |||
| 314b533698 | |||
| 00a0f64be4 | |||
| 741b3bc01b | |||
| df2fae9886 | |||
| f38abfe73f | |||
| 3d55a7dabe | |||
| 67de113bdf | |||
| 349672bbad | |||
| ec382b2085 | |||
| 21f2a91b54 | |||
| 0237c496ed | |||
| 61d5ca29dd | |||
| 8bb8720545 | |||
| bd8e34a381 | |||
| 62cdcf5b11 | |||
| c9909762d6 | |||
| cc4af0c385 | |||
| 7aeb95a437 | |||
| 14475c13f4 | |||
| 6b729c6acf | |||
| f751c4b104 | |||
| de20387b5a | |||
| 84004d3ac0 | |||
| 52a6440011 | |||
| 322928ed7a | |||
| 4e753395ba | |||
| 5d335647d0 | |||
| 22fff1a9c5 | |||
| b79c956c07 | |||
| b15ca73977 | |||
| ccb5170d2b | |||
| 433dd125e2 | |||
| d50a4dc6bd | |||
| bbe76a44bb | |||
| 8845272d4d | |||
| 5afaf2ce3e | |||
| 486fa65ad6 | |||
| f371afe529 | |||
| 8f79d2af3a | |||
| d6cb2c12c8 | |||
| 2fa53d1f2c | |||
| e0d2c536e4 | |||
| 8fafc843ef | |||
| 1f82ad4f0b | |||
| 7e016547ec | |||
| b4bff1e36d | |||
| 1f9477759d | |||
| cc7cec07df | |||
| be12afb50d | |||
| 9d761b2f81 | |||
| ba9c106a88 | |||
| 150ee40fd5 | |||
| ca0f8d390c | |||
| 62f0d42140 | |||
| 16f08dce7f | |||
| c06e7eb938 | |||
| 5a957bc745 | |||
| 67ac36e9e2 | |||
| 6ff0ffb80b | |||
| ff4998f31b | |||
| 1aa2f8ea5c | |||
| 6e7160efbb | |||
| 04c3c007a8 | |||
| ad7432155f | |||
| 0aaf865b75 | |||
| c9095e948b | |||
| ddb57e0120 | |||
| 9b851ce0e4 | |||
| f34cffb849 | |||
| 91994df910 | |||
| e84f334591 | |||
| ebf39263a6 | |||
| 77afe66aa6 | |||
| 788583ea23 | |||
| 4216b9ed6f | |||
| 54e639ecc3 | |||
| c980ced2fb | |||
| 9ca15a198f | |||
| 5c87c2b069 | |||
| 6c42ae9518 | |||
| f33492ef8e | |||
| ffcae79156 | |||
| a59a87374b | |||
| 88adfbdf89 | |||
| 0f717e81c0 | |||
| ede5958a46 | |||
| 0b3b160e87 | |||
| 12c6efc0fe | |||
| 0e930f7ae1 | |||
| 289f55dc19 | 
							
								
								
									
										2
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| [submodule "assets/jam"] | [submodule "assets/jam"] | ||||||
| 	path = assets/jam | 	path = assets/jam | ||||||
| 	url = https://github.com/michaelampr/jam.git | 	url = https://github.com/BBaoVanC/jam.git | ||||||
| 	branch = master | 	branch = master | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ comments: true | |||||||
| draft: true | draft: true | ||||||
|  |  | ||||||
| authors: | authors: | ||||||
|   - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} |   - {{ with .Site.Params.author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||||
|  |  | ||||||
| categories: | categories: | ||||||
|   - archetype-stuff |   - archetype-stuff | ||||||
| @@ -24,7 +24,17 @@ series: | |||||||
| resources: | resources: | ||||||
|   - name: feature |   - name: feature | ||||||
|     src: something.webp |     src: something.webp | ||||||
|     title: Some image (image format can be anything; webp is just an example) |     title: >- | ||||||
|  |       Fallback title if one is not provided when calling figure shortcode with | ||||||
|  |       this listed as the src | ||||||
|  |     params: | ||||||
|  |       alt: Write an accessible description of this image. Don't over-write. | ||||||
|  |  | ||||||
|  |   - src: demonstration.webp | ||||||
|  |     params: | ||||||
|  |       alt: >- | ||||||
|  |         Annotate an image without giving it an explicit name (the filename is | ||||||
|  |         simply used as the `name` instead). | ||||||
|  |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ toc: true | |||||||
| comments: false | comments: false | ||||||
|  |  | ||||||
| authors: | authors: | ||||||
|   - {{ with .Site.Author.name }}{{ . }}{{ else }}John Doe{{ end }} |   - {{ with .Site.params.author.name }}{{ . }}{{ else }}John Doe{{ end }} | ||||||
|  |  | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   | |||||||
| @@ -158,66 +158,38 @@ pre > code { | |||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
| /* Basic elements {{{ */ | /* Common distances/sizes {{{ */ | ||||||
|  |  | ||||||
| html { | :root { | ||||||
|   scroll-behavior: smooth; |   --page-margin: 16px; | ||||||
| } | } | ||||||
|  |  | ||||||
| @media screen and (prefers-reduced-motion: reduce) { | /* }}} */ | ||||||
|     html { |  | ||||||
|         scroll-behavior: auto; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| body { |  | ||||||
|   background-color: var(--background-0); |  | ||||||
|   color: var(--text-0); |  | ||||||
|   overflow-wrap: break-word; |  | ||||||
|   margin: 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .center-body { | /* Common elements {{{ */ | ||||||
|   margin: 20px; |  | ||||||
|   max-width: 720px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| @media (min-width: 760px) { |  | ||||||
|   .center-body { |  | ||||||
|     margin: 20px auto; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| footer { |  | ||||||
|   margin-top: 20px; |  | ||||||
|   text-align: center; |  | ||||||
|   font-size: smaller; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| footer p { |  | ||||||
|   margin: 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| img, | img, | ||||||
| video { | video { | ||||||
|   max-width: 100%; |   max-width: 100%; | ||||||
| } | } | ||||||
|  |  | ||||||
| .post-media > figure.border img, | figure > .figure-media { | ||||||
| .post-media > figure.border video { |  | ||||||
|   padding: 5px; |   padding: 5px; | ||||||
|   border: 7px solid var(--figure-border); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| figure.border img, | figure > .figure-media.border { | ||||||
| figure.border video { |  | ||||||
|   padding: 5px; |  | ||||||
|   border: 2px solid var(--figure-border); |   border: 2px solid var(--figure-border); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .post-media > figure > .figure-media { | ||||||
|  |   border: 7px solid var(--figure-border); | ||||||
|  | } | ||||||
|  |  | ||||||
| figure { | figure { | ||||||
|   margin: auto; |   display: block; | ||||||
|   display: inline-block; |   text-align: center; | ||||||
|  |   margin: 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| figcaption { | figcaption { | ||||||
| @@ -245,39 +217,31 @@ hr { | |||||||
|   border: 1px solid var(--background-3); |   border: 1px solid var(--background-3); | ||||||
| } | } | ||||||
|  |  | ||||||
| @media (min-width: 720px) { | table.simple { | ||||||
|   .full-width-hr { |  | ||||||
|     /* see also: the related-posts section too */ |  | ||||||
|     margin-left: calc(-100vw / 2 + 760px / 2); |  | ||||||
|     margin-right: calc(-100vw / 2 + 760px / 2); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| table.markdown { |  | ||||||
|   border-collapse: collapse; |   border-collapse: collapse; | ||||||
|   border: 2px solid var(--text-1); |   border: 2px solid var(--text-1); | ||||||
| } | } | ||||||
|  |  | ||||||
| table.markdown thead { | table.simple thead { | ||||||
|   background-color: var(--background-2); |   background-color: var(--background-2); | ||||||
|   color: var(--text-2); |   color: var(--text-2); | ||||||
|   border-bottom: 2px solid var(--text-1); |   border-bottom: 2px solid var(--text-1); | ||||||
| } | } | ||||||
|  |  | ||||||
| table.markdown th, | table.simple th, | ||||||
| table.markdown td { | table.simple td { | ||||||
|   padding: 8px; |   padding: 8px; | ||||||
| } | } | ||||||
|  |  | ||||||
| table.markdown :is(th, td) + :is(th, td) { | table.simple :is(th, td) + :is(th, td) { | ||||||
|   border-left: 2px solid var(--text-1); |   border-left: 2px solid var(--text-1); | ||||||
| } | } | ||||||
|  |  | ||||||
| table.markdown tbody tr:nth-child(odd) { | table.simple tbody tr:nth-child(odd) { | ||||||
|   background-color: var(--background-0); |   background-color: var(--background-0); | ||||||
|   color: var(--text-0); |   color: var(--text-0); | ||||||
| } | } | ||||||
| table.markdown tbody tr:nth-child(even) { | table.simple tbody tr:nth-child(even) { | ||||||
|   background-color: var(--background-1); |   background-color: var(--background-1); | ||||||
|   color: var(--text-1); |   color: var(--text-1); | ||||||
| } | } | ||||||
| @@ -296,33 +260,90 @@ table.markdown tbody tr:nth-child(even) { | |||||||
|  |  | ||||||
| /* Icons */ | /* Icons */ | ||||||
| .icon { | .icon { | ||||||
|   width: 20px; |   width: 1em; | ||||||
|   height: 20px; |   height: 1em; | ||||||
|   color: var(--text-1); |   color: var(--text-1); | ||||||
|   text-align: center; |   text-align: center; | ||||||
|   display: inline; |   display: inline; | ||||||
|   vertical-align: middle; |   vertical-align: sub; | ||||||
| } | } | ||||||
|  |  | ||||||
| h1 svg.icon { | /* workarounds for some icons from jam-icons being non-square aspect ratio */ | ||||||
|   width: 30px; | .icon-code { | ||||||
|   height: 30px; |   width: 1.25em; | ||||||
| } | } | ||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
|  |  | ||||||
| /* Heading formatting (article section titles) {{{ */ | /* Baseof formatting {{{ */ | ||||||
|  |  | ||||||
| /* this is also used i.e. in page-title */ | html { | ||||||
| .heading-link { |   scroll-behavior: smooth; | ||||||
|   color: inherit; |  | ||||||
|   font-weight: bold; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| .heading-link svg { | @media screen and (prefers-reduced-motion: reduce) { | ||||||
|   width: 15px; |     html { | ||||||
|   height: 15px; |         scroll-behavior: auto; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | body { | ||||||
|  |   background-color: var(--background-0); | ||||||
|  |   color: var(--text-0); | ||||||
|  |   overflow-wrap: break-word; | ||||||
|  |   margin: 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* body-module types: | ||||||
|  |  * | ||||||
|  |  * full-width: no max-width, no margin from the sides of the page | ||||||
|  |  * full-padded: no max-width, but has margin from the left/right page edges | ||||||
|  |  * center: max-width 720px, centered when too large, padded when screen is narrow | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | .body-module--full-width, | ||||||
|  | .body-module--full-padded, | ||||||
|  | .body-module--center-wide { | ||||||
|  |   margin-block: var(--page-margin); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .body-module--full-width { | ||||||
|  |   margin-inline: 0; | ||||||
|  | } | ||||||
|  | .body-module-full-padded { | ||||||
|  |   margin-inline: var(--page-margin); | ||||||
|  | } | ||||||
|  | .body-module--center { | ||||||
|  |   margin-inline: auto; | ||||||
|  |   /* add the minimum margin here because we are using auto for its centering */ | ||||||
|  |   padding-inline: var(--page-margin); | ||||||
|  |   /* account for the padding being included in the element's calculated width */ | ||||||
|  |   max-width: calc(720px + 2 * var(--page-margin)); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | footer { | ||||||
|  |   margin-bottom: var(--page-margin); | ||||||
|  |   text-align: center; | ||||||
|  |   font-size: smaller; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | footer p { | ||||||
|  |   margin: 0; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #skip-to-main { | ||||||
|  |   position: absolute; | ||||||
|  |   padding: 8px; | ||||||
|  |   background-color: var(--text-0); | ||||||
|  |   color: var(--background-0); | ||||||
|  |   transform: translateY(-100%); | ||||||
|  | } | ||||||
|  | #skip-to-main:focus { | ||||||
|  |   transform: translateY(0%); | ||||||
|  | } | ||||||
|  | #main-content:target { | ||||||
|  |   animation: none; /* prevent it from turning yellow */ | ||||||
| } | } | ||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
| @@ -335,23 +356,30 @@ h1 svg.icon { | |||||||
|   flex-wrap: wrap; |   flex-wrap: wrap; | ||||||
|   justify-content: space-between; |   justify-content: space-between; | ||||||
|   background-color: var(--background-1); |   background-color: var(--background-1); | ||||||
|  |   /* padding can't be here because then the first navbar element will be shifted too far over, | ||||||
|  |    * or it will need its hover background to be chopped off on the left */ | ||||||
| } | } | ||||||
|  |  | ||||||
| .header { | .brand { | ||||||
|   flex-grow: 1; |   flex-grow: 1; | ||||||
|   margin: 8px 16px; |   margin: 8px var(--page-margin); | ||||||
|   font-size: 1.25em; |   font-size: 1.25em; | ||||||
|   display: flex; |   display: flex; | ||||||
|   align-items: center; |   align-items: center; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .brand a { | ||||||
|  |   color: inherit; | ||||||
|  |   font-weight: bold; | ||||||
|  | } | ||||||
|  |  | ||||||
| .navbar { | .navbar { | ||||||
|   display: flex; |   display: flex; | ||||||
|   flex-wrap: wrap; |   flex-wrap: wrap; | ||||||
| } | } | ||||||
|  |  | ||||||
| .navbar-item { | .navbar-item { | ||||||
|   padding: 12px 16px; |   padding: 12px var(--page-margin); | ||||||
|   white-space: nowrap; |   white-space: nowrap; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -366,29 +394,8 @@ h1 svg.icon { | |||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
| /* Back to top {{{ */ |  | ||||||
| #top { |  | ||||||
|   font-size: 0; |  | ||||||
| } |  | ||||||
| #back-to-top { |  | ||||||
|   position: fixed; |  | ||||||
|   float: right; |  | ||||||
|   bottom: 25px; |  | ||||||
|   right: 25px; |  | ||||||
|   background-color: var(--background-1); |  | ||||||
|   color: var(--text-1); |  | ||||||
|   border-radius: 100%; |  | ||||||
|   padding: 12px; |  | ||||||
|   display: none; |  | ||||||
| } |  | ||||||
| /* }}} */ |  | ||||||
|  |  | ||||||
| /* Breadcrumb navigation {{{ */ | /* Breadcrumb navigation {{{ */ | ||||||
|  |  | ||||||
| .breadcrumb { |  | ||||||
|   margin: 20px 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .breadcrumb ul { | .breadcrumb ul { | ||||||
|   margin: 0; |   margin: 0; | ||||||
|   padding: 0; |   padding: 0; | ||||||
| @@ -494,6 +501,10 @@ h1 svg.icon { | |||||||
|   margin-bottom: 10px; |   margin-bottom: 10px; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .page-title a { | ||||||
|  |   color: inherit; | ||||||
|  | } | ||||||
|  |  | ||||||
| .page-title h1 { | .page-title h1 { | ||||||
|   margin: 0; |   margin: 0; | ||||||
| } | } | ||||||
| @@ -511,6 +522,14 @@ h1 svg.icon { | |||||||
|   margin-top: 10px; |   margin-top: 10px; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | :is( | ||||||
|  |   .page-metadata-section:is(.categories, .tags, .series), | ||||||
|  |   .page-metadata-item.authors | ||||||
|  | ) > a:not(:last-child):after { | ||||||
|  |   color: var(--text-0); | ||||||
|  |   content: ","; | ||||||
|  | } | ||||||
|  |  | ||||||
| .post-media { | .post-media { | ||||||
|   margin-top: 15px; |   margin-top: 15px; | ||||||
| } | } | ||||||
| @@ -637,14 +656,10 @@ h1 svg.icon { | |||||||
|   margin-bottom: 5px; |   margin-bottom: 5px; | ||||||
| } | } | ||||||
|  |  | ||||||
| .view-section { |  | ||||||
|   margin-top: 5px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
|  |  | ||||||
| /* Content (single) formatting {{{ */ | /* Components exclusive to content/single pages {{{ */ | ||||||
|  |  | ||||||
| .series-box { | .series-box { | ||||||
|   background-color: var(--background-1); |   background-color: var(--background-1); | ||||||
| @@ -682,6 +697,7 @@ h1 svg.icon { | |||||||
|   display: flex; |   display: flex; | ||||||
|   gap: 8px; |   gap: 8px; | ||||||
|   justify-content: center; |   justify-content: center; | ||||||
|  |   font-size: 32px; | ||||||
| } | } | ||||||
|  |  | ||||||
| .share-buttons a { | .share-buttons a { | ||||||
| @@ -696,8 +712,7 @@ h1 svg.icon { | |||||||
| } | } | ||||||
|  |  | ||||||
| .share-buttons svg { | .share-buttons svg { | ||||||
|   width: 32px; |   display: block; | ||||||
|   height: 32px; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| /* https://stackoverflow.com/a/72073682/19003757 */ | /* https://stackoverflow.com/a/72073682/19003757 */ | ||||||
| @@ -708,19 +723,6 @@ h1 svg.icon { | |||||||
| } | } | ||||||
| */ | */ | ||||||
|  |  | ||||||
| /* See also formating */ |  | ||||||
| .see-also { |  | ||||||
|   background-color: var(--background-1); |  | ||||||
|   color: var(--text-1); |  | ||||||
|   padding: 8px 12px; |  | ||||||
|   border-radius: 8px; |  | ||||||
|   margin: 10px 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .see-also p { |  | ||||||
|   margin: 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| /* Previous and next page buttons {{{ */ | /* Previous and next page buttons {{{ */ | ||||||
|  |  | ||||||
| .prevnext { | .prevnext { | ||||||
| @@ -771,6 +773,45 @@ h1 svg.icon { | |||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
|  | /* Related posts section {{{ */ | ||||||
|  |  | ||||||
|  | /* set the margins on the contents instead of the parent .related-posts | ||||||
|  |  * so that the posts in the list clip off the edge of the screen, | ||||||
|  |  * which makes a more obvious indicator that it's scrollable | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | .related-posts > hr, | ||||||
|  | .related-posts > h1 { | ||||||
|  |   margin: var(--page-margin); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .related-posts .page { | ||||||
|  |   min-width: 300px; | ||||||
|  |   max-width: 300px; | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .related-posts .page:first-child { | ||||||
|  |   margin-left: var(--page-margin); | ||||||
|  | } | ||||||
|  | .related-posts .page:last-child { | ||||||
|  |   margin-right: var(--page-margin); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .related-posts .page-list { | ||||||
|  |   display: flex; | ||||||
|  |   flex-direction: row; | ||||||
|  |   gap: 20px; | ||||||
|  |   overflow-x: auto; | ||||||
|  |   margin-bottom: var(--page-margin); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* }}} */ | ||||||
|  |  | ||||||
|  | /* }}} */ | ||||||
|  |  | ||||||
|  | /* Content components (can appear both in single and list pages) {{{ */ | ||||||
|  |  | ||||||
| /* Code & code blocks {{{ */ | /* Code & code blocks {{{ */ | ||||||
| .code-block { | .code-block { | ||||||
|   display: flex; |   display: flex; | ||||||
| @@ -787,10 +828,13 @@ h1 svg.icon { | |||||||
|   padding: 4px 8px; |   padding: 4px 8px; | ||||||
|   border-top-left-radius: 8px; |   border-top-left-radius: 8px; | ||||||
|   border-top-right-radius: 8px; |   border-top-right-radius: 8px; | ||||||
|  |   height: 2em; | ||||||
|  | } | ||||||
|  | .code-block > .code-header > * { | ||||||
|  |   margin: auto 0; | ||||||
| } | } | ||||||
| .code-block > .code-header > .code-type { | .code-block > .code-header > .code-type { | ||||||
|   border-top-left-radius: 8px; |   border-top-left-radius: 8px; | ||||||
|   margin: auto 0; |  | ||||||
| } | } | ||||||
| /* TODO: make the code copy button prettier */ | /* TODO: make the code copy button prettier */ | ||||||
| .code-block > .code-header > .code-copy-button { | .code-block > .code-header > .code-copy-button { | ||||||
| @@ -884,65 +928,23 @@ aside.quote { | |||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
| /* }}} */ | /* See also formating */ | ||||||
|  | .see-also { | ||||||
| /* Related posts section {{{ */ |   background-color: var(--background-1); | ||||||
|  |   color: var(--text-1); | ||||||
| .full-width-page-list { |   padding: 8px 12px; | ||||||
|   /* make left/right 0 margin so it takes up full width */ |   border-radius: 8px; | ||||||
|   margin: 25px 0; |   margin: 10px 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| .full-width-page-list > hr, | .see-also p { | ||||||
| .full-width-page-list > h1 { |   margin: 0; | ||||||
|   margin-left: 20px; |  | ||||||
|   margin-right: 20px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .full-width-page-list .page { |  | ||||||
|   min-width: 300px; |  | ||||||
|   max-width: 300px; |  | ||||||
|  |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .full-width-page-list .page:first-child { |  | ||||||
|   margin-left: 20px; |  | ||||||
| } |  | ||||||
| .full-width-page-list .page:last-child { |  | ||||||
|   margin-right: 20px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| @media (max-width: 720px) { |  | ||||||
|   /* when the screen is smaller than max size, make sure that the .related div |  | ||||||
|    * still reaches the screen edge. then if the posts overflow and require |  | ||||||
|    * scrolling, you can see it cut off on the side of your phone screen |  | ||||||
|    */ |  | ||||||
|   .full-width-page-list { |  | ||||||
|     margin-left: -20px; |  | ||||||
|     margin-right: -20px; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| @media (min-width: 720px) { |  | ||||||
|   .full-width-page-list { |  | ||||||
|     /* this makes it full width -- 720px max-width on body it is exactly 720px |  | ||||||
|      * so .related takes up full width |  | ||||||
|      */ |  | ||||||
|     margin-left: calc(-100vw / 2 + 720px / 2); |  | ||||||
|     margin-right: calc(-100vw / 2 + 720px / 2); |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .full-width-page-list .page-list { |  | ||||||
|   display: flex; |  | ||||||
|   flex-direction: row; |  | ||||||
|   gap: 20px; |  | ||||||
|   overflow-x: scroll; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /* @media specializations {{{ */ | /* @media specializations {{{ */ | ||||||
|  |  | ||||||
| /* Light mode */ | /* Light mode */ | ||||||
| @@ -956,12 +958,13 @@ aside.quote { | |||||||
| /* Print compatibility {{{ */ | /* Print compatibility {{{ */ | ||||||
| @media print { | @media print { | ||||||
|   .top > .navbar, |   .top > .navbar, | ||||||
|   .section-header-link, |   .content-heading-link, | ||||||
|   .post-meta-edit-history, |   .post-meta-edit-history, | ||||||
|  |   .post-meta-view-markdown, | ||||||
|  |   .code-copy-button, | ||||||
|   .prevnext, |   .prevnext, | ||||||
|   .share-buttons, |   .share-buttons, | ||||||
|   .related-posts, |   .related-posts { | ||||||
|   .latest-posts { |  | ||||||
|     display: none; |     display: none; | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -977,9 +980,10 @@ aside.quote { | |||||||
|     margin-left: 0; |     margin-left: 0; | ||||||
|     margin-right: 0; |     margin-right: 0; | ||||||
|   } |   } | ||||||
|   .center-body { |   .main-container { | ||||||
|     max-width: 100%; |     max-width: 100%; | ||||||
|     margin: 8px 0; |     margin: 8px 0; | ||||||
|  |     padding: 0; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   .breadcrumb { |   .breadcrumb { | ||||||
| @@ -999,10 +1003,6 @@ aside.quote { | |||||||
|   .table-of-contents.print { |   .table-of-contents.print { | ||||||
|     display: block; |     display: block; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   #back-to-top { |  | ||||||
|     display: none !important; |  | ||||||
|   } |  | ||||||
| } | } | ||||||
|  |  | ||||||
| /* }}} */ | /* }}} */ | ||||||
|   | |||||||
							
								
								
									
										132
									
								
								assets/css/comments.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								assets/css/comments.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,132 @@ | |||||||
|  | .comments > h2 { | ||||||
|  |     margin-bottom: 0; | ||||||
|  | } | ||||||
|  | .comments .email-address-notice { | ||||||
|  |     margin: 0; | ||||||
|  |     font-size: smaller; | ||||||
|  | } | ||||||
|  | .comments .enable-javascript-notice { | ||||||
|  |     font-style: italic; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | /* Isso styling */ | ||||||
|  | h4.isso-thread-heading { | ||||||
|  |     color: var(--text-0); | ||||||
|  |     margin-bottom: 8px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-comment:not(:first-of-type), | ||||||
|  | .isso-follow-up .isso-comment { | ||||||
|  |     border-color: var(--background-3); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-author, | ||||||
|  | .isso-page-author-suffix, | ||||||
|  | .isso-comment-footer, | ||||||
|  | .isso-comment-footer .isso-votes { | ||||||
|  |     color: var(--text-gray-0); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-comment-header .isso-spacer, | ||||||
|  | .isso-spacer:hover, | ||||||
|  | .isso-permalink, | ||||||
|  | .isso-permalink:hover { | ||||||
|  |     color: var(--text-gray-1) !important; | ||||||
|  | } | ||||||
|  | a.isso-author:hover, | ||||||
|  | .isso-permalink:hover { | ||||||
|  |     text-decoration: underline !important; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-comment.isso-is-page-author > .isso-text-wrapper { | ||||||
|  |     background-color: var(--background-accent-1); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-feedlink:hover, | ||||||
|  | .isso-reply { | ||||||
|  |     color: var(--link-0) !important; | ||||||
|  |     text-shadow: unset !important; | ||||||
|  | } | ||||||
|  | .isso-reply:hover { | ||||||
|  |     text-decoration: underline; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-text pre, | ||||||
|  | .isso-text :not(pre) > code { | ||||||
|  |     background-color: var(--background-2); | ||||||
|  |     border: none; | ||||||
|  |     padding: 2px 4px; | ||||||
|  |     border-radius: 5px; | ||||||
|  |     /* thanks isso.css for setting this to 85% for whatever reason */ | ||||||
|  |     font-size: 0.75em; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-input-wrapper input, | ||||||
|  | .isso-post-action > input, | ||||||
|  | .isso-textarea, | ||||||
|  | .isso-preview { | ||||||
|  |     color: var(--text-1); | ||||||
|  |     background-color: var(--background-1); | ||||||
|  |     border-color: var(--background-2) !important; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-input-wrapper input:focus, | ||||||
|  | .isso-textarea:focus { | ||||||
|  |     border-color: var(--background-3) !important; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-post-action > input:hover { | ||||||
|  |     background-color: var(--background-2); | ||||||
|  | } | ||||||
|  | .isso-post-action > input:focus, | ||||||
|  | .isso-post-action > input:active { | ||||||
|  |     background-color: var(--background-3); | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-textarea { | ||||||
|  |     margin-bottom: 4px; | ||||||
|  | } | ||||||
|  | .isso-input-wrapper { | ||||||
|  |     display: inline-flex; | ||||||
|  |     flex-direction: column; | ||||||
|  |     margin-right: 4px; | ||||||
|  |     max-width: 25%; | ||||||
|  | } | ||||||
|  | .isso-input-wrapper input { | ||||||
|  |     order: 1; | ||||||
|  | } | ||||||
|  | .isso-input-wrapper label { | ||||||
|  |     order: 2; | ||||||
|  |     font-size: small; | ||||||
|  | } | ||||||
|  | .isso-post-action { | ||||||
|  |     margin-left: 4px; | ||||||
|  |     margin-top: 0; | ||||||
|  | } | ||||||
|  | @media screen and (max-width: 600px) { | ||||||
|  |     .isso-input-wrapper { | ||||||
|  |         display: block; | ||||||
|  |         max-width: 100%; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @media print { | ||||||
|  |     .comments { | ||||||
|  |         break-before: always; | ||||||
|  |     } | ||||||
|  |     .isso-comment { | ||||||
|  |         max-width: unset; | ||||||
|  |     } | ||||||
|  |     .isso-text-wrapper { | ||||||
|  |         break-inside: avoid; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     .isso-postbox, | ||||||
|  |     .isso-feedlink { | ||||||
|  |         display: none; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .isso-target { | ||||||
|  |     animation: target-fade 10s ease-out; /* defined in bobatheme */ | ||||||
|  | } | ||||||
							
								
								
									
										4
									
								
								assets/css/noscript.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								assets/css/noscript.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | .page-meta-comments-counter, | ||||||
|  | .code-copy-button { | ||||||
|  |   display: none; | ||||||
|  | } | ||||||
							
								
								
									
										9
									
								
								assets/css/search.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								assets/css/search.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | /* put on body so it overrides the defaults set in :root by pagefind.css */ | ||||||
|  | body { | ||||||
|  |     /* https://pagefind.app/docs/ui-usage/#customising-the-styles */ | ||||||
|  |     --pagefind-ui-background: var(--background-1); | ||||||
|  |     --pagefind-ui-border: var(--background-2); | ||||||
|  |     --pagefind-ui-primary: var(--link-0); | ||||||
|  |     --pagefind-ui-tag: var(--background-1); | ||||||
|  |     --pagefind-ui-text: var(--text-1); | ||||||
|  | } | ||||||
| @@ -5,16 +5,17 @@ | |||||||
|     color: black; |     color: black; | ||||||
|   } |   } | ||||||
|  |  | ||||||
| /* Background */ .bg { background-color: #f8f8f8 } | /* Background */ .bg { background-color: #f8f8f8; } | ||||||
| /* PreWrapper */ .chroma { background-color: #f8f8f8; } | /* PreWrapper */ .chroma { background-color: #f8f8f8; } | ||||||
| /* Other */ .chroma .x { color: #000000 } | /* Other */ .chroma .x { color: #000000 } | ||||||
| /* Error */ .chroma .err { color: #a40000 } | /* Error */ .chroma .err { color: #a40000 } | ||||||
| /* CodeLine */ .chroma .cl {  } | /* CodeLine */ .chroma .cl {  } | ||||||
|  | /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } | ||||||
| /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | ||||||
| /* LineHighlight */ .chroma .hl { background-color: #ffffcc } | /* LineHighlight */ .chroma .hl { background-color: #dfdfdf } | ||||||
| /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | /* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; 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 } | /* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||||||
| /* Line */ .chroma .line { display: flex; } | /* Line */ .chroma .line { display: flex; } | ||||||
| /* Keyword */ .chroma .k { color: #204a87; font-weight: bold } | /* Keyword */ .chroma .k { color: #204a87; font-weight: bold } | ||||||
| /* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold } | /* KeywordConstant */ .chroma .kc { color: #204a87; font-weight: bold } | ||||||
|   | |||||||
| @@ -1,15 +1,16 @@ | |||||||
| /* native style */ | /* native style */ | ||||||
|  |  | ||||||
| /* Background */ .bg { color: #d0d0d0; background-color: #202020 } | /* Background */ .bg { color: #d0d0d0; background-color: #202020; } | ||||||
| /* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; } | /* PreWrapper */ .chroma { color: #d0d0d0; background-color: #202020; } | ||||||
| /* Other */ .chroma .x {  } | /* Other */ .chroma .x {  } | ||||||
| /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 } | /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 } | ||||||
| /* CodeLine */ .chroma .cl {  } | /* CodeLine */ .chroma .cl {  } | ||||||
|  | /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } | ||||||
| /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||||||
| /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } | ||||||
| /* LineHighlight */ .chroma .hl { background-color: #ffffcc } | /* LineHighlight */ .chroma .hl { background-color: #363636 } | ||||||
| /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | /* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; 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 } | /* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #686868 } | ||||||
| /* Line */ .chroma .line { display: flex; } | /* Line */ .chroma .line { display: flex; } | ||||||
| /* Keyword */ .chroma .k { color: #6ab825; font-weight: bold } | /* Keyword */ .chroma .k { color: #6ab825; font-weight: bold } | ||||||
| /* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold } | /* KeywordConstant */ .chroma .kc { color: #6ab825; font-weight: bold } | ||||||
|   | |||||||
| @@ -1,13 +1,3 @@ | |||||||
| // back to top |  | ||||||
| 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"; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| // code block copy to clipboard | // code block copy to clipboard | ||||||
| window.onload = () => { | window.onload = () => { | ||||||
|     document.querySelectorAll(".code-block").forEach(codeBlock => { |     document.querySelectorAll(".code-block").forEach(codeBlock => { | ||||||
|   | |||||||
| @@ -1,3 +1,3 @@ | |||||||
| function share_event(service) { | function share_event(service) { | ||||||
|     // this function does nothing by default |     plausible("Share", {props: {Network: service}}); | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,63 +0,0 @@ | |||||||
| baseURL: https://example.com |  | ||||||
| theme: bobatheme |  | ||||||
| defaultContentLanguage: en |  | ||||||
| copyright: '© 2021 bbaovanc <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>' |  | ||||||
| sectionPagesMenu: main |  | ||||||
| enableRobotsTXT: true |  | ||||||
| paginate: 5 |  | ||||||
| enableGitInfo: true |  | ||||||
|  |  | ||||||
| taxonomies: |  | ||||||
|   _merge: deep |  | ||||||
|  |  | ||||||
| author: |  | ||||||
|   name: bbaovanc |  | ||||||
|  |  | ||||||
| markup: # this just keeps the bobatheme markup styling |  | ||||||
|   _merge: deep |  | ||||||
|  |  | ||||||
| params: |  | ||||||
|   # these are for the OpenGraph/Twitter embeds in Hugo |  | ||||||
|   description: Example website for bobatheme |  | ||||||
|  |  | ||||||
|   # these are for favicons in bobatheme (disabled by default) |  | ||||||
|   # faviconSVG: favicon.svg |  | ||||||
|   # appleTouchPNG: apple-touch-icon.png |  | ||||||
|  |  | ||||||
|   # show reading time (enabled by default) |  | ||||||
|   # readingtime: true |  | ||||||
|  |  | ||||||
|   # used for "View source" (unset by default) |  | ||||||
|   # gitFileURL: https://github.com/BBaoVanC/bobatheme/blob/master |  | ||||||
|   # gitFileIcon: github-circle |  | ||||||
|   # gitHistoryURL: https://github.com/BBaoVanC/bobatheme/commits/master |  | ||||||
|  |  | ||||||
|   # display a "Latest Posts" section on the homepage below its content |  | ||||||
|   homepageLatestPosts: true |  | ||||||
|  |  | ||||||
|   # social media share icons |  | ||||||
|   # shareButtons: |  | ||||||
|   #   twitter: true |  | ||||||
|   #   facebook: true |  | ||||||
|   #   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. |  | ||||||
|  |  | ||||||
|  |  | ||||||
| # see https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings |  | ||||||
| # you probably want to keep this default |  | ||||||
| privacy: |  | ||||||
|   _merge: deep |  | ||||||
|  |  | ||||||
| languages: |  | ||||||
|   en: |  | ||||||
|     languageName: English |  | ||||||
|     title: Example Website |  | ||||||
|     weight: 1 |  | ||||||
| @@ -2,6 +2,12 @@ markup: | |||||||
|   highlight: |   highlight: | ||||||
|     noClasses: false |     noClasses: false | ||||||
|     lineNos: true |     lineNos: true | ||||||
|  |   goldmark: | ||||||
|  |     parser: | ||||||
|  |       attribute: | ||||||
|  |         block: true | ||||||
|  |         # this is enabled by default already | ||||||
|  |         #title: true | ||||||
| 
 | 
 | ||||||
| params: | params: | ||||||
|   readingtime: true |   readingtime: true | ||||||
| @@ -12,11 +18,20 @@ taxonomies: | |||||||
|   author: authors |   author: authors | ||||||
|   series: series |   series: series | ||||||
| 
 | 
 | ||||||
|  | outputs: | ||||||
|  |   page: | ||||||
|  |     - html | ||||||
|  |     - markdown | ||||||
|  | 
 | ||||||
|  | outputFormats: | ||||||
|  |   markdown: | ||||||
|  |     ugly: true | ||||||
|  | 
 | ||||||
| privacy: | privacy: | ||||||
|   googleAnalytics: |   googleAnalytics: | ||||||
|     disable: true |     disable: true | ||||||
| 
 | 
 | ||||||
|   twitter: |   x: | ||||||
|     enableDNT: true |     enableDNT: true | ||||||
| 
 | 
 | ||||||
|   vimeo: |   vimeo: | ||||||
| @@ -7,6 +7,8 @@ table_of_contents: | |||||||
|  |  | ||||||
| browser_no_video_support: | browser_no_video_support: | ||||||
|   other: "Your browser does not support video." |   other: "Your browser does not support video." | ||||||
|  | browser_no_video_support_link: | ||||||
|  |   other: "Click here to download it instead." | ||||||
|  |  | ||||||
| latest_posts: | latest_posts: | ||||||
|   other: "Latest Posts" |   other: "Latest Posts" | ||||||
| @@ -30,6 +32,9 @@ readingtime: | |||||||
| edit_history: | edit_history: | ||||||
|   other: "Edit history" |   other: "Edit history" | ||||||
|  |  | ||||||
|  | view_markdown: | ||||||
|  |   other: "View raw" | ||||||
|  |  | ||||||
|  |  | ||||||
| # Post count | # Post count | ||||||
| no_posts: | no_posts: | ||||||
| @@ -67,6 +72,9 @@ aria_rss_link: | |||||||
| aria_post_meta_edit_history: | aria_post_meta_edit_history: | ||||||
|   other: "link to page edit history" |   other: "link to page edit history" | ||||||
|  |  | ||||||
|  | aria_post_meta_view_markdown: | ||||||
|  |   other: "link to view raw markdown code of page" | ||||||
|  |  | ||||||
| aria_post_meta_categories: | aria_post_meta_categories: | ||||||
|   other: "categories" |   other: "categories" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,49 +0,0 @@ | |||||||
| {{ i18n "credit_comment" | safeHTML }} |  | ||||||
| <!DOCTYPE html> |  | ||||||
| <html lang="{{ .Language.Lang }}"> |  | ||||||
|     {{ partial "head.html" . }} |  | ||||||
|  |  | ||||||
|     <body> |  | ||||||
|         <a id="top" aria-hidden="true"></a> |  | ||||||
|  |  | ||||||
|         {{ partial "top.html" . }} |  | ||||||
|  |  | ||||||
|         <div class="center-body"> |  | ||||||
|  |  | ||||||
|             {{ if not .IsHome }} |  | ||||||
|                 {{ partial "breadcrumb.html" . }} |  | ||||||
|             {{ 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 }} |  | ||||||
|                 <footer> |  | ||||||
|                     {{ with .Site.Copyright }} |  | ||||||
|                         <p>{{ . | safeHTML }}</p> |  | ||||||
|                     {{ end }} |  | ||||||
|  |  | ||||||
|                     {{ 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> |  | ||||||
|  |  | ||||||
|         </div> |  | ||||||
|     </body> |  | ||||||
|  |  | ||||||
| </html> |  | ||||||
| @@ -1,89 +0,0 @@ | |||||||
| {{ define "main" }} |  | ||||||
|     <div class="page-title"> |  | ||||||
|         <h1> |  | ||||||
|             {{ .Title | markdownify }} |  | ||||||
|             {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} |  | ||||||
|         </h1> |  | ||||||
|     </div> |  | ||||||
|  |  | ||||||
|     {{ partial "page-metadata/post-full.html" . }} |  | ||||||
|     {{ partial "series-box.html" . }} |  | ||||||
|  |  | ||||||
|     {{ if .Params.Toc }} |  | ||||||
|         <div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}"> |  | ||||||
|             <details> |  | ||||||
|                 <summary>{{ i18n "table_of_contents" }}</summary> |  | ||||||
|                 {{ .TableOfContents }} |  | ||||||
|             </details> |  | ||||||
|         </div> |  | ||||||
|         <div class="table-of-contents print"> |  | ||||||
|             {{ i18n "table_of_contents" }} |  | ||||||
|             {{ .TableOfContents }} |  | ||||||
|         </div> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ with .Resources.GetMatch "feature" }} |  | ||||||
|         <div class="post-media"> |  | ||||||
|             {{ partial "figure.html" (dict "src" .) }} |  | ||||||
|         </div> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     <article class="post-content"> |  | ||||||
|         {{ .Content }} |  | ||||||
|     </article> |  | ||||||
|  |  | ||||||
|     {{ partial "series-box.html" . }} |  | ||||||
|  |  | ||||||
|     {{ if or .NextInSection .PrevInSection }} |  | ||||||
|         <div class="prevnext"> |  | ||||||
|             {{ with .NextInSection }} |  | ||||||
|                 <a class="prev" href="{{ .Permalink }}"> |  | ||||||
|                     <div class="prev-caption"> |  | ||||||
|                         ← {{ i18n "newer_post" }} |  | ||||||
|                     </div> |  | ||||||
|                     <div class="prev-post"> |  | ||||||
|                         {{ .Title | markdownify }} |  | ||||||
|                     </div> |  | ||||||
|                 </a> |  | ||||||
|             {{ else }} |  | ||||||
|                 <div class="prev"></div> |  | ||||||
|             {{ end }} |  | ||||||
|  |  | ||||||
|             {{ with .PrevInSection }} |  | ||||||
|                 <a class="next" href="{{ .Permalink }}"> |  | ||||||
|                     <div class="next-caption"> |  | ||||||
|                         {{ i18n "older_post" }} → |  | ||||||
|                     </div> |  | ||||||
|                     <div class="next-post"> |  | ||||||
|                         {{ .Title | markdownify }} |  | ||||||
|                     </div> |  | ||||||
|                 </a> |  | ||||||
|             {{ else }} |  | ||||||
|                 <div class="next"></div> |  | ||||||
|             {{ end }} |  | ||||||
|         </div> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if .Site.Params.shareButtons }} |  | ||||||
|         {{ partial "share.html" . }} |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if .Params.comments }} |  | ||||||
|         <div class="comments"> |  | ||||||
|             {{ partial "comments.html" . }} |  | ||||||
|         </div> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ $related := .Site.RegularPages.Related . | first 10 }} |  | ||||||
|     {{ with $related }} |  | ||||||
|         <div class="related-posts full-width-page-list"> |  | ||||||
|             <hr> |  | ||||||
|             <h1>{{ i18n "related_posts" }}</h1> |  | ||||||
|             {{ partial "page-list.html" . }} |  | ||||||
|         </div> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if .Site.Params.latestPostsOnContent }} |  | ||||||
|         {{ partialCached "latest-posts.html" . }} |  | ||||||
|     {{ end }} |  | ||||||
| {{ end }} |  | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-heading"> | <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-heading"> | ||||||
|     {{ .Text | safeHTML }} |     {{ .Text | safeHTML }} | ||||||
|     <a class="heading-link" href="#{{ .Anchor | safeURL }}"> |     <a class="content-heading-link" href="#{{ .Anchor | safeURL }}"> | ||||||
|         <span aria-label="{{ i18n "aria_heading_link" }}"> |         <span aria-label="{{ i18n "aria_heading_link" }}"> | ||||||
|             {{ partial "icon.html" "link" }} |             {{ partial "icon.html" "link" }} | ||||||
|         </span> |         </span> | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| <nav class="breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}"> | <nav class="body-module--center breadcrumb" aria-label="{{ i18n "aria_breadcrumbnav" }}"> | ||||||
|     <ul> |     <ul> | ||||||
|         {{ template "breadcrumbnav" (dict "p1" . "p2" .) }} |         {{ template "breadcrumbnav" (dict "p1" . "p2" .) }} | ||||||
|     </ul> |     </ul> | ||||||
							
								
								
									
										20
									
								
								layouts/_partials/comments.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								layouts/_partials/comments.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | {{/* put comments CSS here instead of in <head> so that it doesn't get | ||||||
|  |    * loaded unnecessarily on regular pages | ||||||
|  |    */}} | ||||||
|  | {{ with resources.Get "css/comments.css" | fingerprint "sha512" }} | ||||||
|  |     <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
|  | <h2>Comments</h2> | ||||||
|  | <p class="email-address-notice"> | ||||||
|  |     If you provide an email address, you can enable notifications for | ||||||
|  |     replies to your comment. It will not be shown publicly. | ||||||
|  | </p> | ||||||
|  |  | ||||||
|  | <noscript> | ||||||
|  |     <p class="enable-javascript-notice"> | ||||||
|  |         Enable JavaScript to see the comment section. | ||||||
|  |     </p> | ||||||
|  | </noscript> | ||||||
|  |  | ||||||
|  | <section id="isso-thread" data-title="{{ .Title }}"></section> | ||||||
							
								
								
									
										23
									
								
								layouts/_partials/embed-resource.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								layouts/_partials/embed-resource.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | {{ if eq .ResourceType "image" }} | ||||||
|  |     {{/* TODO: figure out whether loading="lazy" should be set because MDN | ||||||
|  |        *       claims that images won't work with JS disabled since it would | ||||||
|  |        *       make tracking possible, but my experience says otherwise | ||||||
|  |        */}} | ||||||
|  |     <img class="figure-media" src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} /> | ||||||
|  | {{ else if eq .ResourceType "video" }} | ||||||
|  |     <video class="figure-media" controls preload="metadata"> | ||||||
|  |         {{ with .Params.alt }} | ||||||
|  |             {{ warnf "video does not support alt text, '%s'" . }} | ||||||
|  |         {{ end }} | ||||||
|  |         <source src="{{ .Permalink }}" /> | ||||||
|  |         {{ i18n "browser_no_video_support" }} | ||||||
|  |         <a href="{{ .Permalink }}" target="_blank" rel="noopener"> | ||||||
|  |             {{ i18n "browser_no_video_support_link" }} | ||||||
|  |         </a> | ||||||
|  |     </video> | ||||||
|  | {{ else }} | ||||||
|  |     {{/* TODO: could consider implementing more types, listed at: | ||||||
|  |        * https://www.iana.org/assignments/media-types/media-types.xhtml | ||||||
|  |        */}} | ||||||
|  |     {{ errorf "Handling %q resource not supported" .ResourceType }} | ||||||
|  | {{ end }} | ||||||
							
								
								
									
										10
									
								
								layouts/_partials/feature-figure.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								layouts/_partials/feature-figure.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | {{ with .Resources.Get "feature" }} | ||||||
|  |     <div class="post-media"> | ||||||
|  |         <figure> | ||||||
|  |             {{ partial "embed-resource.html" . }} | ||||||
|  |             {{ with .Title }} | ||||||
|  |                 <figcaption>{{ . | markdownify }}</figcaption> | ||||||
|  |             {{ end }} | ||||||
|  |         </figure> | ||||||
|  |     </div> | ||||||
|  | {{ end }} | ||||||
							
								
								
									
										106
									
								
								layouts/_partials/head.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								layouts/_partials/head.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,106 @@ | |||||||
|  | <head> | ||||||
|  |     <meta charset="UTF-8"> | ||||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||||
|  |     {{ hugo.Generator }} | ||||||
|  |  | ||||||
|  |     {{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }} | ||||||
|  |         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ with resources.Get "css/noscript.css" | fingerprint "sha512" }} | ||||||
|  |         <noscript> | ||||||
|  |             <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||||
|  |         </noscript> | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ with resources.Get "css/syntax.css" | fingerprint "sha512" }} | ||||||
|  |         <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" media="print" onload="this.media='all'"> | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ with resources.Get "js/bobatheme.js" | fingerprint "sha512" }} | ||||||
|  |         <script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ if not hugo.IsServer }} | ||||||
|  |         <script defer data-domain="bbaovanc.com" src="https://plausible.bbaovanc.com/js/bobalytics.outbound-links.js"></script> | ||||||
|  |         <script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script> | ||||||
|  |         {{ with resources.Get "js/share-event.js" | fingerprint "sha512" }} | ||||||
|  |             <script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> | ||||||
|  |         {{ end }} | ||||||
|  |     {{ end }} | ||||||
|  |     {{ $isso_url := .Permalink }} | ||||||
|  |     {{ if .IsTranslated }} | ||||||
|  |         {{ with index .AllTranslations 0 }} | ||||||
|  |             {{ $isso_url = .Permalink }} | ||||||
|  |         {{ end }} | ||||||
|  |     {{ end }} | ||||||
|  |     <script defer src="https://isso.bbaovanc.com/js/embed.min.js" | ||||||
|  |             data-isso-id="{{ $isso_url }}" | ||||||
|  |             data-isso-default-lang="{{ .Language.Lang }}" | ||||||
|  |             data-isso-css="true" | ||||||
|  |             data-isso-max-comments-top="inf" | ||||||
|  |             data-isso-max-comments-nested="inf" | ||||||
|  |             data-isso-reveal-on-click="5" | ||||||
|  |             {{/* | ||||||
|  |             data-isso-avatar-bg="#111" | ||||||
|  |             data-isso-avatar-fg="#9abf88 #5698c4 #e279a3 #9163b6 ..." | ||||||
|  |             */}} | ||||||
|  |             data-isso-vote="true" | ||||||
|  |             {{/* | ||||||
|  |             data-isso-vote-levels="" | ||||||
|  |             */}} | ||||||
|  |             data-isso-feed="true" | ||||||
|  |             data-isso-require-email="false" | ||||||
|  |             data-isso-reply-notifications="true" | ||||||
|  |             data-isso-reply-notifications-default-enabled="true" | ||||||
|  |  | ||||||
|  |             {{ with (.GetTerms "authors") }} | ||||||
|  |                 {{ $authorHashes := slice }} | ||||||
|  |                 {{ range . }} | ||||||
|  |                     {{ with .Params.issoUserID }} | ||||||
|  |                         {{ $authorHashes = $authorHashes | append . }} | ||||||
|  |                     {{ end }} | ||||||
|  |                 {{ end }} | ||||||
|  |  | ||||||
|  |                 data-isso-page-author-hashes="{{ delimit $authorHashes "," }}" | ||||||
|  |             {{ end }} | ||||||
|  |             > | ||||||
|  |     </script> | ||||||
|  |  | ||||||
|  |     {{ if eq .Layout "search" }} | ||||||
|  |         {{ with resources.Get "css/search.css" | fingerprint "sha512" }} | ||||||
|  |             <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> | ||||||
|  |         {{ end }} | ||||||
|  |  | ||||||
|  |         <link rel="stylesheet" type="text/css" href="{{ absURL "pagefind/pagefind-ui.css" }}" crossorigin="anonymous"> | ||||||
|  |         <script src="{{ absURL "pagefind/pagefind-ui.js" }}" crossorigin="anonymous"></script> | ||||||
|  |         <script> | ||||||
|  |             window.addEventListener('DOMContentLoaded', (event) => { | ||||||
|  |                 new PagefindUI({ element: "#search-box", showSubResults: true }); | ||||||
|  |             }); | ||||||
|  |         </script> | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ with .Site.Params.faviconSVG }} | ||||||
|  |         <link rel="icon" href="{{ . | absURL }}" /> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ with .Site.Params.appleTouchPNG }} | ||||||
|  |         <link rel="apple-touch-icon" href="{{ . | absURL }}" /> | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     <title>{{ .Render "head_title" }}</title> | ||||||
|  |  | ||||||
|  |     {{ range .Site.Params.rel_me }} | ||||||
|  |         <link rel="me" href="{{ . }}" /> | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ partial "seo-tags/opengraph.html" . }} | ||||||
|  |     {{ partial "seo-tags/twitter-cards.html" . }} | ||||||
|  |     {{ partial "seo-tags/schema.html" . }} | ||||||
|  |     {{ partial "seo-tags/link.html" . }} | ||||||
|  |     {{ partial "seo-tags/author.html" . }} | ||||||
|  |  | ||||||
|  |     <meta name="language" content="{{ .Language.Lang }}"> | ||||||
|  |     <meta name="description" content="{{ (partial "seo-description.html" .) | plainify }}"> | ||||||
|  | </head> | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}} | {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}} | ||||||
| {{- $icon := $icon_resource.Content -}} | {{- $icon := $icon_resource.Content -}} | ||||||
| {{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}} | {{- $icon = replaceRE `<svg` (printf `<svg class="icon icon-%s"` .) $icon -}} | ||||||
| {{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}} | {{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}} | ||||||
| {{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}} | {{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}} | ||||||
| {{- $icon | safeHTML -}} | {{- $icon | safeHTML -}} | ||||||
							
								
								
									
										9
									
								
								layouts/_partials/page-metadata/item/authors.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								layouts/_partials/page-metadata/item/authors.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | {{ with .GetTerms "authors" }} | ||||||
|  |     <span class="page-metadata-item authors" aria-label="{{ i18n "aria_post_meta_authors" }}"> | ||||||
|  |         {{ partial "icon.html" "user-circle" }} | ||||||
|  |  | ||||||
|  |         {{ range . }} | ||||||
|  |             <a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a> | ||||||
|  |         {{ end }} | ||||||
|  |     </span> | ||||||
|  | {{ end }} | ||||||
| @@ -6,6 +6,8 @@ | |||||||
| 
 | 
 | ||||||
|     <div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}"> |     <div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}"> | ||||||
|         {{ partial "icon.html" "folder" }} |         {{ partial "icon.html" "folder" }} | ||||||
|         {{ delimit $categories ", " }} |         {{ range . }} | ||||||
|  |             <a href="{{ .Permalink }}" data-pagefind-filter="category">{{ .LinkTitle }}</a> | ||||||
|  |         {{ end }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -0,0 +1,8 @@ | |||||||
|  | <span class="page-metadata-item page-meta-comments-counter" aria-label="comments counter"> | ||||||
|  |     {{ partial "icon.html" "message" }} | ||||||
|  |     {{/* TODO: figure out if there's a nicer way to generate this URL | ||||||
|  |        * the current issue is that we can't use RelRef, since content view means that we don't | ||||||
|  |        * have access to the original page context | ||||||
|  |        */}} | ||||||
|  |     <a href="{{ .RelPermalink }}#isso-thread">comments</a> | ||||||
|  | </span> | ||||||
| @@ -1,11 +1,8 @@ | |||||||
| {{ with (.GetTerms "series") }} | {{ with (.GetTerms "series") }} | ||||||
|     {{ $series := slice }} |  | ||||||
|     {{ range . }} |  | ||||||
|         {{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }} |  | ||||||
|     {{ end }} |  | ||||||
| 
 |  | ||||||
|     <div class="page-metadata-section 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" }} |         {{ partial "icon.html" "files" }} | ||||||
|         {{ delimit $series ", " }} |         {{ range . }} | ||||||
|  |             <a href="{{ .Permalink }}" data-pagefind-filter="series">{{ .LinkTitle }}</a> | ||||||
|  |         {{ end }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -1,11 +1,10 @@ | |||||||
| {{ with (.GetTerms "tags") }} | {{ with (.GetTerms "tags") }} | ||||||
|     {{ $tags := slice }} |     {{ $tags := slice }} | ||||||
|     {{ range . }} |  | ||||||
|         {{ $tags = $tags | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }} |  | ||||||
|     {{ end }} |  | ||||||
| 
 | 
 | ||||||
|     <div class="page-metadata-section 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" }} |         {{ partial "icon.html" "tag" }} | ||||||
|         {{ delimit $tags ", " }} |         {{ range . }} | ||||||
|  |             <a href="{{ .Permalink }}" data-pagefind-filter="tag">{{ .LinkTitle }}</a> | ||||||
|  |         {{ end }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
							
								
								
									
										8
									
								
								layouts/_partials/page-metadata/item/viewraw.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								layouts/_partials/page-metadata/item/viewraw.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | |||||||
|  | {{ with .OutputFormats.Get "markdown" }} | ||||||
|  |     <span class="page-metadata-item post-meta-view-markdown" aria-label="{{ i18n "aria_post_meta_view_markdown" }}"> | ||||||
|  |         {{ partial "icon.html" "code" }} | ||||||
|  |         <a href="{{ .Permalink }}" target="_blank"> | ||||||
|  |             {{- i18n "view_markdown" -}} | ||||||
|  |         </a> | ||||||
|  |     </span> | ||||||
|  | {{ end }} | ||||||
| @@ -20,7 +20,11 @@ | |||||||
|         {{ partial "page-metadata/item/authors.html" . }} |         {{ partial "page-metadata/item/authors.html" . }} | ||||||
|         {{ partial "page-metadata/item/readingtime.html" . }} |         {{ partial "page-metadata/item/readingtime.html" . }} | ||||||
|         {{ partial "page-metadata/item/edithistory.html" . }} |         {{ partial "page-metadata/item/edithistory.html" . }} | ||||||
|  |         {{ partial "page-metadata/item/viewraw.html" . }} | ||||||
|  |         {{ partial "page-metadata/item/comments-counter.html" . }} | ||||||
|  | 
 | ||||||
|         {{ partial "page-metadata/item/categories.html" . }} |         {{ partial "page-metadata/item/categories.html" . }} | ||||||
|  | 
 | ||||||
|         {{ partial "page-metadata/item/tags.html" . }} |         {{ partial "page-metadata/item/tags.html" . }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -9,6 +9,8 @@ | |||||||
| 
 | 
 | ||||||
|         {{ partial "page-metadata/item/authors.html" . }} |         {{ partial "page-metadata/item/authors.html" . }} | ||||||
|         {{ partial "page-metadata/item/readingtime.html" . }} |         {{ partial "page-metadata/item/readingtime.html" . }} | ||||||
|  |         {{ partial "page-metadata/item/comments-counter.html" . }} | ||||||
|  | 
 | ||||||
|         {{ partial "page-metadata/item/series.html" . }} |         {{ partial "page-metadata/item/series.html" . }} | ||||||
|         {{ partial "page-metadata/item/categories.html" . }} |         {{ partial "page-metadata/item/categories.html" . }} | ||||||
|         {{ partial "page-metadata/item/tags.html" . }} |         {{ partial "page-metadata/item/tags.html" . }} | ||||||
							
								
								
									
										154
									
								
								layouts/_partials/pagination-hugo.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										154
									
								
								layouts/_partials/pagination-hugo.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,154 @@ | |||||||
|  | {{- $validFormats := slice "default" "terse" }} | ||||||
|  |  | ||||||
|  | {{- $msg1 := "When passing a map to the internal pagination template, one of the elements must be named 'page', and it must be set to the context of the current page." }} | ||||||
|  | {{- $msg2 := "The 'format' specified in the map passed to the internal pagination template is invalid. Valid choices are: %s." }} | ||||||
|  |  | ||||||
|  | {{- $page := . }} | ||||||
|  | {{- $format := "default" }} | ||||||
|  |  | ||||||
|  | {{- if reflect.IsMap . }} | ||||||
|  |   {{- with .page }} | ||||||
|  |     {{- $page = . }} | ||||||
|  |   {{- else }} | ||||||
|  |     {{- errorf $msg1 }} | ||||||
|  |   {{- end }} | ||||||
|  |   {{- with .format }} | ||||||
|  |     {{- $format = lower . }} | ||||||
|  |   {{- end }} | ||||||
|  | {{- end }} | ||||||
|  |  | ||||||
|  | {{- if in $validFormats $format }} | ||||||
|  |   {{- if gt $page.Paginator.TotalPages 1 }} | ||||||
|  |     <ul class="pagination pagination-{{ $format }}"> | ||||||
|  |       {{- partial (printf "inline/pagination/%s.html" $format) $page }} | ||||||
|  |     </ul> | ||||||
|  |   {{- end }} | ||||||
|  | {{- else }} | ||||||
|  |   {{- errorf $msg2 (delimit $validFormats ", ") }} | ||||||
|  | {{- end -}} | ||||||
|  |  | ||||||
|  | {{/* Format: default | ||||||
|  | {{/* --------------------------------------------------------------------- */}} | ||||||
|  | {{- define "_partials/inline/pagination/default.html" }} | ||||||
|  |   {{- with .Paginator }} | ||||||
|  |     {{- $currentPageNumber := .PageNumber }} | ||||||
|  |  | ||||||
|  |     {{- with .First }} | ||||||
|  |       {{- if ne $currentPageNumber .PageNumber }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="First" class="page-link" role="button"><span aria-hidden="true">««</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- else }} | ||||||
|  |       <li class="page-item disabled"> | ||||||
|  |         <a aria-disabled="true" aria-label="First" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">««</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Prev }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Previous" class="page-link" role="button"><span aria-hidden="true">«</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- else }} | ||||||
|  |       <li class="page-item disabled"> | ||||||
|  |         <a aria-disabled="true" aria-label="Previous" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">«</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- $slots := 5 }} | ||||||
|  |     {{- $start := math.Max 1 (sub .PageNumber (math.Floor (div $slots 2))) }} | ||||||
|  |     {{- $end := math.Min .TotalPages (sub (add $start $slots) 1) }} | ||||||
|  |     {{- if lt (add (sub $end $start) 1) $slots }} | ||||||
|  |       {{- $start = math.Max 1 (add (sub $end $slots) 1) }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- range $k := seq $start $end }} | ||||||
|  |       {{- if eq $.Paginator.PageNumber $k }} | ||||||
|  |       <li class="page-item active"> | ||||||
|  |         <a aria-current="page" aria-label="Page {{ $k }}" class="page-link" role="button">{{ $k }}</a> | ||||||
|  |       </li> | ||||||
|  |       {{- else }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ (index $.Paginator.Pagers (sub $k 1)).URL }}" aria-label="Page {{ $k }}" class="page-link" role="button">{{ $k }}</a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Next }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">»</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- else }} | ||||||
|  |       <li class="page-item disabled"> | ||||||
|  |         <a aria-disabled="true" aria-label="Next" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">»</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Last }} | ||||||
|  |       {{- if ne $currentPageNumber .PageNumber }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Last" class="page-link" role="button"><span aria-hidden="true">»»</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- else }} | ||||||
|  |       <li class="page-item disabled"> | ||||||
|  |         <a aria-disabled="true" aria-label="Last" class="page-link" role="button" tabindex="-1"><span aria-hidden="true">»»</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |   {{- end }} | ||||||
|  | {{- end -}} | ||||||
|  |  | ||||||
|  | {{/* Format: terse | ||||||
|  | {{/* --------------------------------------------------------------------- */}} | ||||||
|  | {{- define "_partials/inline/pagination/terse.html" }} | ||||||
|  |   {{- with .Paginator }} | ||||||
|  |     {{- $currentPageNumber := .PageNumber }} | ||||||
|  |  | ||||||
|  |     {{- with .First }} | ||||||
|  |       {{- if ne $currentPageNumber .PageNumber }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="First" class="page-link" role="button"><span aria-hidden="true">««</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Prev }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Previous" class="page-link" role="button"><span aria-hidden="true">«</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- $slots := 3 }} | ||||||
|  |     {{- $start := math.Max 1 (sub .PageNumber (math.Floor (div $slots 2))) }} | ||||||
|  |     {{- $end := math.Min .TotalPages (sub (add $start $slots) 1) }} | ||||||
|  |     {{- if lt (add (sub $end $start) 1) $slots }} | ||||||
|  |       {{- $start = math.Max 1 (add (sub $end $slots) 1) }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- range $k := seq $start $end }} | ||||||
|  |       {{- if eq $.Paginator.PageNumber $k }} | ||||||
|  |       <li class="page-item active"> | ||||||
|  |         <a aria-current="page" aria-label="Page {{ $k }}" class="page-link" role="button">{{ $k }}</a> | ||||||
|  |       </li> | ||||||
|  |       {{- else }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ (index $.Paginator.Pagers (sub $k 1)).URL }}" aria-label="Page {{ $k }}" class="page-link" role="button">{{ $k }}</a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Next }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Next" class="page-link" role="button"><span aria-hidden="true">»</span></a> | ||||||
|  |       </li> | ||||||
|  |     {{- end }} | ||||||
|  |  | ||||||
|  |     {{- with .Last }} | ||||||
|  |       {{- if ne $currentPageNumber .PageNumber }} | ||||||
|  |       <li class="page-item"> | ||||||
|  |         <a href="{{ .URL }}" aria-label="Last" class="page-link" role="button"><span aria-hidden="true">»»</span></a> | ||||||
|  |       </li> | ||||||
|  |       {{- end }} | ||||||
|  |     {{- end }} | ||||||
|  |   {{- end }} | ||||||
|  | {{- end -}} | ||||||
							
								
								
									
										6
									
								
								layouts/_partials/pagination.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								layouts/_partials/pagination.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | {{ if gt .Paginator.TotalPages 1 }} | ||||||
|  |     <nav class="pagination"> | ||||||
|  |         {{/* https://github.com/gohugoio/hugo/blob/a88b488181279befd50e1d127f9f67604f2f9854/tpl/tplimpl/embedded/templates/_partials/pagination.html */}} | ||||||
|  |         {{ partial "pagination-hugo.html" . }} | ||||||
|  |     </nav> | ||||||
|  | {{ end }} | ||||||
| @@ -3,16 +3,6 @@ | |||||||
| <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> | <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> | ||||||
| <meta property="og:url" content="{{ .Permalink }}"> | <meta property="og:url" content="{{ .Permalink }}"> | ||||||
| 
 | 
 | ||||||
| {{ $images := $.Resources.ByType "image" }} |  | ||||||
| {{ $featured := $images.GetMatch "*feature*" }} |  | ||||||
| {{ if not $featured }} |  | ||||||
|     {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} |  | ||||||
| {{ end }} |  | ||||||
| 
 |  | ||||||
| {{ with $featured }} |  | ||||||
|     <meta property="og:image" content="{{ $featured.Permalink }}"> |  | ||||||
| {{ end }} |  | ||||||
| 
 |  | ||||||
| {{ with .Section }} | {{ with .Section }} | ||||||
|     <meta property="article:section" content="{{ . }}"> |     <meta property="article:section" content="{{ . }}"> | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -33,16 +23,42 @@ | |||||||
|     <meta property="og:locale" content="{{ . }}"> |     <meta property="og:locale" content="{{ . }}"> | ||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
| {{ with .Site.Params.title }} | {{ with .Site.Title }} | ||||||
|     <meta property="og:site_name" content="{{ . }}"> |     <meta property="og:site_name" content="{{ . }}"> | ||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
|  | {{ $images := $.Resources.ByType "image" }} | ||||||
|  | {{ $featured := $images.GetMatch "*feature*" }} | ||||||
|  | {{ if not $featured }} | ||||||
|  |     {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} | ||||||
|  | {{ end }} | ||||||
|  | 
 | ||||||
|  | {{ with $featured }} | ||||||
|  |     <meta property="og:image" content="{{ $featured.Permalink }}"> | ||||||
|  |     {{ with .Params.alt }} | ||||||
|  |         <meta property="og:image:alt" content="{{ . }}"> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ with .MediaType }} | ||||||
|  |         <meta property="og:image:type" content="{{ . }}"> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ with .Width }} | ||||||
|  |         <meta property="og:image:width" content="{{ . }}"> | ||||||
|  |     {{ end }} | ||||||
|  |     {{ with .Height }} | ||||||
|  |         <meta property="og:image:height" content="{{ . }}"> | ||||||
|  |     {{ end }} | ||||||
|  | {{ end }} | ||||||
|  | 
 | ||||||
| {{ $videos := $.Resources.ByType "video" }} | {{ $videos := $.Resources.ByType "video" }} | ||||||
| {{ $featured_video := $videos.GetMatch "*feature*" }} | {{ $featured_video := $videos.GetMatch "*feature*" }} | ||||||
| {{ if not $featured_video }} | {{ if not $featured_video }} | ||||||
|     {{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }} |     {{ $featured_video = $videos.GetMatch "{*cover*,*thumbnail*}" }} | ||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| {{ with $featured_video }} | {{ with $featured_video }} | ||||||
|     <meta property="og:video" content="{{ $featured_video.Permalink | absURL }}"> |     <meta property="og:video" content="{{ $featured_video.Permalink | absURL }}"> | ||||||
|  |     {{ with .MediaType }} | ||||||
|  |         <meta property="og:video:type" content="{{ . }}"> | ||||||
|  |     {{ end }} | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -21,10 +21,14 @@ | |||||||
|     <meta itemprop="image" content="{{ $featured.Permalink }}"> |     <meta itemprop="image" content="{{ $featured.Permalink }}"> | ||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
| {{ with (.GetTerms "tags") }} | {{ with .Keywords }} | ||||||
|  |     <meta itemprop="keywords" content="{{ delimit . ", " }}"> | ||||||
|  | {{ else }} | ||||||
|  |     {{ with (.GetTerms "tags") }} | ||||||
|         {{ $tags := slice }} |         {{ $tags := slice }} | ||||||
|         {{ range . }} |         {{ range . }} | ||||||
|             {{ $tags = $tags | append .LinkTitle }} |             {{ $tags = $tags | append .LinkTitle }} | ||||||
|         {{ end }} |         {{ end }} | ||||||
|         <meta itemprop="keywords" content="{{ delimit $tags ", " }}"> |         <meta itemprop="keywords" content="{{ delimit $tags ", " }}"> | ||||||
|  |     {{ end }} | ||||||
| {{ end }} | {{ end }} | ||||||
							
								
								
									
										43
									
								
								layouts/_partials/seo-tags/twitter-cards.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								layouts/_partials/seo-tags/twitter-cards.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | |||||||
|  | {{/* we do not need to duplicate what's already covered by OpenGraph tags | ||||||
|  |    * see: https://demo.bbaovanc.com/test/remove-twitter-tags/blog/swapfile-guide/ | ||||||
|  |    * so, no twitter:image/title/description | ||||||
|  |    */}} | ||||||
|  | {{ $images := $.Resources.ByType "image" }} | ||||||
|  | {{ $featured := $images.GetMatch "*feature*" }} | ||||||
|  | {{ if not $featured }} | ||||||
|  |     {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
|  | {{ with $featured }} | ||||||
|  |     {{ $ratio := 0 }} | ||||||
|  |     {{ if gt .Width .Height }} | ||||||
|  |         {{ $ratio = div (float .Width) .Height }} | ||||||
|  |     {{ else }} | ||||||
|  |         {{ $ratio = div (float .Height) .Width }} | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ if lt $ratio 1.75 }} | ||||||
|  |         <meta name="twitter:card" content="summary_large_image"> | ||||||
|  |     {{ else }} | ||||||
|  |         <meta name="twitter:card" content="summary"> | ||||||
|  |     {{ end }} | ||||||
|  | {{ else }} | ||||||
|  |     <meta name="twitter:card" content="summary"> | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
|  | {{/* twitter:site is the site author; twitter:creator is page author | ||||||
|  |    * https://developer.x.com/en/docs/x-for-websites/cards/guides/getting-started | ||||||
|  |    * "Card and Content Attribution" | ||||||
|  |    */}} | ||||||
|  | {{ with .Site.Params.social.twitter }} | ||||||
|  |     <meta name="twitter:site" content="@{{ . }}"> | ||||||
|  | {{ else }} | ||||||
|  |     {{ errorf "a twitter username is required for twitter cards to work" }} | ||||||
|  | {{ end }} | ||||||
|  | {{ with .GetTerms "authors" }} | ||||||
|  |     {{ range . }} | ||||||
|  |         {{ with .Params.twitter }} | ||||||
|  |             <meta name="twitter:creator" content="@{{ . }}"> | ||||||
|  |         {{ end }} | ||||||
|  |     {{ end }} | ||||||
|  | {{ end }} | ||||||
| @@ -12,6 +12,6 @@ | |||||||
|             This post is part of a series: |             This post is part of a series: | ||||||
|         {{ end }} |         {{ end }} | ||||||
| 
 | 
 | ||||||
|         {{ delimit $series ", " }} |         {{ delimit $series ", " | safeHTML }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
| @@ -1,9 +1,9 @@ | |||||||
| <div class="top"> | <header class="top"> | ||||||
|     <header class="header"> |     <div class="brand"> | ||||||
|         <a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}"> |         <a href="{{ .Site.Home.Permalink | absLangURL }}"> | ||||||
|             {{ .Site.Title | markdownify }} |             {{ .Site.Title | markdownify }} | ||||||
|         </a> |         </a> | ||||||
|     </header> |     </div> | ||||||
| 
 | 
 | ||||||
|     <nav class="navbar" aria-label="{{ i18n "aria_navbar" }}"> |     <nav class="navbar" aria-label="{{ i18n "aria_navbar" }}"> | ||||||
|         {{ with .Site.Home }} |         {{ with .Site.Home }} | ||||||
| @@ -21,4 +21,4 @@ | |||||||
|                href="{{ .URL }}">{{ .Name }}</a> |                href="{{ .URL }}">{{ .Name }}</a> | ||||||
|         {{ end }} |         {{ end }} | ||||||
|     </nav> |     </nav> | ||||||
| </div> | </header> | ||||||
							
								
								
									
										17
									
								
								layouts/_shortcodes/figure.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								layouts/_shortcodes/figure.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | <figure> | ||||||
|  |     {{ $resource_title := "" }} | ||||||
|  |     {{ with .Get "src" }} | ||||||
|  |         {{ with $.Page.Resources.Get . }} | ||||||
|  |             {{ $resource_title = .Title }} | ||||||
|  |             {{ partial "embed-resource.html" . }} | ||||||
|  |         {{ else }} | ||||||
|  |             {{ errorf "resource %q not found" . }} | ||||||
|  |         {{ end }} | ||||||
|  |     {{ else }} | ||||||
|  |         {{ .Inner }} | ||||||
|  |     {{ end }} | ||||||
|  |  | ||||||
|  |     {{ with or (.Get "caption") (.Get 0) $resource_title }} | ||||||
|  |         <figcaption>{{ (replace . "\\bt" "`") | markdownify }}</figcaption> | ||||||
|  |     {{ end }} | ||||||
|  | </figure> | ||||||
							
								
								
									
										14
									
								
								layouts/_shortcodes/include.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								layouts/_shortcodes/include.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | {{/* https://github.com/gohugoio/hugo/issues/13823#issuecomment-3015270202 */}} | ||||||
|  | {{ with .Get 0 -}} | ||||||
|  |     {{ with $.Page.GetPage . -}} | ||||||
|  |         {{ .RenderShortcodes -}} | ||||||
|  |     {{ else with $.Page.Resources.Get . -}} | ||||||
|  |         {{ .RenderShortcodes -}} | ||||||
|  |     {{ else with resources.Get . -}} | ||||||
|  |         {{ .Content -}} | ||||||
|  |     {{ else -}} | ||||||
|  |         {{ errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position -}} | ||||||
|  |     {{ end -}} | ||||||
|  | {{ else -}} | ||||||
|  |     {{ errorf "The %q shortcode requires a positional parameter indicating the logical path of the file to include. See %s" .Name .Position -}} | ||||||
|  | {{ end -}} | ||||||
							
								
								
									
										9
									
								
								layouts/_shortcodes/resource.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								layouts/_shortcodes/resource.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | {{ with .Get 0 }} | ||||||
|  |     {{ with $.Page.Resources.Get . }} | ||||||
|  |         {{ partial "embed-resource.html" . }} | ||||||
|  |     {{ else }} | ||||||
|  |         {{ errorf "resource %q not found" . }} | ||||||
|  |     {{ end }} | ||||||
|  | {{ else }} | ||||||
|  |     {{ errorf "resource name not provided as first parameter" }} | ||||||
|  | {{ end }} | ||||||
| @@ -1,4 +1,5 @@ | |||||||
| {{ define "main" }} | {{ define "main" }} | ||||||
|  |     <section class="body-module--center"> | ||||||
|         <h1> |         <h1> | ||||||
|             {{ partial "icon.html" "user-circle" }} |             {{ partial "icon.html" "user-circle" }} | ||||||
|             {{ .Title | markdownify }} |             {{ .Title | markdownify }} | ||||||
| @@ -21,4 +22,5 @@ | |||||||
|                 </div> |                 </div> | ||||||
|             {{ end }} |             {{ end }} | ||||||
|         </div> |         </div> | ||||||
|  |     </section> | ||||||
| {{ end }} | {{ end }} | ||||||
|   | |||||||
| @@ -1,13 +1,15 @@ | |||||||
| <h2 class="page-title"> | <h2 class="page-title"> | ||||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |     <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} |     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||||
| </h2> | </h2> | ||||||
|  |  | ||||||
| {{ partial "page-metadata/author.html" . }} | {{ partial "page-metadata/author.html" . }} | ||||||
|  |  | ||||||
| <div class="page-description"> | {{ with .Summary }} | ||||||
|     {{ partial "description-or-summary.html" . }} |     <div class="page-description"> | ||||||
| </div> |         {{ . }} | ||||||
|  |     </div> | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
| <div class="readmore"> | <div class="readmore"> | ||||||
|     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> |     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								layouts/authors/term.head_title.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/authors/term.head_title.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {{ (print .Title "'s Posts | " .Site.Title) | plainify }} | ||||||
							
								
								
									
										38
									
								
								layouts/baseof.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								layouts/baseof.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | |||||||
|  | {{ i18n "credit_comment" | safeHTML }} | ||||||
|  | <!DOCTYPE html> | ||||||
|  | <html lang="{{ .Language.Lang }}"> | ||||||
|  |     {{ partial "head.html" . }} | ||||||
|  |  | ||||||
|  |     <body> | ||||||
|  |         <a id="skip-to-main" href="#main-content">Skip to main content</a> | ||||||
|  |  | ||||||
|  |         {{ partial "top.html" . }} | ||||||
|  |  | ||||||
|  |         {{ if not .IsHome }} | ||||||
|  |             {{ partial "breadcrumb.html" . }} | ||||||
|  |         {{ end }} | ||||||
|  |  | ||||||
|  |         {{ block "pre-body" . }}{{ end }} | ||||||
|  |  | ||||||
|  |         <main id="main-content"> | ||||||
|  |             {{ block "main" . }} | ||||||
|  |                 THIS TEXT SHOULD NOT SHOW. YUZSIQGHE (that string is so I can grep for it) | ||||||
|  |             {{ end }} | ||||||
|  |         </main> | ||||||
|  |  | ||||||
|  |         {{ block "post-body" . }}{{ end }} | ||||||
|  |  | ||||||
|  |         {{ if or .Site.Copyright .Site.Params.footer }} | ||||||
|  |             <footer class="body-module--center"> | ||||||
|  |                 {{ with .Site.Copyright }} | ||||||
|  |                     {{ . | safeHTML }} | ||||||
|  |                 {{ end }} | ||||||
|  |  | ||||||
|  |                 {{ with .Site.Params.footer }} | ||||||
|  |                     {{ . | $.RenderString (dict "display" "block") }} | ||||||
|  |                 {{ end }} | ||||||
|  |             </footer> | ||||||
|  |         {{ end }} | ||||||
|  |     </body> | ||||||
|  |  | ||||||
|  | </html> | ||||||
							
								
								
									
										1
									
								
								layouts/head_title.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/head_title.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {{ (print .Title " | " .Site.Title) | plainify }} | ||||||
							
								
								
									
										1
									
								
								layouts/home.head_title.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/home.head_title.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | {{ .Site.Title | plainify }} | ||||||
| @@ -1,13 +1,15 @@ | |||||||
| {{ define "main" }} | {{ define "main" }} | ||||||
|     {{ with .Content }} |     {{ with .Content }} | ||||||
|         <article class="homepage-content"> |         <article class="body-module--center"> | ||||||
|             {{ . }} |             {{ . }} | ||||||
|         </article> |         </article> | ||||||
|         <hr> |         <hr class="body-module--center"> | ||||||
|     {{ end }} |     {{ end }} | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
|  | {{ define "post-body" }} | ||||||
|     {{ if .Site.Params.homepageLatestPosts }} |     {{ if .Site.Params.homepageLatestPosts }} | ||||||
|         <div class="homepage-latest-posts"> |         <div class="body-module--center"> | ||||||
|             <h1> |             <h1> | ||||||
|                 {{ i18n "latest_posts" }} |                 {{ i18n "latest_posts" }} | ||||||
|                 {{ partial "rss-link.html" . }} |                 {{ partial "rss-link.html" . }} | ||||||
|   | |||||||
							
								
								
									
										86
									
								
								layouts/page.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										86
									
								
								layouts/page.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,86 @@ | |||||||
|  | {{ define "main" }} | ||||||
|  |     <article class="body-module--center"> | ||||||
|  |         <div class="page-title"> | ||||||
|  |             <h1> | ||||||
|  |                 {{ .Title | markdownify }} | ||||||
|  |                 {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||||
|  |             </h1> | ||||||
|  |         </div> | ||||||
|  |  | ||||||
|  |         {{ partial "page-metadata/post-full.html" . }} | ||||||
|  |         {{ partial "series-box.html" . }} | ||||||
|  |  | ||||||
|  |         {{ if .Params.Toc }} | ||||||
|  |             <div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}"> | ||||||
|  |                 <details> | ||||||
|  |                     <summary>{{ i18n "table_of_contents" }}</summary> | ||||||
|  |                     {{ .TableOfContents }} | ||||||
|  |                 </details> | ||||||
|  |             </div> | ||||||
|  |             <div class="table-of-contents print"> | ||||||
|  |                 {{ i18n "table_of_contents" }} | ||||||
|  |                 {{ .TableOfContents }} | ||||||
|  |             </div> | ||||||
|  |         {{ end }} | ||||||
|  |  | ||||||
|  |         {{ partial "feature-figure.html" . }} | ||||||
|  |  | ||||||
|  |         <article class="post-content" data-pagefind-body> | ||||||
|  |             {{ .Content }} | ||||||
|  |         </article> | ||||||
|  |  | ||||||
|  |         {{ partial "series-box.html" . }} | ||||||
|  |  | ||||||
|  |         {{ if or .NextInSection .PrevInSection }} | ||||||
|  |             <div class="prevnext"> | ||||||
|  |                 {{ with .NextInSection }} | ||||||
|  |                     <a class="prev" href="{{ .Permalink }}"> | ||||||
|  |                         <div class="prev-caption"> | ||||||
|  |                             ← {{ i18n "newer_post" }} | ||||||
|  |                         </div> | ||||||
|  |                         <div class="prev-post"> | ||||||
|  |                             {{ .Title | markdownify }} | ||||||
|  |                         </div> | ||||||
|  |                     </a> | ||||||
|  |                 {{ else }} | ||||||
|  |                     <div class="prev"></div> | ||||||
|  |                 {{ end }} | ||||||
|  |  | ||||||
|  |                 {{ with .PrevInSection }} | ||||||
|  |                     <a class="next" href="{{ .Permalink }}"> | ||||||
|  |                         <div class="next-caption"> | ||||||
|  |                             {{ i18n "older_post" }} → | ||||||
|  |                         </div> | ||||||
|  |                         <div class="next-post"> | ||||||
|  |                             {{ .Title | markdownify }} | ||||||
|  |                         </div> | ||||||
|  |                     </a> | ||||||
|  |                 {{ else }} | ||||||
|  |                     <div class="next"></div> | ||||||
|  |                 {{ end }} | ||||||
|  |             </div> | ||||||
|  |         {{ end }} | ||||||
|  |  | ||||||
|  |         {{ if .Site.Params.shareButtons }} | ||||||
|  |             {{ partial "share.html" . }} | ||||||
|  |         {{ end }} | ||||||
|  |  | ||||||
|  |         {{ if .Params.comments }} | ||||||
|  |             <div class="comments"> | ||||||
|  |                 {{ partial "comments.html" . }} | ||||||
|  |             </div> | ||||||
|  |         {{ end }} | ||||||
|  |     </article> | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
|  |  | ||||||
|  | {{ define "post-body" }} | ||||||
|  |     {{ $related := .Site.RegularPages.Related . | first 10 }} | ||||||
|  |     {{ with $related }} | ||||||
|  |         <div class="body-module--full-width related-posts"> | ||||||
|  |             <hr> | ||||||
|  |             <h1>{{ i18n "related_posts" }}</h1> | ||||||
|  |             {{ partial "page-list.html" . }} | ||||||
|  |         </div> | ||||||
|  |     {{ end }} | ||||||
|  | {{ end }} | ||||||
							
								
								
									
										9
									
								
								layouts/page.markdown.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								layouts/page.markdown.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | {{ with .File -}} | ||||||
|  |   {{ with (.Path | readFile) -}} | ||||||
|  |     {{ . -}} | ||||||
|  |   {{ else -}} | ||||||
|  |     {{ errorf "file not found: %s" .Path -}} | ||||||
|  |   {{ end -}} | ||||||
|  | {{ else -}} | ||||||
|  |   {{ errorf "no file available for markdown template?" -}} | ||||||
|  | {{ end -}} | ||||||
| @@ -1,4 +0,0 @@ | |||||||
| {{/* |  | ||||||
|     Create a file named `layouts/partials/comments.html` at your site root to |  | ||||||
|     add a comment system. Page variables are passed. |  | ||||||
| */}} |  | ||||||
| @@ -1,7 +0,0 @@ | |||||||
| {{ with .Description }} |  | ||||||
|     <p>{{ . | markdownify }}</p> |  | ||||||
| {{ else }} |  | ||||||
|     {{ with .Summary }} |  | ||||||
|         {{ . }} |  | ||||||
|     {{ end }} |  | ||||||
| {{ end }} |  | ||||||
| @@ -1,28 +0,0 @@ | |||||||
| {{ $hidecaption := index . "hidecaption" }} |  | ||||||
|  |  | ||||||
| {{ if index . "noborder" }} |  | ||||||
|     <figure> |  | ||||||
| {{ else }} |  | ||||||
|     <figure class="border"> |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
|     {{ with index . "src" }} |  | ||||||
|         {{ $media := . }} |  | ||||||
|         {{ if eq .MediaType.MainType "image" }} |  | ||||||
|             <img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" /> |  | ||||||
|         {{ else if eq .MediaType.MainType "video" }} |  | ||||||
|             <video controls preload="metadata"> |  | ||||||
|                 <source src="{{ $media.Permalink }}" alt="{{ $media.Title }}"> |  | ||||||
|                 {{ i18n "browser_no_video_support" }} |  | ||||||
|             </video> |  | ||||||
|         {{ end }} |  | ||||||
|  |  | ||||||
|         {{ if not $hidecaption }} |  | ||||||
|             {{ with $media.Title }} |  | ||||||
|                 <figcaption> |  | ||||||
|                     {{ . | markdownify }} |  | ||||||
|                 </figcaption> |  | ||||||
|             {{ end }} |  | ||||||
|         {{ end }} |  | ||||||
|     {{ end }} |  | ||||||
| </figure> |  | ||||||
| @@ -1,46 +0,0 @@ | |||||||
| <head> |  | ||||||
|     <meta charset="UTF-8"> |  | ||||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> |  | ||||||
|     {{ hugo.Generator }} |  | ||||||
|  |  | ||||||
|     {{ with resources.Get "css/bobastyle.css" | fingerprint "sha512" }} |  | ||||||
|         <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"> |  | ||||||
|     {{ end }} |  | ||||||
|     {{ with resources.Get "css/syntax-light.css" | fingerprint "sha512" }} |  | ||||||
|         <link rel="stylesheet" type="text/css" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ 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 }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ with .Site.Params.faviconSVG }} |  | ||||||
|         <link rel="icon" href="{{ . | absURL }}" /> |  | ||||||
|     {{ end }} |  | ||||||
|     {{ with .Site.Params.appleTouchPNG }} |  | ||||||
|         <link rel="apple-touch-icon" href="{{ . | absURL }}" /> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if .IsHome }} |  | ||||||
|         <title>{{ .Site.Title | plainify }}</title> |  | ||||||
|     {{ else }} |  | ||||||
|         <title>{{ (print .Title " | " .Site.Title) | plainify }}</title> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ partial "seo-tags/opengraph.html" . }} |  | ||||||
|     {{ partial "seo-tags/twitter-cards.html" . }} |  | ||||||
|     {{ partial "seo-tags/schema.html" . }} |  | ||||||
|     {{ partial "seo-tags/link.html" . }} |  | ||||||
|     {{ partial "seo-tags/author.html" . }} |  | ||||||
|  |  | ||||||
|     <meta name="language" content="{{ .Language.Lang }}"> |  | ||||||
|     <meta name="description" content="{{ (partial "seo-description.html" .) | plainify }}"> |  | ||||||
|  |  | ||||||
|     {{ partial "additional-head.html" . }} |  | ||||||
| </head> |  | ||||||
| @@ -1,11 +0,0 @@ | |||||||
| <div class="latest-posts full-width-page-list"> |  | ||||||
|     <hr> |  | ||||||
|     <h1> |  | ||||||
|         {{ i18n "latest_posts" }} |  | ||||||
|         {{ partial "rss-link.html" .Site.Home }} |  | ||||||
|     </h1> |  | ||||||
|  |  | ||||||
|     {{ with .Site.RegularPages | first 5 }} |  | ||||||
|         {{ partial "page-list.html" . }} |  | ||||||
|     {{ end }} |  | ||||||
| </div> |  | ||||||
| @@ -1,16 +0,0 @@ | |||||||
| {{ with .Params.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) }} |  | ||||||
|             {{ end }} |  | ||||||
|             {{ delimit $authors ", " }} |  | ||||||
|         {{ else }} |  | ||||||
|             {{ delimit . ", " }} |  | ||||||
|         {{ end }} |  | ||||||
|     </span> |  | ||||||
| {{ end }} |  | ||||||
| @@ -1,5 +0,0 @@ | |||||||
| {{ if gt .Paginator.TotalPages 1 }} |  | ||||||
|     <nav class="pagination"> |  | ||||||
|         {{ template "_internal/pagination.html" . }} |  | ||||||
|     </nav> |  | ||||||
| {{ end }} |  | ||||||
| @@ -1,28 +0,0 @@ | |||||||
| {{ $hidecaption := index . "hidecaption" }} |  | ||||||
| {{ $type := index . "type" }} |  | ||||||
| {{ $src := index . "src" }} |  | ||||||
| {{ $alt := index . "alt" }} |  | ||||||
|  |  | ||||||
| {{ if index . "border" }} |  | ||||||
|     <figure class="border"> |  | ||||||
| {{ else }} |  | ||||||
|     <figure> |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if eq $type "image" }} |  | ||||||
|         <img src="{{ $src }}" alt="{{ $alt }}" /> |  | ||||||
|     {{ else if eq $type "video" }} |  | ||||||
|         <video controls preload="metadata"> |  | ||||||
|             <source src="{{ $src }}" alt="{{ $alt }}"> |  | ||||||
|             {{ i18n "browser_no_video_support" }} |  | ||||||
|         </video> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if not $hidecaption }} |  | ||||||
|         {{ with $alt }} |  | ||||||
|             <figcaption> |  | ||||||
|                 {{ . | markdownify }} |  | ||||||
|             </figcaption> |  | ||||||
|         {{ end }} |  | ||||||
|     {{ end }} |  | ||||||
| </figure> |  | ||||||
| @@ -1,29 +0,0 @@ | |||||||
| {{ $images := $.Resources.ByType "image" }} |  | ||||||
| {{ $featured := $images.GetMatch "*feature*" }} |  | ||||||
| {{ if not $featured }} |  | ||||||
|     {{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{ with $featured }} |  | ||||||
|     {{ $ratio := 0 }} |  | ||||||
|     {{ if gt .Width .Height }} |  | ||||||
|         {{ $ratio = div (float .Width) .Height }} |  | ||||||
|     {{ else }} |  | ||||||
|         {{ $ratio = div (float .Height) .Width }} |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     {{ if lt $ratio 1.75 }} |  | ||||||
|         <meta name="twitter:card" content="summary_large_image"> |  | ||||||
|     {{ else }} |  | ||||||
|         <meta name="twitter:card" content="summary"> |  | ||||||
|     {{ end }} |  | ||||||
|  |  | ||||||
|     <meta name="twitter:image" content="{{ $featured.Permalink }}"> |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| <meta name="twitter:title" content="{{ .Title | plainify }}"> |  | ||||||
| <meta name="twitter:description" content="{{ (partial "seo-description.html" .) | plainify }}"> |  | ||||||
|  |  | ||||||
| {{ with .Site.Social.twitter }} |  | ||||||
|     <meta name="twitter:site" content="@{{ . }}"> |  | ||||||
| {{ end }} |  | ||||||
| @@ -1,2 +1,6 @@ | |||||||
| User-Agent: * | User-Agent: * | ||||||
| Sitemap: {{ "sitemap.xml" | absLangURL }} | Sitemap: {{ "sitemap.xml" | absLangURL }} | ||||||
|  |  | ||||||
|  | {{/* It complains about the raw markdown output having no title tag */ -}} | ||||||
|  | User-Agent: Bingbot | ||||||
|  | Disallow: /blog/*.md$ | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								layouts/search.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								layouts/search.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | {{ define "main" }} | ||||||
|  |     <div id="search-box"></div> | ||||||
|  | {{ end }} | ||||||
| @@ -5,8 +5,10 @@ | |||||||
|             {{ .Title | markdownify }} |             {{ .Title | markdownify }} | ||||||
|         </h2> |         </h2> | ||||||
| 
 | 
 | ||||||
|  |         {{ with .Summary }} | ||||||
|             <div class="section-description"> |             <div class="section-description"> | ||||||
|             {{ partial "description-or-summary.html" . }} |                 {{ . }} | ||||||
|             </div> |             </div> | ||||||
|  |         {{ end }} | ||||||
|     </div> |     </div> | ||||||
| </a> | </a> | ||||||
| @@ -1,14 +1,16 @@ | |||||||
| <h2 class="page-title"> | <h2 class="page-title"> | ||||||
|     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} |     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |     <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} |     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||||
| </h2> | </h2> | ||||||
|  |  | ||||||
| {{ partial "page-metadata/series.html" . }} | {{ partial "page-metadata/series.html" . }} | ||||||
|  |  | ||||||
| <div class="page-description"> | {{ with .Summary }} | ||||||
|     {{ partial "description-or-summary.html" . }} |     <div class="page-description"> | ||||||
| </div> |         {{ . }} | ||||||
|  |     </div> | ||||||
|  | {{ end }} | ||||||
|  |  | ||||||
| <div class="page-list series-inner"> | <div class="page-list series-inner"> | ||||||
|     {{ range .Data.Pages.Reverse }} |     {{ range .Data.Pages.Reverse }} | ||||||
|   | |||||||
| @@ -1,15 +0,0 @@ | |||||||
| {{ $resource := .Page.Resources.GetMatch (.Get "src") }} |  | ||||||
|  |  | ||||||
| {{ $noborder := false }} |  | ||||||
| {{ if .Get "noborder" }} |  | ||||||
|     {{ $noborder = true }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{ $hidecaption := false }} |  | ||||||
| {{ if .Get "hidecaption" }} |  | ||||||
|     {{ $hidecaption = true }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| <p> |  | ||||||
|     {{ partial "figure.html" (dict "src" $resource "noborder" $noborder "hidecaption" $hidecaption) }} |  | ||||||
| </p> |  | ||||||
| @@ -1 +0,0 @@ | |||||||
| <hr class="full-width-hr"> |  | ||||||
| @@ -1,17 +0,0 @@ | |||||||
| {{ $path := "" }} |  | ||||||
| {{ $markdown := false }} |  | ||||||
| {{ if .IsNamedParams }} |  | ||||||
|     {{ $path = .Get "path" }} |  | ||||||
|     {{ with .Get "markdown" }} |  | ||||||
|         {{ $markdown = . }} |  | ||||||
|     {{ end }} |  | ||||||
| {{ else }} |  | ||||||
|     {{ $path = .Get 0 }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
|  |  | ||||||
| {{ if $markdown }} |  | ||||||
|     {{ $path | readFile | .Page.RenderString (dict "display" "block") }} |  | ||||||
| {{ else }} |  | ||||||
|     {{ $path | readFile }} |  | ||||||
| {{ end }} |  | ||||||
| @@ -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" (.Get "type") "alt" (.Get "alt")) }} |  | ||||||
| </p> |  | ||||||
| @@ -1,10 +0,0 @@ | |||||||
| {{/* See https://willschenk.com/articles/2020/styling_tables_with_hugo/ */}} |  | ||||||
|  |  | ||||||
| {{ $class := "markdown" }} |  | ||||||
| {{ with .Get "class" }} |  | ||||||
|     {{ $class = delimit (slice $class .) " " }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }} |  | ||||||
| {{ $new := printf `<table class="%s">` $class }} |  | ||||||
| {{ (replace $htmlTable "<table>" $new) | safeHTML }} |  | ||||||
| @@ -1,21 +1,19 @@ | |||||||
| <h2 class="page-title"> | <h2 class="page-title"> | ||||||
|     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} |     {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} | ||||||
|     <a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a> |     <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||||||
|     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} |     {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} | ||||||
| </h2> | </h2> | ||||||
| 
 | 
 | ||||||
| {{ partial "page-metadata/post-short.html" . }} | {{ partial "page-metadata/post-short.html" . }} | ||||||
| 
 | 
 | ||||||
| {{ with .Resources.GetMatch "feature" }} | {{ partial "feature-figure.html" . }} | ||||||
|     <div class="post-media"> | 
 | ||||||
|         {{ partial "figure.html" (dict "src" .) }} | {{ with .Summary }} | ||||||
|  |     <div class="page-description"> | ||||||
|  |         {{ . }} | ||||||
|     </div> |     </div> | ||||||
| {{ end }} | {{ end }} | ||||||
| 
 | 
 | ||||||
| <div class="page-description"> |  | ||||||
|     {{ partial "description-or-summary.html" . }} |  | ||||||
| </div> |  | ||||||
| 
 |  | ||||||
| <div class="readmore"> | <div class="readmore"> | ||||||
|     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> |     <a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a> | ||||||
| </div> | </div> | ||||||
| @@ -28,7 +28,7 @@ | |||||||
|                             </a> |                             </a> | ||||||
|                             {{ partial "page-metadata/taxonomy.html" . }} |                             {{ partial "page-metadata/taxonomy.html" . }} | ||||||
|                         </div> |                         </div> | ||||||
|                         {{ partial "description-or-summary.html" . }} |                         {{ .Summary }} | ||||||
|                     </article> |                     </article> | ||||||
|                 {{ end }} |                 {{ end }} | ||||||
|             {{ end }} |             {{ end }} | ||||||
| @@ -8,7 +8,7 @@ description = "Simple Hugo theme for boba.best and bbaovanc.com" | |||||||
| homepage = "https://bbaovanc.com" | homepage = "https://bbaovanc.com" | ||||||
| tags = [] | tags = [] | ||||||
| features = [] | features = [] | ||||||
| min_version = "0.93.0" | min_version = "0.146.0" | ||||||
|  |  | ||||||
| [author] | [author] | ||||||
|   name = "bbaovanc" |   name = "bbaovanc" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user