Using template file with file+head+olp

Hello,

I find that specifying a template file doesn’t work. I get an org file with only the Log heading, with the capture going under the heading.


        ("y" "Daily Log Entry" entry "** %<%I:%M %p>: %?"
         :target (file+head+olp "%<%Y-%m-%d>.org"
                               (file "~/org/roam/templates/daily_template.org")
                                ("Log"))
         :unnarrowed t)

However, when I have a string specifying the template contents like as this:

        ("y" "Daily Log Entry" entry "** %<%I:%M %p>: %?"
         :target (file+head+olp "%<%Y-%m-%d>.org"
                              "#+title: %<%Y-%m-%d>\n\n* Short List\n\n* Log\n:PROPERTIES:\n:VISIBILITY: children\n:END:\n"
                                ("Log"))
         :unnarrowed t)

the file is populated with that string.

Is it not possible to use a template file with file+head+olp?