Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions priv/templates/primary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
18 changes: 13 additions & 5 deletions priv/templates/primary/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions priv/templates/primary/config/dev.exs
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
import Config

config :tableau, Tableau.PageExtension, dir: ["_pages", "_wip"]
config :tableau, Tableau.PostExtension, future: true, dir: ["_posts", "_drafts"]
3 changes: 2 additions & 1 deletion priv/templates/primary/config/prod.exs
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion priv/templates/primary/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down