Compare commits

...

6 Commits

Author SHA1 Message Date
meaz 37422abb75
remove empty task file 2024-03-24 13:58:39 +01:00
meaz d1dd57ecf1
add tafs and hugo serve task 2024-03-24 13:58:17 +01:00
meaz 74d8c3df2a
update config 2024-03-24 13:57:58 +01:00
meaz 77c25a0283
add tags 2024-03-24 13:57:49 +01:00
meaz 8225e792f2
fix typo 2024-03-24 13:57:42 +01:00
meaz e7b1aec68a
update readme 2024-03-24 13:57:24 +01:00
6 changed files with 26 additions and 7 deletions

View File

@ -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)

View File

@ -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

View 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

View File

View File

@ -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

View File

@ -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