Skip to content

Any partial/include template example? #6

@vladyslav2

Description

@vladyslav2

Hi Octavore.

Thanks for a great product!

Tell me please, is it possible to do something like this in templates:

 <html>                                                       
   <head>
      {{ template "header" . }}  
      // pr
      {{ partial "header". }} <- like hugo do?
   </head>
...

header.html:

{{define "header"}}                                                              
    <meta>                                                                       
    <link rel="stylesheet" ..>
{{end}}

As far as I can see right now, system gives me an error, any ideas how i can do this?

thanks for reply in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions