-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WeightedPages.Page #5719
Comments
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719
This is great!
Could this finding by any chance allow this improvement to be applied to the
|
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5759 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the old very file-oriented `hugolib.Page` struct to prepare for gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limiations, especially related to custom output formats, and shortcodes. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5704 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content rendered, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content rendered, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706
@regisphilibert yes. I just added a test for both the above constructs: So, the loops gets nicer, but look at the titles! |
Awesome ! |
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. And it's faster. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue gohugoio#5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. See gohugoio#5074 Fixes gohugoio#5763 Fixes gohugoio#5758 Fixes gohugoio#5090 Fixes gohugoio#5204 Fixes gohugoio#4695 Fixes gohugoio#5607 Fixes gohugoio#5707 Fixes gohugoio#5719 Fixes gohugoio#3113 Fixes gohugoio#5706 Fixes gohugoio#5767 Fixes gohugoio#5723 Fixes gohugoio#5769 Fixes gohugoio#5770 Fixes gohugoio#5771 Fixes gohugoio#5759 Fixes gohugoio#5776 Fixes gohugoio#5777 Fixes gohugoio#5778
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I haven't wanted to do this because I didn't know how to without breaking lots of templates in the wild. But while cleaning up some other stuff, I think I found a way.
So taking one example from the docs:
We should be able to rewrite this as:
Note that I have replaced
.Name
with.Title
in the example, because that is probably what you want in most cases. I have removed thepreserveTaxonomyNames
flag -- this will possibly be slightly breaking for some, but the logic was too hard to maintain -- and you can now use.Title
which will preserve what you write in front matter./cc @regisphilibert
The text was updated successfully, but these errors were encountered: