Skip to content

Commit

Permalink
Add a Page interface
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bep committed Mar 16, 2019
1 parent e54213f commit 9b550d4
Show file tree
Hide file tree
Showing 199 changed files with 13,182 additions and 9,216 deletions.
2 changes: 2 additions & 0 deletions benchbep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gobench -package=./hugolib -bench="BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=5000,tags_per_page=5,shortcodes,render" -count=3 > 1.bench
benchcmp -best 0.bench 1.bench
Loading

0 comments on commit 9b550d4

Please sign in to comment.