<p dir="auto">I spent a little too much time trying to get the new <code class="notranslate">block</code> syntax in Go 1.6 implemented in <code class="notranslate">Hugo</code>, with no success.</p>
<p dir="auto">Which is telling me that you should try to supply a "more real" example in the documentation.</p>
<p dir="auto">Hugo uses the built-in associative transitive map to store its templates, so adding a new template is something like:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="hugoTemplates.New(&quot;homePage&quot;).Parse(someTemplate)"><pre class="notranslate"><span class="pl-s1">hugoTemplates</span>.<span class="pl-en">New</span>(<span class="pl-s">"homePage"</span>).<span class="pl-en">Parse</span>(<span class="pl-s1">someTemplate</span>)</pre></div>
<p dir="auto">As I understand the new <code class="notranslate">block</code> implementation, one needs to first parse it with the master file (with the <code class="notranslate">block</code> keywords), then do a "overlay" (a modification, a re-parsing) of the same template with the template with the definitions.</p>
<p dir="auto">How to do that with the above I cannot figure out (other than the simple standalone clone example in the doc -- I could clone it, but how do I replace the template in the map?).</p>
<p dir="auto">My naive approach would be:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m, _ := hugoTemplates.New(&quot;home&quot;).Parse(master)
m.Parse(overlay)"><pre class="notranslate"><span class="pl-s1">m</span>, <span class="pl-s1">_</span> <span class="pl-c1">:=</span> <span class="pl-s1">hugoTemplates</span>.<span class="pl-en">New</span>(<span class="pl-s">"home"</span>).<span class="pl-en">Parse</span>(<span class="pl-s1">master</span>)
<span class="pl-s1">m</span>.<span class="pl-en">Parse</span>(<span class="pl-s1">overlay</span>)</pre></div>
<p dir="auto">And this works ... for the first template. Adding a second breaks in confusing ways.</p>
<p dir="auto">Ref. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132423483" data-permission-text="Title is private" data-url="https://github.com/gohugoio/hugo/issues/1832" data-hovercard-type="issue" data-hovercard-url="/gohugoio/hugo/issues/1832/hovercard" href="https://github.com/gohugoio/hugo/issues/1832">gohugoio/hugo#1832</a></p>
<p dir="auto">Also see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51281194" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/3812" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/3812/hovercard" href="https://github.com/golang/go/issues/3812">#3812</a></p>
<p dir="auto">x509.Certificate.CheckSignature does not support MD5 signatures.  Is this intentional?  If so, a comment should be added in the source and/or docs.  If not, then please add support for MD5 signatures.</p>
<p dir="auto">Code pointer: <a href="https://github.com/golang/go/blob/master/src/crypto/x509/x509.go#L621">https://github.com/golang/go/blob/master/src/crypto/x509/x509.go#L621</a></p>