Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pico CMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Pico CMS
Commits
b05a8778
Verified
Commit
b05a8778
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Set locale
parent
53b2f0e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.yml
+60
-0
60 additions, 0 deletions
config/config.yml
docker/Dockerfile
+4
-1
4 additions, 1 deletion
docker/Dockerfile
with
64 additions
and
1 deletion
config/config.yml
0 → 100644
+
60
−
0
View file @
b05a8778
##
# Basic
#
site_title
:
Tétras Libre
# The title of your website
base_url
:
~
# Pico will try to guess its base URL, if this fails, override it here;
# Example: https://example.com/pico/
rewrite_url
:
~
# A boolean (true or false) indicating whether URL rewriting is forced
debug
:
~
# Set this to true to enable Pico's debug mode
timezone
:
~
# Your PHP installation might require you to manually specify a timezone
locale
:
fr_FR.utf8
# Your PHP installation might require you to manually specify a locale to use
##
# Theme
#
theme
:
tetras
# The name of your custom theme
themes_url
:
~
# Pico will try to guess the URL to the themes dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/themes/
theme_config
:
# Additional theme-specific config
widescreen
:
~
# Default theme: Use more horizontal space (i.e. make the site container wider)
twig_config
:
# Twig template engine config
autoescape
:
html
# Let Twig escape variables by default
strict_variables
:
false
# If set to true, Twig will bail out when unset variables are being used
charset
:
utf-8
# The charset used by Twig templates
debug
:
~
# Enable Twig's debug mode
cache
:
false
# Enable Twig template caching by specifying a path to a writable directory
auto_reload
:
~
# Recompile Twig templates whenever the source code changes
##
# Content
#
date_format
:
%
c
# Pico's default date format;
# See https://php.net/manual/en/function.strftime.php for more info
pages_order_by_meta
:
Order
# Sort pages by meta value "author" (set "pages_order_by" to "meta")
pages_order_by
:
meta
# Change how Pico sorts pages ("alpha" for alphabetical order, "date", or "meta")
pages_order
:
asc
# Sort pages in ascending ("asc") or descending ("desc") order
content_dir
:
~
# The path to Pico's content directory
content_ext
:
.md
# The file extension of your Markdown files
content_config
:
# Parsedown Markdown parser config
extra
:
true
# Use the Parsedown Extra parser to support extended markup;
# See https://michelf.ca/projects/php-markdown/extra/ for more info
breaks
:
false
# A boolean indicating whether breaks in the markup should be reflected in the
# parsed contents of the page
escape
:
false
# Escape HTML markup in your content files; don't confuse this with some sort of
# safe mode, enabling this doesn't allow you to process untrusted user input!
auto_urls
:
true
# Automatically link URLs found in your markup
assets_dir
:
assets/
# The path to Pico's assets directory
assets_url
:
~
# Pico will try to guess the URL to the assets dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/assets/
##
# Plugins
#
plugins_url
:
~
# Pico will try to guess the URL to the plugins dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/plugins/
DummyPlugin.enabled
:
false
# Force the plugin "DummyPlugin" to be disabled
##
# Custom
#
my_custom_setting
:
Hello World!
# You can access custom settings in themes using {{ config.my_custom_setting }}
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
4
−
1
View file @
b05a8778
...
@@ -5,10 +5,13 @@ RUN composer create-project --no-interaction picocms/pico-composer pico
...
@@ -5,10 +5,13 @@ RUN composer create-project --no-interaction picocms/pico-composer pico
FROM
php:7.4-apache
FROM
php:7.4-apache
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get
install
-y
libonig-dev libxml2-dev
&&
\
apt-get
install
-y
libonig-dev libxml2-dev
locales
&&
\
docker-php-ext-install
-j
$(
nproc
)
dom mbstring
&&
\
docker-php-ext-install
-j
$(
nproc
)
dom mbstring
&&
\
docker-php-ext-enable dom mbstring
docker-php-ext-enable dom mbstring
RUN
sed
-i
-e
's/# fr_FR.UTF-8/fr_FR.UTF-8/'
/etc/locale.gen
&&
\
locale-gen
RUN
rm
-rf
/var/www/html
RUN
rm
-rf
/var/www/html
COPY
--from=builder /app/pico /var/www/html
COPY
--from=builder /app/pico /var/www/html
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment