Hugo: Create a content adapter (content from /data; content from sql)

Created on 9 Mar 2018  路  4Comments  路  Source: gohugoio/hugo

I was pretty sure we had an issue for this, but I cannot find it.

  • It would be good as part of this to create a better abstraction for the "page source".
  • It should be possible to merge /data with matches in /content (to provide long text markdown etc.)

A cool prototype for this would be a product catalogue, see:

https://mrjoe.uk/product-page-template-sketch/

Enhancement

Most helpful comment

This would make Hugo so much easier to use for documentation pages and any page that has a very large number of pages. +1

All 4 comments

I have updated the title to hint at a more general design.

If we make today's "reading files from /content" a Filesystem Content Adapter, then we can add:

  • Adapter for /data
  • Adapter for SQL databases

If we also manage to abstract away the change notifications from the files, we could have similar live reload functionality for databases via polling.

Note that since we still want this to be fully static, we have to create some kind of intermediate file representations, so this can still be built by Netlify etc. without access to the database.

I'm not sure what the scope of this particular issue will be.

This would make Hugo so much easier to use for documentation pages and any page that has a very large number of pages. +1

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tjamet picture tjamet  路  3Comments

digitalcraftsman picture digitalcraftsman  路  3Comments

kaushalmodi picture kaushalmodi  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

marekr picture marekr  路  3Comments