Closed norecords closed 1 year ago
and add #set global $page = "NAME_OF_PAGE" to every pages.
There is no need to do so, as WeeWX sets $page
to the name of the actual page.
I did it that way:
#if $station.station_url
#set $canonical_url = ($station.station_url+"/"+$filename).replace("/index.html","/")
<link rel="canonical" href="$canonical_url" />
#end if
$filename
is set by WeeWX.
@roe-dl can you add this to a pull request, I think it should be fixed before next release!
Done. #848
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
That have been merge in 1.3 release
Hi there, there is a canonical url problem.
https://github.com/poblabs/weewx-belchertown/blob/bc1614642ed7d5f45705f7fc22e8dab93eaab966/skins/Belchertown/header.html.tmpl#L59-L61
I suggest to change for
and add
#set global $page = "NAME_OF_PAGE"
to every pages.