Merge pull request 'meazdev' (#5) from meazdev into main
Reviewed-on: #5
This commit is contained in:
commit
ada50a31b0
6 changed files with 26 additions and 7 deletions
|
@ -33,7 +33,7 @@ Once done, you can create issues files inside the `share/content/issues/` folder
|
|||
|
||||
If you update the config file and want to generate new pages, you can run `ansible-playbook -b Playbooks/cstate.yml --tags configfile`
|
||||
|
||||
To update cstate just include `--tags update` to your playbook.
|
||||
To update cstate just include `--tags update,never` to your playbook.
|
||||
|
||||
## Issue with vagrant
|
||||
You may have to add `sendfile off;` to your Nginx config when using the role with Vagrant and a synced folder. See [info](https://www.vagrantup.com/docs/synced-folders/virtualbox)
|
||||
|
|
|
@ -12,7 +12,7 @@ cstate_apt:
|
|||
|
||||
cstate_username: 'www-data'
|
||||
cstate_group: 'www-data'
|
||||
cstate_repo: 'https://github.com/cstate/example.git' # Replace by your own cstate repo once built and hosted. It will be your "theme "repo.
|
||||
cstate_repo: 'https://github.com/cstate/example.git' # Replace by your own cstate repo once built and hosted. It will be your "theme" repo.
|
||||
cstate_dir: '/var/www/cstate'
|
||||
|
||||
# Config file
|
||||
|
|
|
@ -7,10 +7,16 @@
|
|||
become: true
|
||||
become_user: "{{ cstate_username }}"
|
||||
when: cstate_content_init is defined and cstate_content_init == 'true'
|
||||
|
||||
tags:
|
||||
- configfile
|
||||
- generate
|
||||
|
||||
- name: "[GENERATE] - Generate the public folder and files"
|
||||
shell: hugo
|
||||
args:
|
||||
chdir: '{{ cstate_dir }}'
|
||||
become: true
|
||||
become_user: '{{ cstate_username }}'
|
||||
tags:
|
||||
- configfile
|
||||
- generate
|
|
@ -6,6 +6,19 @@
|
|||
chdir: '{{ cstate_dir }}'
|
||||
become: yes
|
||||
become_user: '{{ cstate_username }}'
|
||||
tags:
|
||||
- update
|
||||
- never
|
||||
|
||||
- name: "[UPDATE] - Generate the public folder and files"
|
||||
shell: hugo serve
|
||||
args:
|
||||
chdir: '{{ cstate_dir }}'
|
||||
become: true
|
||||
become_user: '{{ cstate_username }}'
|
||||
tags:
|
||||
- update
|
||||
- never
|
||||
|
||||
# - name: "[UPDATE] - Update the cState theme"
|
||||
# shell: git add -A; git commit -m "Update cState"; git push origin master; exit
|
||||
|
|
|
@ -76,7 +76,7 @@ languageCode: {{ cstate_languageCode }}
|
|||
# For enableMissingTranslationPlaceholders—
|
||||
# do not set it to true for languages other
|
||||
# than English! When tested with Lithuanian,
|
||||
# it would add unnecesary placeholders to
|
||||
# it would add unnecessary placeholders to
|
||||
# values that were intentionally empty.
|
||||
defaultContentLanguage: {{ cstate_defaultContentLanguage }}
|
||||
|
||||
|
@ -133,7 +133,7 @@ params:
|
|||
# and the user can expand by clicking on the category
|
||||
# (Requires JavaScript.)
|
||||
# - untitled boolean `untitled: true`
|
||||
# This would complerely hide the name of the category.
|
||||
# This would completely hide the name of the category.
|
||||
# This is useful, if you do not want to use categories
|
||||
# because you need to set an 'Uncategorized' category.
|
||||
# Or it can be used alongside other categories.
|
||||
|
@ -198,7 +198,7 @@ params:
|
|||
# Should relative time (x min ago) be used?
|
||||
#
|
||||
# IMPORTANT: In the frontmatter, the dates MUST be in
|
||||
# the UTC time zone for this to work preperly. If you
|
||||
# the UTC time zone for this to work properly. If you
|
||||
# use Netlify CMS, all good — the CMS picks UTC time
|
||||
# by default. Otherwise, there may be very inaccurate
|
||||
# times if multiple time zones are in your issue files.
|
||||
|
@ -421,4 +421,4 @@ outputs:
|
|||
outputFormats:
|
||||
svg:
|
||||
isPlainText: true
|
||||
mediaType: image/svg+xml
|
||||
mediaType: image/svg+xml
|
||||
|
|
Loading…
Reference in a new issue