hugo/hugolib
Bjørn Erik Pedersen e52e2a70e5 hugolib, target: Rework/move the target package
This relates to #3123.

The interfaces and types in `target` made sense at some point, but now this package is too restricted to a hardcoded set of media types.

The overall current logic:

* Create a file path based on some `Translator` with some hardcoded logic handling uglyURLs, hardcoded html suffix etc.
* In in some cases (alias), a template is applied to create the alias file.
* Then the content is written to destination.

One could argue that it is the last bullet that is the actual core responsibility.

This commit fixes that by moving the `hugolib`-related logic where it belong, and simplify the code, i.e. remove the abstractions.

This code will most certainly evolve once we start on #3123, but now it is at least possible to understand where to start.

Fixes #3123
2017-03-04 23:33:35 +01:00
..
testdata
alias.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
alias_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
author.go
case_insensitive_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
config.go
config_test.go
datafiles_test.go
disableKinds_test.go hugolib: Add missing page kind to allKinds 2017-02-19 09:15:30 +01:00
embedded_shortcodes_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
gitinfo.go
handler_base.go
handler_file.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
handler_meta.go
handler_page.go all: Add org-mode support 2017-02-21 08:46:03 +01:00
handler_test.go
hugo_info.go
hugo_sites.go hugolib: Fix HugoSites.createMissingPages 2017-03-04 21:37:52 +01:00
hugo_sites_build.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
hugo_sites_build_test.go hugolib: Only return RSSLink when RSS is available 2017-03-01 12:30:41 +01:00
media.go
menu.go hugolib: Finish menu vs section content pages 2017-02-20 22:20:02 +01:00
menu_old_test.go hugolib: Finish menu vs section content pages 2017-02-20 22:20:02 +01:00
menu_test.go hugolib: Finish menu vs section content pages 2017-02-20 22:20:02 +01:00
multilingual.go
node_as_page_test.go hugolib: Fix HugoSites.createMissingPages 2017-03-04 21:37:52 +01:00
page.go hugolib: Add /layouts/SECTION/list.html to template lookup 2017-03-02 10:08:37 +01:00
page_collections.go
page_permalink_test.go
page_taxonomy_test.go
page_test.go hugolib: Minor Go vet fix 2017-02-19 10:33:28 +01:00
page_time_integration_test.go hugolib: Add temporary date parse test 2017-02-19 13:19:15 +01:00
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pageSort.go hugolib: Enhance .Param to permit arbitrarily nested parameter references 2017-02-19 08:50:08 +01:00
pageSort_test.go hugolib: Enhance .Param to permit arbitrarily nested parameter references 2017-02-19 08:50:08 +01:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
path_separators_test.go
permalinks.go
permalinks_test.go
robotstxt_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
rss_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
scratch.go
scratch_test.go
shortcode.go hugolib: Include full filepath on shortcode errors 2017-02-21 22:54:19 +01:00
shortcode_test.go hugolib: Fix broken shortcode tests 2017-02-22 00:14:27 +01:00
shortcodeparser.go
shortcodeparser_test.go
site.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
site_render.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
site_test.go hugolib: Fix .Site.LastChange 2017-02-19 13:48:21 +01:00
site_url_test.go
site_writer.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
site_writer_test.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
taxonomy.go
taxonomy_test.go hugolib: Make sure that empty terms lists are still created 2017-03-01 17:07:38 +01:00
template_engines_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
template_test.go hugolib: Add section template baseof test case 2017-03-02 13:52:08 +01:00
testhelpers_test.go hugolib, target: Rework/move the target package 2017-03-04 23:33:35 +01:00
translations.go