b33c48c8db
Also add a lot of parenthesis
84 lines
3.1 KiB
Text
84 lines
3.1 KiB
Text
# This file is responsible for configuring your application
|
|
# and its dependencies with the aid of the Mix.Config module.
|
|
#
|
|
# This configuration file is loaded before any dependency and
|
|
# is restricted to this project.
|
|
use Mix.Config
|
|
|
|
# Configures the endpoint
|
|
config :mebe_web, MebeWeb.Endpoint,
|
|
url: [host: "localhost"],
|
|
root: Path.expand("..", __DIR__),
|
|
secret_key_base: "SECRET",
|
|
debug_errors: false,
|
|
pubsub: [name: MebeWeb.PubSub,
|
|
adapter: Phoenix.PubSub.PG2]
|
|
|
|
# Custom blog configs
|
|
config :mebe_web,
|
|
# The path to crawl post and page data from. No trailing slash, use an absolute path.
|
|
data_path: "/path/to/mebe/data",
|
|
|
|
blog_name: "My awesome blog",
|
|
blog_author: "Author McAuthor",
|
|
absolute_url: "http://localhost:4000", # Absolute URL to the site without trailing slash, including protocol
|
|
|
|
multi_author_mode: false, # Set to true to show author header from posts, if available (blog_author will be used as default)
|
|
use_default_author: true, # If multi author mode is on, use blog_author as default author (if this is false, no author will be set if post has no author header)
|
|
|
|
force_read_more: false, # Force "Read more…" text to display even if there is no more content
|
|
|
|
enable_feeds: false, # Set to true to enable RSS feeds
|
|
feeds_full_content: false, # Show full content in feeds instead of short content
|
|
|
|
posts_per_page: 10,
|
|
posts_in_feed: 20,
|
|
|
|
# Disqus comments
|
|
disqus_comments: false, # Use Disqus comments
|
|
page_commenting: false, # Show comments for pages too
|
|
disqus_shortname: "my-awesome-blog",
|
|
|
|
# Extra HTML that is injected to every page, right before </body>. Useful for analytics scripts.
|
|
extra_html: """
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'my-googleanalytics-id', 'auto');
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
|
""",
|
|
|
|
# Custom HTML for the footer of the site
|
|
# Set to nil to use default footer
|
|
custom_footer_html: nil,
|
|
|
|
# Custom templates
|
|
# Set to true for any view you want to use custom templates for.
|
|
# If using custom templates for a view, create a folder web/templates/custom/<viewname>
|
|
# and make a copy of all templates for the view inside the folder.
|
|
# Note that releases will always use the custom templates that were set in
|
|
# the configuration file at release creation time.
|
|
custom_templates: %{
|
|
"ErrorView" => false,
|
|
"FeedView" => false,
|
|
"PageView" => false,
|
|
"LayoutView" => false # Base layouts
|
|
},
|
|
|
|
use_default_style: true, # Use the default builtin style.css
|
|
custom_style_path: '/custom.css' # Path to custom style CSS, appended to absolute_url. Set to nil to disable
|
|
|
|
|
|
# Configures Elixir's Logger
|
|
config :logger, :console,
|
|
format: "$time $metadata[$level] $message\n",
|
|
metadata: [:request_id]
|
|
|
|
# Import environment specific config. This must remain at the bottom
|
|
# of this file so it overrides the configuration defined above.
|
|
import_config "#{Mix.env}.exs"
|