github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/site/layouts/_default/home.html (about) 1 {{ define "main" }} 2 {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} 3 {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} 4 5 <style> 6 @media screen and (min-width: 50rem) { 7 header .svg-logo { 8 display: none 9 } 10 .header__right { 11 margin: auto; 12 } 13 .post .main-title { 14 float: left; 15 width: 350px; 16 display: block; 17 } 18 .post { 19 max-width: 900px; 20 } 21 22 .main-title .svg-logo > svg { 23 width: 250px; 24 height: 120px; 25 position: relative; 26 display: inline; 27 } 28 29 .main-title .svg-logo { 30 display: block !important; 31 } 32 33 .post .main-title > h1 > em { 34 font-style: normal; 35 background: #212020; 36 padding: .2em; 37 line-height: 1.9em; 38 color:var(--background); 39 } 40 .dark-theme .post .main-title > h1 > em { 41 color: var(--color); 42 } 43 } 44 45 .content { 46 margin: 0; 47 } 48 49 .main-title .svg-logo { 50 display: none; 51 } 52 53 </style> 54 <div class="post"> 55 <div class="main-title"> 56 <div class="svg-logo" alt="wazero"> 57 <!-- This inlines the logo for wazero, a registered trademark of Tetrate.io, Inc. --> 58 <svg class="svg-logo" viewBox="25 0 110 50" fill="none" xmlns="http://www.w3.org/2000/svg"> 59 <path d="M62.5775 31C62.4225 30.47 62.255 29.9025 62.075 29.2975C61.9 28.6925 61.735 28.1325 61.58 27.6175L60.5975 24.2725C60.4275 23.6775 60.235 23.025 60.02 22.315C59.81 21.6 59.615 20.93 59.435 20.305H60.59C60.815 21.1 61.0525 21.9375 61.3025 22.8175C61.5525 23.6925 61.7875 24.53 62.0075 25.33L63.26 29.7625H63.38L64.595 25.27C64.73 24.76 64.875 24.22 65.03 23.65C65.185 23.08 65.34 22.51 65.495 21.94C65.65 21.365 65.7975 20.82 65.9375 20.305H67.22C67.44 21.1 67.6675 21.93 67.9025 22.795C68.1425 23.655 68.375 24.4875 68.6 25.2925L69.83 29.7625H69.95L71.2175 25.2625C71.4375 24.4875 71.67 23.6625 71.915 22.7875C72.165 21.9075 72.3975 21.08 72.6125 20.305H73.7675C73.5825 20.94 73.385 21.6075 73.175 22.3075C72.97 23.0025 72.78 23.65 72.605 24.25L71.6075 27.6175C71.4475 28.1525 71.28 28.7225 71.105 29.3275C70.93 29.9275 70.765 30.485 70.61 31H69.2075C68.9925 30.23 68.765 29.4175 68.525 28.5625C68.285 27.7025 68.0575 26.8975 67.8425 26.1475L66.6125 21.76H66.5L65.285 26.1475C65.075 26.8975 64.85 27.705 64.61 28.57C64.37 29.435 64.145 30.245 63.935 31H62.5775ZM73.5789 31C73.7939 30.42 74.0189 29.815 74.2539 29.185C74.4889 28.55 74.7139 27.945 74.9289 27.37L76.2864 23.7025C76.5314 23.0475 76.7514 22.4525 76.9464 21.9175C77.1464 21.3825 77.3464 20.845 77.5464 20.305H78.9564C79.1564 20.855 79.3539 21.395 79.5489 21.925C79.7439 22.455 79.9614 23.05 80.2014 23.71L81.5514 27.3925C81.7664 27.9825 81.9889 28.59 82.2189 29.215C82.4489 29.835 82.6664 30.43 82.8714 31H81.7764C81.5464 30.36 81.3089 29.7025 81.0639 29.0275C80.8239 28.3475 80.5964 27.705 80.3814 27.1L78.3039 21.295H78.1839L76.0914 27.0475C75.8664 27.6725 75.6289 28.3275 75.3789 29.0125C75.1339 29.6925 74.8939 30.355 74.6589 31H73.5789ZM75.4014 28.1875L75.4764 27.3325H81.0714L81.1314 28.1875H75.4014ZM84.1407 31V30.4975C84.4357 30.1075 84.7682 29.6675 85.1382 29.1775C85.5132 28.6875 85.8907 28.195 86.2707 27.7C86.6557 27.2 87.0032 26.7425 87.3132 26.3275L91.6407 20.65L91.9782 20.9875H88.7232C88.0532 20.9875 87.3407 20.9875 86.5857 20.9875C85.8357 20.9875 85.0532 20.9875 84.2382 20.9875V20.305H92.3757V20.905C91.8757 21.56 91.3857 22.2025 90.9057 22.8325C90.4257 23.4625 89.9432 24.0925 89.4582 24.7225L84.8532 30.7675L84.6507 30.3175H87.6282C88.1032 30.3175 88.6307 30.3175 89.2107 30.3175C89.7907 30.3175 90.3632 30.3175 90.9282 30.3175C91.4932 30.3175 91.9932 30.3175 92.4282 30.3175V31H84.1407ZM94.8595 31C94.8595 30.395 94.8595 29.815 94.8595 29.26C94.8595 28.7 94.8595 28.0925 94.8595 27.4375V23.875C94.8595 23.215 94.8595 22.605 94.8595 22.045C94.8595 21.485 94.8595 20.905 94.8595 20.305H101.257V20.9875C100.737 20.9875 100.177 20.9875 99.577 20.9875C98.982 20.9875 98.2795 20.9875 97.4695 20.9875H95.2045L95.602 20.395C95.602 21 95.602 21.5825 95.602 22.1425C95.602 22.7025 95.602 23.31 95.602 23.965V27.34C95.602 27.99 95.602 28.595 95.602 29.155C95.602 29.71 95.602 30.29 95.602 30.895L95.227 30.3175H97.5445C98.2345 30.3175 98.8845 30.3175 99.4945 30.3175C100.104 30.3175 100.689 30.3175 101.249 30.3175V31H94.8595ZM95.452 25.9V25.2325H97.597C98.307 25.2325 98.9195 25.2325 99.4345 25.2325C99.9495 25.2325 100.447 25.2325 100.927 25.2325V25.9C100.417 25.9 99.9045 25.9 99.3895 25.9C98.8795 25.9 98.277 25.9 97.582 25.9H95.452ZM103.736 31C103.736 30.395 103.736 29.815 103.736 29.26C103.736 28.7 103.736 28.0925 103.736 27.4375V23.875C103.736 23.215 103.736 22.605 103.736 22.045C103.736 21.485 103.736 20.905 103.736 20.305C104.006 20.305 104.309 20.305 104.644 20.305C104.979 20.305 105.349 20.305 105.754 20.305C106.159 20.305 106.606 20.305 107.096 20.305C107.876 20.305 108.521 20.4025 109.031 20.5975C109.541 20.7875 109.921 21.0875 110.171 21.4975C110.421 21.9075 110.546 22.44 110.546 23.095C110.546 23.66 110.436 24.18 110.216 24.655C110.001 25.13 109.629 25.5125 109.099 25.8025C108.569 26.0875 107.841 26.2325 106.916 26.2375L107.074 25.8625L108.881 27.9625C109.166 28.2825 109.466 28.625 109.781 28.99C110.096 29.355 110.404 29.7125 110.704 30.0625C111.004 30.4125 111.274 30.725 111.514 31H110.584C110.184 30.53 109.794 30.0775 109.414 29.6425C109.039 29.2075 108.669 28.7775 108.304 28.3525L106.309 26.02L106.796 26.3275H104.351V25.675H106.519C107.269 25.675 107.884 25.59 108.364 25.42C108.844 25.25 109.199 24.98 109.429 24.61C109.659 24.235 109.774 23.745 109.774 23.14C109.774 22.61 109.686 22.1975 109.511 21.9025C109.341 21.6075 109.119 21.395 108.844 21.265C108.574 21.135 108.281 21.055 107.966 21.025C107.651 20.99 107.349 20.9725 107.059 20.9725H104.036L104.479 20.395C104.479 21.005 104.479 21.59 104.479 22.15C104.479 22.705 104.479 23.31 104.479 23.965V27.4375C104.479 28.0925 104.479 28.7 104.479 29.26C104.479 29.815 104.479 30.395 104.479 31H103.736ZM118.054 31.1425C117.179 31.1425 116.409 31 115.744 30.715C115.079 30.425 114.521 30.025 114.071 29.515C113.626 29 113.289 28.4125 113.059 27.7525C112.834 27.0875 112.721 26.3825 112.721 25.6375C112.721 24.5975 112.934 23.6625 113.359 22.8325C113.784 21.9975 114.391 21.3375 115.181 20.8525C115.976 20.3625 116.924 20.1175 118.024 20.1175C118.864 20.1175 119.609 20.26 120.259 20.545C120.909 20.83 121.459 21.225 121.909 21.73C122.364 22.235 122.706 22.82 122.936 23.485C123.171 24.15 123.289 24.865 123.289 25.63C123.289 26.685 123.076 27.6275 122.651 28.4575C122.231 29.2875 121.629 29.9425 120.844 30.4225C120.064 30.9025 119.134 31.1425 118.054 31.1425ZM118.024 30.4375C118.809 30.4375 119.484 30.3075 120.049 30.0475C120.614 29.7825 121.076 29.4225 121.436 28.9675C121.801 28.5125 122.071 28 122.246 27.43C122.421 26.855 122.509 26.255 122.509 25.63C122.509 24.96 122.414 24.335 122.224 23.755C122.039 23.17 121.759 22.66 121.384 22.225C121.009 21.785 120.541 21.4425 119.981 21.1975C119.421 20.9475 118.769 20.8225 118.024 20.8225C117.254 20.8225 116.584 20.9525 116.014 21.2125C115.449 21.4725 114.979 21.83 114.604 22.285C114.234 22.735 113.956 23.2475 113.771 23.8225C113.591 24.3975 113.501 25 113.501 25.63C113.501 26.265 113.589 26.8725 113.764 27.4525C113.944 28.0275 114.216 28.54 114.581 28.99C114.951 29.44 115.421 29.795 115.991 30.055C116.561 30.31 117.239 30.4375 118.024 30.4375Z"/> 60 <path d="M38.0079 14.0775C40.3316 13.8822 42.6572 14.4316 44.6477 15.6463C46.6383 16.861 48.1905 18.6778 49.0794 20.8336C49.9684 22.9894 50.148 25.3722 49.5922 27.6369C49.0364 29.9016 47.774 31.9306 45.988 33.4299L43.164 30.0658C44.2356 29.1662 44.993 27.9489 45.3265 26.59C45.6599 25.2312 45.5522 23.8015 45.0188 22.508C44.4854 21.2146 43.5541 20.1245 42.3598 19.3956C41.1654 18.6668 39.7701 18.3372 38.3759 18.4544L38.0079 14.0775Z"/> 61 <path d="M31.6766 16.8178C29.9391 18.373 28.7417 20.441 28.2581 22.7222C27.7744 25.0034 28.0295 27.3793 28.9864 29.5058C29.9433 31.6323 31.5523 33.399 33.5804 34.5499C35.6085 35.7009 37.9503 36.1763 40.2666 35.9073L39.76 31.5443C38.3702 31.7057 36.9651 31.4204 35.7482 30.7299C34.5314 30.0393 33.566 28.9793 32.9918 27.7034C32.4177 26.4275 32.2646 25.0019 32.5548 23.6332C32.845 22.2645 33.5634 21.0237 34.606 20.0906L31.6766 16.8178Z"/> 62 </svg> 63 </div> 64 65 <h1 class="post-title"> 66 the <em>zero</em> dependency <em>WebAssembly</em> runtime for <em>Go developers</em></h1> 67 </div> 68 <div class="post-meta"> 69 {{ if .Date | default nil }} 70 <span class="post-date"> 71 {{ .Date.Format ($.Site.Params.DateFormatSingle | default "2006-01-02") }} 72 </span> 73 74 {{ if eq .Type $contentTypeName }} 75 {{ if $.Site.Params.LastModDisplay }} 76 {{ partial "lastmod.html" . }} 77 {{ end }} 78 {{ end }} 79 {{ end }} 80 81 {{ with .Params.Author }} 82 <span class="post-author" 83 >— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span 84 >{{ end }} 85 86 87 {{ if $.Site.Params.ShowReadingTime }} 88 <span class="post-read-time" 89 >— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span 90 > 91 {{ end }} 92 </div> 93 94 {{ if .Params.tags }} 95 <span class="post-tags"> 96 {{ range .Params.tags }} 97 <a href="{{ (urlize (printf "tags/%s" . )) | absLangURL }}/">#{{ . }}</a> 98 {{ end }} 99 </span> 100 {{ end }} 101 102 {{ if .Params.Cover }} 103 {{ partial "postcover.html" . }} 104 {{ end }} 105 106 <div class="post-content"> 107 {{ if or .Params.Toc $.Site.Params.Toc }} 108 {{ if ne .Params.Toc false }} 109 <h2>Table of Contents</h2> 110 <aside class="table-of-contents">{{ .TableOfContents }}</aside> 111 {{ end }} 112 {{ end }} 113 {{ .Content }} 114 </div> 115 {{ if eq .Type $.Site.Params.contentTypeName }} 116 {{ if or .NextInSection .PrevInSection }} 117 <div class="pagination"> 118 <div class="pagination__title"> 119 <span class="pagination__title-h" 120 >{{ $.Site.Params.ReadOtherPosts | default "Read other posts" }}</span 121 > 122 <hr /> 123 </div> 124 <div class="pagination__buttons"> 125 {{ if .NextInSection }} 126 <span class="button previous"> 127 <a href="{{ .NextInSection.Permalink }}"> 128 <span class="button__icon">←</span> 129 <span class="button__text">{{ .NextInSection.Title }}</span> 130 </a> 131 </span> 132 {{ end }} 133 {{ if .PrevInSection }} 134 <span class="button next"> 135 <a href="{{ .PrevInSection.Permalink }}"> 136 <span class="button__text">{{ .PrevInSection.Title }}</span> 137 <span class="button__icon">→</span> 138 </a> 139 </span> 140 {{ end }} 141 </div> 142 </div> 143 {{ end }} 144 {{ end }} 145 146 {{ if not (eq .Params.Comments "false") }} 147 {{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }} 148 {{ partial "comments.html" . }} 149 {{ end }} 150 {{ end }} 151 </div> 152 {{ end }}