diff --git a/priv/templates/primary/README.md b/priv/templates/primary/README.md index b394f68..a973b6b 100644 --- a/priv/templates/primary/README.md +++ b/priv/templates/primary/README.md @@ -11,6 +11,12 @@ mix deps.get mix tableau.server ``` +## Draft Posts and WIP Pages + +Posts and pages that are not ready for production can be saved to the `_drafts` and `_wip` directories respectively. + +These are controlled via application configuration, as seen in `config/dev.exs` and `config/prod.exs` + ## Production Builds To build for production, run the `mix build` alias to build your site and compile any assets (depends on what asset you chose when generating your site). diff --git a/priv/templates/primary/config/config.exs b/priv/templates/primary/config/config.exs index 1869d50..a0621e2 100644 --- a/priv/templates/primary/config/config.exs +++ b/priv/templates/primary/config/config.exs @@ -19,7 +19,7 @@ config :temple, <%= if @assets == "tailwind" do %> config :tailwind, - version: "4.0.9", + version: "4.1.0", default: [ args: ~w( --input=assets/css/site.css @@ -34,14 +34,22 @@ config :tableau, :config, url: "http://localhost:4999", markdown: [ mdex: [ - extension: [table: true, header_ids: "", tasklist: true, strikethrough: true], - render: [unsafe_: true], - features: [syntax_highlight_theme: "kanagawa"] + extension: [ + table: true, + header_ids: "", + tasklist: true, + strikethrough: true, + autolink: true, + alerts: true, + footnotes: true + ], + render: [unsafe: true], + syntax_highlight: [formatter: {:html_inline, theme: "neovim_dark"}] ] ] config :tableau, Tableau.PageExtension, enabled: true -config :tableau, Tableau.PostExtension, enabled: true, future: true +config :tableau, Tableau.PostExtension, enabled: true config :tableau, Tableau.DataExtension, enabled: true config :tableau, Tableau.SitemapExtension, enabled: true diff --git a/priv/templates/primary/config/dev.exs b/priv/templates/primary/config/dev.exs index becde76..a34d2eb 100644 --- a/priv/templates/primary/config/dev.exs +++ b/priv/templates/primary/config/dev.exs @@ -1 +1,4 @@ import Config + +config :tableau, Tableau.PageExtension, dir: ["_pages", "_wip"] +config :tableau, Tableau.PostExtension, future: true, dir: ["_posts", "_drafts"] diff --git a/priv/templates/primary/config/prod.exs b/priv/templates/primary/config/prod.exs index a172653..20bd0ab 100644 --- a/priv/templates/primary/config/prod.exs +++ b/priv/templates/primary/config/prod.exs @@ -1,4 +1,5 @@ import Config config :tableau, :config, url: "https://example.com" -config :tableau, Tableau.PostExtension, future: false +config :tableau, Tableau.PostExtension, future: false, dir: ["_posts"] +config :tableau, Tableau.PageExtension, dir: ["_pages"] diff --git a/priv/templates/primary/mix.exs b/priv/templates/primary/mix.exs index 401e0e0..fb883bf 100644 --- a/priv/templates/primary/mix.exs +++ b/priv/templates/primary/mix.exs @@ -23,7 +23,7 @@ defmodule <%= @app_module %>.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ - {:tableau, "~> 0.17"}<%= if @assets == "tailwind" do %>, + {:tableau, "~> 0.25"}<%= if @assets == "tailwind" do %>, {:tailwind, "~> 0.3", runtime: Mix.env() == :dev}<% end %><%= if @template == "temple" do %>, {:temple, "~> 0.12"}<% end %><%= if @template == "heex" do %>, {:phoenix_live_view, "~> 1.0"}<% end %>