Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/target
AgeCommit message (Collapse)Author
2014-12-09Fix various Windows-issuesbep
File handling was broken on Windows. This commit contains a revision of the path handling with separation of file paths and urls where needed. There may be remaining issues and there may be better ways to do this, but it is easier to start that refactoring job with a set of passing tests. Fixes #687 Fixes #660
2014-11-14converted path 2 filepathJoel Scoble
2014-11-04New targets & new renderers and write methods [WIP]spf13
2014-11-01Migrating Hugo to Afero for filesystem calls.spf13
2014-05-01moving writeToDisk to helpers to make it more accessiblespf13
2014-02-05Add unicode support for aliases, indexes, urlize template filter.Anton Ageev
Now aliases and indexes are not restricted ASCII letters and can include any unicode letters.
2013-12-05Reorganize helpersspf13
2013-12-03Create directories in publishdir with mode 0777.David Arroyo
The previous permissions (0764), were unusable (directories must be executable) when generating files for use by another uid. The Right Thing™ is to use mode 0777. The OS will subtract the process umask (usually 022) to the for the final permissions. Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
2013-10-08Code cleanupNoah Campbell
2013-10-08Move in memory target into target module.Noah Campbell
2013-09-25Support index.html indexes in content directoryNoah Campbell
If a file named index.html exists in a directory, or root, it will be rendered as if ugly urls are turned on. This allows for top level content to not need a supporting layout file and content in content. This change should not affect anyone who is using the perscribed way. I also cleaned up a bunch of one off functions in site.go.
2013-09-21Section is determined by the source, not the urlNoah Campbell
This change allows for top level html content to exists.
2013-09-14Add /index.html to unadorned alias pathsNoah Campbell
Bring code to be better in line with documentation.
2013-09-13Move alias logic to target moduleNoah Campbell
I want to move all logic to writing aliases to target so I can pave the way for writing aliases specific to other runtimes (like .htaccess for apache or a script for updating AWS or symlinking on a filesystem).
2013-09-13Move alias rendering to targetNoah Campbell
2013-09-12Normalize paths within hugoNoah Campbell
filepath was used inconsistently throughout the hugolib. With the introduction of source and target modules, all path are normalized to "/". This simplifies the processing of paths. It does mean that contributors need to be aware of using path/filepath in any module other than source or target is not recommended. The current exception is hugolib/config.go
2013-09-05Homepage "/" respects PublishDirNoah Campbell
It wasn't taking the value of PublishDir into consideration for the special case of the homepage "/". Fixes #75
2013-09-05Introduce source.FilesystemNoah Campbell
This provides an abstraction over how files are processed by Hugo. This allows for alternatives like CMS systems or Dropbox, etc.
2013-09-04Expand the ShowPlan functionalityNoah Campbell
2013-09-04Move to target.FilesystemNoah Campbell
Moving the ugly urls logic to the target. There is still UglyUrl logic in page for the permlink but this is dealing with the generate of urls.
2013-09-04Add Translate to targetNoah Campbell
Translate handles Ugly Urls.
2013-08-31Externalize the writing of content to a targetNoah Campbell
Introducing the target module in hugo. This provides the simple interface for writing content given a label (filename) and a io.Reader containing the content to be written. If site.Target is not set, it defaults back to the original behavior of writing to file system. In hugolib/site_url_test.go I have an InMemoryTarget for testing purposes and use it to see if the final output of a render matches.