mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-29 19:41:28 +00:00
e52e2a70e5
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 |
||
---|---|---|
.. | ||
testdata | ||
alias.go | ||
alias_test.go | ||
author.go | ||
case_insensitive_test.go | ||
config.go | ||
config_test.go | ||
datafiles_test.go | ||
disableKinds_test.go | ||
embedded_shortcodes_test.go | ||
gitinfo.go | ||
handler_base.go | ||
handler_file.go | ||
handler_meta.go | ||
handler_page.go | ||
handler_test.go | ||
hugo_info.go | ||
hugo_sites.go | ||
hugo_sites_build.go | ||
hugo_sites_build_test.go | ||
media.go | ||
menu.go | ||
menu_old_test.go | ||
menu_test.go | ||
multilingual.go | ||
node_as_page_test.go | ||
page.go | ||
page_collections.go | ||
page_permalink_test.go | ||
page_taxonomy_test.go | ||
page_test.go | ||
page_time_integration_test.go | ||
pageCache.go | ||
pageCache_test.go | ||
pageGroup.go | ||
pageGroup_test.go | ||
pageSort.go | ||
pageSort_test.go | ||
pagesPrevNext.go | ||
pagesPrevNext_test.go | ||
pagination.go | ||
pagination_test.go | ||
path_separators_test.go | ||
permalinks.go | ||
permalinks_test.go | ||
robotstxt_test.go | ||
rss_test.go | ||
scratch.go | ||
scratch_test.go | ||
shortcode.go | ||
shortcode_test.go | ||
shortcodeparser.go | ||
shortcodeparser_test.go | ||
site.go | ||
site_render.go | ||
site_test.go | ||
site_url_test.go | ||
site_writer.go | ||
site_writer_test.go | ||
siteJSONEncode_test.go | ||
sitemap.go | ||
sitemap_test.go | ||
taxonomy.go | ||
taxonomy_test.go | ||
template_engines_test.go | ||
template_test.go | ||
testhelpers_test.go | ||
translations.go |