Skip to content

[Snyk] Fix for 4 vulnerabilities #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 281 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
281 commits
Select commit Hold shift + click to select a range
ad234b1
feat: add social meta tags
Nov 27, 2021
472303b
Merge branch 'lum/social-meta-tags' into 'master'
WillRuddick Nov 27, 2021
ece4e59
Merge branch 'lum/rst-to-md' into 'master'
WillRuddick Nov 27, 2021
2226c02
fix: image meta url
Nov 27, 2021
23ad826
Merge branch 'fix/image-meta-url' into 'master'
Nov 27, 2021
b855e37
docs: update blog article creation
Nov 27, 2021
cb6c921
Merge branch 'docs/update-blog-creation' into 'master'
Nov 27, 2021
e4f1b73
add public to gitignore
bvanderlugt Nov 27, 2021
8f7ac0a
adding recapture
Idaapayo Nov 30, 2021
964b457
Merge branch 'Ida/pelican' into 'master'
Idaapayo Nov 30, 2021
04c4fd1
Revert "fix `make devserver`"
WillRuddick Dec 2, 2021
2ed7bed
Merge branch 'revert-10d2ba14' into 'master'
Dec 2, 2021
d1c1fb2
changing the contact us page
Idaapayo Dec 6, 2021
9d35a7a
Merge branch 'master' of gitlab.com:grassrootseconomics/pelican-websi…
Idaapayo Dec 7, 2021
abc0ab9
updates to about us and research pages
WillRuddick Dec 9, 2021
e2f36c2
Merge branch 'will' into 'master'
WillRuddick Dec 9, 2021
6deaf65
removed buttons on research page
WillRuddick Dec 9, 2021
606ec5f
Merge branch 'will' into 'master'
WillRuddick Dec 9, 2021
2661801
Merge branch 'Ida/pelican'
Idaapayo Dec 12, 2021
a70fc09
padding changes
Idaapayo Dec 12, 2021
2bf7189
removing dead links
Idaapayo Dec 20, 2021
fd22989
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 20, 2021
613199b
remove remaining links
Idaapayo Dec 20, 2021
7560424
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 20, 2021
17ec744
more links fixed
Idaapayo Dec 20, 2021
f603306
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 20, 2021
d00d1e8
more links fix
Idaapayo Dec 20, 2021
a415394
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 20, 2021
c7237a2
putting all filesusr files locally
Idaapayo Dec 23, 2021
3dcb6fa
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 23, 2021
8c54541
img resize in homepage
Idaapayo Dec 23, 2021
19d4288
Merge branch 'Ida/pelican' into 'master'
Idaapayo Dec 23, 2021
b2bfb1f
feat: add shynet analytics
kamikazechaser Dec 30, 2021
f068b6e
Merge branch 'sohail/analytics' into 'master'
WillRuddick Dec 31, 2021
b05458b
added 2021 blog
WillRuddick Dec 31, 2021
9bdd21a
added 2021 blog2
WillRuddick Dec 31, 2021
7dab44c
Merge branch 'willys' into 'master'
WillRuddick Dec 31, 2021
998efec
corrections
WillRuddick Jan 2, 2022
80ce7a5
Merge branch 'master' into 'willys'
WillRuddick Jan 2, 2022
2e654e0
Merge branch 'willys' into 'master'
WillRuddick Jan 2, 2022
77ab0a2
added link for RCT
WillRuddick Jan 9, 2022
3dade5c
Merge branch 'willy/research1' into 'master'
WillRuddick Jan 9, 2022
cc6c9dd
dignity blog
WillRuddick Jan 29, 2022
3e5d432
Merge branch 'dignityblog' into 'master'
WillRuddick Jan 29, 2022
9c9602e
blog typos
WillRuddick Jan 30, 2022
e1ff731
Merge branch 'dignityblog' into 'master'
WillRuddick Jan 30, 2022
105492f
blog title
WillRuddick Jan 30, 2022
d019235
Merge branch 'dignityblog' into 'master'
WillRuddick Jan 30, 2022
b78818c
added WFP launching blog
WillRuddick Feb 15, 2022
55ad3e0
Merge branch 'joyceblog' into 'master'
WillRuddick Feb 15, 2022
16fab95
blog fixes
WillRuddick Feb 17, 2022
bfbff70
Merge branch 'joyceblog' into 'master'
WillRuddick Feb 17, 2022
5466d9b
blog fixes2
WillRuddick Feb 17, 2022
41a03c7
Merge branch 'joyceblog' into 'master'
WillRuddick Feb 17, 2022
3591c72
voucher blog
WillRuddick Feb 23, 2022
ce64876
voucher blog2
WillRuddick Feb 23, 2022
7d2a84c
Merge branch 'comvblog' into 'master'
WillRuddick Feb 23, 2022
0169788
about-how-sarafu
WillRuddick Feb 24, 2022
f92358e
Merge branch 'about-sarafu' into 'master'
WillRuddick Feb 24, 2022
5187e8f
kitui launch blog
WillRuddick May 21, 2022
a4b52c5
Merge branch 'kitui-blog-launch1' into 'master'
WillRuddick May 21, 2022
6333548
musheshe blog
WillRuddick Jun 12, 2022
3d688e9
musheshe blog2
WillRuddick Jun 12, 2022
b319cb7
Merge branch 'musheshe-v-blog' into 'master'
WillRuddick Jun 12, 2022
5e7576a
musheshe blog3
WillRuddick Jun 12, 2022
185dff0
Merge branch 'musheshe-v-blog' into 'master'
WillRuddick Jun 12, 2022
ce56d37
musheshe blog4
WillRuddick Jun 12, 2022
f109008
Merge branch 'musheshe-v-blog' into 'master'
WillRuddick Jun 12, 2022
4d9bab2
musheshe blog5
WillRuddick Jun 13, 2022
17b63b7
Merge branch 'musheshe-v-blog' into 'master'
WillRuddick Jun 13, 2022
c768eb6
musheshe blog6
WillRuddick Jun 13, 2022
e632289
musheshe blog7
WillRuddick Jun 13, 2022
d4013ab
Merge branch 'musheshe-v-blog' into 'master'
WillRuddick Jun 13, 2022
b5f22de
Update ge-theme/templates/about-us.html
WillRuddick Jul 8, 2022
372bae5
Update ge-theme/static/images/aboutus-imgs/eck.webp
WillRuddick Jul 8, 2022
ff511f1
Update ge-theme/templates/about-us.html
WillRuddick Jul 26, 2022
a7481b3
added midyear 2022 blog
WillRuddick Jul 27, 2022
6384685
Merge branch 'midyear' into 'master'
WillRuddick Jul 27, 2022
fa4c7fb
changed dashboard link
WillRuddick Jul 27, 2022
2412878
Merge branch 'midyear' into 'master'
WillRuddick Jul 27, 2022
27f3f3b
blog typo
WillRuddick Jul 27, 2022
6ced429
Merge branch 'midyear' into 'master'
WillRuddick Jul 27, 2022
7cc3fc4
added research articles
WillRuddick Jul 27, 2022
42ae94d
Merge branch 'midyear' into 'master'
WillRuddick Jul 27, 2022
3d89db2
Update ge-theme/templates/contactpage.html
WillRuddick Jul 30, 2022
b8985b6
added worgl blog
WillRuddick Aug 9, 2022
9499eb7
Merge branch 'worgl-blog' into 'master'
WillRuddick Aug 9, 2022
617327f
Update content/Blog/worgl.md
WillRuddick Aug 9, 2022
53395aa
added uteo blog
WillRuddick Aug 17, 2022
7ce6dab
Merge branch 'uteo' into 'master'
WillRuddick Aug 17, 2022
5714a5a
added debt blog
WillRuddick Sep 2, 2022
d54f38a
altered debt blog
WillRuddick Sep 2, 2022
bfd636c
altered debt blog sp1
WillRuddick Sep 2, 2022
cdd4d25
unsafari-blog
WillRuddick Sep 9, 2022
8fec7bd
unsafari-blog2
WillRuddick Sep 9, 2022
7e71254
unsafari-blog3
WillRuddick Sep 9, 2022
7dd4a3b
added good-credit blog1
WillRuddick Sep 12, 2022
61d20e7
remove: large file
kamikazechaser Sep 13, 2022
64022ae
analytics: update to umami
kamikazechaser Sep 13, 2022
4def9c8
added lgbtqi blog
WillRuddick Oct 18, 2022
ecc3942
patch: broken deps
kamikazechaser Oct 18, 2022
78c2f0d
added lgbtqi blog2
WillRuddick Oct 18, 2022
6aecf86
added lgbtqi blog3
WillRuddick Oct 18, 2022
77f75cc
added bangla blog1
WillRuddick Oct 18, 2022
bb1e2e6
added kilifi blog1
WillRuddick Oct 18, 2022
af5c32e
added travel blog 1
WillRuddick Oct 24, 2022
4713805
updated SRF info
WillRuddick Nov 10, 2022
d244fdc
added celo-blog
WillRuddick Dec 1, 2022
3b13099
added celo-blog typos
WillRuddick Dec 1, 2022
84ac931
added notes on Celo
WillRuddick Dec 3, 2022
dd8f49d
added notes on Celo2
WillRuddick Dec 3, 2022
d7c7b3c
added notes on Celo3
WillRuddick Dec 3, 2022
d966ace
added notes on Celo4
WillRuddick Dec 3, 2022
36063a2
added mweria blog
WillRuddick Dec 5, 2022
a8d66d3
added mweria blog2
WillRuddick Dec 5, 2022
0d39e69
added mweria blog3
WillRuddick Dec 5, 2022
f0440d5
added mweria blog4
WillRuddick Dec 5, 2022
e709abd
added mweria blog5
WillRuddick Dec 5, 2022
8dd486b
added 2022 recap
WillRuddick Dec 16, 2022
0ae2969
added 2022 recap2
WillRuddick Dec 17, 2022
d9f1a1f
added 2022 recap3
WillRuddick Dec 17, 2022
e99f393
added 2022 recap4
WillRuddick Dec 17, 2022
0324177
added 2022 recap5
WillRuddick Dec 17, 2022
77a9e3a
added blog on Family Time Banks
WillRuddick Dec 26, 2022
9f64939
added trad-regen blog
WillRuddick Jan 29, 2023
5c5a49f
added trad-regen blog2
WillRuddick Jan 29, 2023
99caf57
added trad-regen blog3
WillRuddick Jan 30, 2023
250d189
added wfp-kitui blog
WillRuddick Feb 22, 2023
1bfffcd
added wfp-kitui blog typo
WillRuddick Feb 22, 2023
1c20750
added wfp-kitui blog typo2
WillRuddick Feb 22, 2023
81fe804
removng WFP Kenya offce
WillRuddick Feb 28, 2023
35ac2bc
adjust WFP blog
WillRuddick Mar 2, 2023
9762e91
adjust WFP blog title
WillRuddick Mar 2, 2023
4df0bfe
added AFD research
WillRuddick Mar 5, 2023
67b3e07
added AFD research pdf fix
WillRuddick Mar 6, 2023
d276531
fix: alert on research page load
Mar 10, 2023
1c7b016
added Wagur blog
WillRuddick Mar 11, 2023
bdd5b19
added mukuru-blog
WillRuddick Mar 13, 2023
31acda7
added Mwethya blog
WillRuddick Mar 22, 2023
3d90b19
added Mwethya blog2
WillRuddick Mar 22, 2023
bff96d4
updated getInvolved
WillRuddick Apr 6, 2023
d8305bc
changed get involed photo
WillRuddick Apr 6, 2023
405335c
added Mombasa-grass
WillRuddick Apr 22, 2023
697c790
added Mombasa-grass2
WillRuddick Apr 22, 2023
188ac64
labour day 2023 blog
WillRuddick May 1, 2023
be68ac2
added family blog
WillRuddick May 8, 2023
84d0d40
added family blog2
WillRuddick May 8, 2023
d38ef88
added family blog3
WillRuddick May 8, 2023
184d8aa
added family blog4
WillRuddick May 8, 2023
9e3076d
added more on about
WillRuddick May 11, 2023
910f111
added more on about2
WillRuddick May 11, 2023
d24a271
added unsafari2023
WillRuddick May 15, 2023
6cbb34a
added unsafari2023-2
WillRuddick May 15, 2023
6b69f5d
added unsafari2023-3
WillRuddick May 15, 2023
0d22b9f
added utsi blog1
WillRuddick Jun 18, 2023
2a5ff6d
added utsi blog2
WillRuddick Jun 23, 2023
e729a4b
added muu-jubilee
WillRuddick Jul 5, 2023
93a4c1e
added muu-jubilee2
WillRuddick Jul 5, 2023
a64cb8d
added muu-jubilee3
WillRuddick Jul 5, 2023
d3322f2
added kickstarting1
WillRuddick Jul 7, 2023
2576df7
added kickstarting2
WillRuddick Jul 7, 2023
30d9fda
added kickstarting3
WillRuddick Jul 7, 2023
f184050
added kickstarting4
WillRuddick Jul 7, 2023
b7ab9a9
added red-cross-cav
WillRuddick Jul 19, 2023
8c77ebd
added red-cross-cav2
WillRuddick Jul 19, 2023
5358981
added cic-stack-update
WillRuddick Jul 21, 2023
be8e2be
added swap-pools1
WillRuddick Jul 27, 2023
4b3959a
added EthCC-CoFi1
WillRuddick Jul 28, 2023
d297194
addedgoob-blog1
WillRuddick Jul 29, 2023
8f71ecd
addedgoob-blog2
WillRuddick Jul 29, 2023
181010f
addedgoob-mwerya1
WillRuddick Aug 1, 2023
1f84d15
added-kitui-jubilee
WillRuddick Aug 1, 2023
a2fad4d
added blog bonds-blessing
WillRuddick Aug 24, 2023
20915b3
added blog Kigali
WillRuddick Aug 25, 2023
46a3012
added Kaya Blog
WillRuddick Aug 25, 2023
c758f40
added Kaya Blog2
WillRuddick Aug 25, 2023
02ec3aa
added research paper
WillRuddick Aug 28, 2023
27461b3
added research paper2
WillRuddick Aug 28, 2023
c69ce90
new blog
WillRuddick Oct 8, 2023
01271cb
new blog images
WillRuddick Oct 8, 2023
b75a4f0
updated CIC to CAV
WillRuddick Oct 26, 2023
cf07c1b
updated CIC to CAV2
WillRuddick Oct 26, 2023
d236e92
trust-graph
WillRuddick Oct 29, 2023
ac3d931
trust-graph-blog
WillRuddick Oct 29, 2023
e4fc393
trust-graph-blog2
WillRuddick Oct 29, 2023
31a8f4f
trust-graph-blog3
WillRuddick Oct 29, 2023
1a6fcdf
trust-graph-blog3
WillRuddick Oct 29, 2023
d2c6055
2023-end-year-report
WillRuddick Dec 9, 2023
0a468b1
2023-end-year-report2
WillRuddick Dec 9, 2023
5dd97a0
2023-end-year-report3
WillRuddick Dec 9, 2023
74d8008
2023-end-year-report4
WillRuddick Dec 9, 2023
096153c
updated report4
WillRuddick Dec 9, 2023
f69bf9e
updated report5
WillRuddick Dec 9, 2023
f934c1b
updated report7
WillRuddick Dec 9, 2023
5ca9539
updated report8
WillRuddick Dec 9, 2023
c40e48b
Celo-Staking Proposal Blog 1
WillRuddick Feb 13, 2024
41d932b
Celo-Staking Proposal Blog 2
WillRuddick Feb 13, 2024
59f1ffa
Celo-Staking Proposal Blog 3
WillRuddick Feb 13, 2024
87023f6
Celo-Staking Proposal Blog 4
WillRuddick Feb 13, 2024
8dda852
fix: change link to raw
Feb 14, 2024
9f3ac2c
refactor: update umami tracker
kamikazechaser Feb 15, 2024
23cab45
Commitment-Pooling Blog 1
WillRuddick Feb 19, 2024
1e94843
Commitment-Pooling Blog 2
WillRuddick Feb 19, 2024
d476100
updated core pages1
WillRuddick Mar 1, 2024
4022a2f
updated commitment pooling
WillRuddick Mar 7, 2024
c7bdf6c
updated commitment pooling2
WillRuddick Mar 11, 2024
9334b2b
updated commitment pooling3
WillRuddick Mar 15, 2024
5b45050
updated commitment pooling m-25
WillRuddick Mar 25, 2024
a0dcb48
doc blog update and some site adjustments
WillRuddick Apr 13, 2024
40a00b7
doc blog update and some site adjustments2
WillRuddick Apr 13, 2024
131bece
updated home page
WillRuddick Apr 19, 2024
38179d5
refugee-blog
WillRuddick Apr 28, 2024
e9d3c47
update on about spelling
WillRuddick Apr 29, 2024
ae5aeb9
research paper-ijccr1
WillRuddick May 14, 2024
f9401eb
research paper-ijccr2
WillRuddick May 14, 2024
7a25e9c
updated donations
WillRuddick May 17, 2024
b174705
added self-sustaining blog
WillRuddick May 21, 2024
7f89300
added self-sustaining blog2
WillRuddick May 21, 2024
094f755
added self-sustaining blog3
WillRuddick May 21, 2024
135aa6f
Njmabi Blog on local and refugees
WillRuddick May 30, 2024
1e20874
blog mweria-video
WillRuddick Jun 21, 2024
1369e5a
blog wafq
WillRuddick Aug 8, 2024
a366162
blog wafq2
WillRuddick Aug 8, 2024
f47809d
blog wafq3
WillRuddick Aug 8, 2024
8ee3e05
blog wafq4
WillRuddick Aug 8, 2024
c5e5f8e
blog wafq5
WillRuddick Aug 8, 2024
08b582a
blog wafq6
WillRuddick Aug 8, 2024
99e15b2
blog wafq7
WillRuddick Aug 8, 2024
7810f47
blog wafq8
WillRuddick Aug 8, 2024
22be59c
blog wafq9
WillRuddick Aug 8, 2024
65d6825
blog wafq10
WillRuddick Aug 8, 2024
ac50be5
blog wafq10
WillRuddick Aug 8, 2024
0c92030
blog wafq11
WillRuddick Aug 8, 2024
d1dd3dc
blog wafq12
WillRuddick Aug 8, 2024
f762151
blog wafq13
WillRuddick Aug 8, 2024
5d8a305
blog wafq14
WillRuddick Aug 8, 2024
478c581
blog wafq15
WillRuddick Aug 8, 2024
332a5b9
blog rome1
WillRuddick Aug 21, 2024
b979e0f
added 2-year-wfp pilot
WillRuddick Sep 9, 2024
54783ac
added 2-year-wfp pilot2
WillRuddick Sep 9, 2024
78540fa
added 2-year-wfp pilot3
WillRuddick Sep 9, 2024
088b024
added 2-year-wfp pilot4
WillRuddick Sep 9, 2024
01b55d1
added 2-year-wfp pilot5
WillRuddick Sep 9, 2024
c1cfbe3
added 2-year-wfp pilot6
WillRuddick Sep 9, 2024
31752af
added 2-year-wfp pilot6 table added
WillRuddick Sep 9, 2024
0e69423
added 2-year-wfp pilot6 table added2
WillRuddick Sep 9, 2024
fa32b69
Update Food forests.html
WillRuddick Oct 20, 2024
426906e
Update home-template.html
AudePeronne Oct 20, 2024
822c98e
Update home-template.html
AudePeronne Oct 20, 2024
f28bfd3
fix: requirements.txt to reduce vulnerabilities
snyk-bot Oct 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
915 changes: 0 additions & 915 deletions .firebase/hosting.b3V0cHV0.cache

This file was deleted.

5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/firebase-hosting-merge.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/firebase-hosting-pull-request.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ output/
node_modules/
.venv/
standalone-deploy/data/certbot
.idea/
public/
*~
34 changes: 19 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
stages:
- build
- test
- deploy
image: python:3.8-alpine

image: docker:19.03.12

before_script:
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
pages:
stage: deploy
script:
- apk add --update --no-cache make subversion
- pip install -r requirements.txt
- make publish
artifacts:
paths:
- public/
rules:
- if: '$CI_COMMIT_BRANCH == "master"'

build:
stage: build
tags:
- integration
test:
stage: test
script:
- docker build -t $CI_REGISTRY_IMAGE:${TAG:-latest} .
- docker push $CI_REGISTRY_IMAGE:${TAG:-latest}
- apk update && apk add make
- pip install -r requirements.txt
- make publish
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/grassroots-pelican.iml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

66 changes: 66 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PELICANOPTS=

BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
OUTPUTDIR=$(BASEDIR)/public
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py

Expand Down
142 changes: 133 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,143 @@
# GRASSROOTS NEW STATIC WEBSITE
# Grassroots Pelican Webiste

A static website built with pelican.

## INSTRUCTIONS ON HOW TO BUILD
## Instructions for building and running the website

```angular2html
python3 -m venv env
source env/bin/activate
### Pulling the website to local computer

- Clone the Webiste

`git clone https://gitlab.com/grassrootseconomics/pelican-website-ge.git`

- Navigate into the folder

`cd pelican-website-ge`

- Create Your own branch off the master branch

`git checkout -b <name_of_your_branch> origin/master`

- Create a virtual environment and install requirements

```
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
make devserver
```
## With Docker

docker build -t ge-blog .
- Test to see if the pull is successful. Ensure you are in the root directory grassroots-pelican then run `make devserver` or `pelican --autoreload --listen`
The site will be at `127.0.0.1:8000` in the browser

### Making a blog entry

- Ensure you are in the root of the working directory grassroots-pelican

- Navigate to `content/Blog` directory. You should see a list of files ending with `.md`

- Create a new file and name it. The name should preferably be the first 3 words of your title separated by a hyphen. For example if your title is ‘Introducting grassroots NFTS’ your filename should be `introducing-grassroots-nfts.md`. No special characters or capital letters in the filename.

- Markdown Cheatsheet: https://www.markdownguide.org/cheat-sheet/
- Your file must have the title, author or authors, date and slug. For example:

```
Title: 2021 Mid Year CIC Update
Author: Will Ruddick
Date: May 11 2021
Slug: 2021-mid
```

- The date should follow the format above

- The slug should be the first two or three words of the title separated by a hyphen. No capital letters or special characters in the slug

- The file can have other additional headers like summary and tags. For example:

```
Summary: We grew from a few thousands users to over 50,000 and have seen roughly 3 Million USD worth of trade between users for basic needs.
Tags: update

```

- The summary is the summary of the blog that appears in the blog feed

- The tags are the tags of the blog

- Ensure there is at least two lines of space between you headers and content

- Subtitles can be written like this

```
## Back to Basics
```

- Links can be written like this

docker run -p 8000:80 ge-blog
```
[research data](http://grassrootseconomics.org/research)
```

- Research data will appear as the clickable text.

- Paragraphs are written like normal text. To separate two paragraphs, skip a line between them.

#### Adding images

- For an image to appear in the blog feed, The first image in the blog must be named slug1.jpg/webp/png. For this example, the first image is stored as 2021-mid1.webp and linked like this:

```
![2021-mid1](images/blog/2021-mid1.webp)
```

- Images are stored in the images/blog directory

#### Adding videos

- To add youtube embedded videos, right click on the video on youtube then select copy embedded code then insert it under
Example:

```
<iframe width="740" height="416" src="https://www.youtube.com/embed/mlcov4Gy_mI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
```

- Any changes made to the `content/Blog` directory should be seen in the Blog page when you run `make devserver` or `pelican --autoreload --listen` in the root of your directory. Ensure you have activated your python environment.

### Pushing your changes

Once you are satisfied with the build in your local computer, you can push your changes

```
git checkout <your-branch-name>
git add .
git commit -m "new blog entry"
git push -u origin <your-branch-name>

```

Once this is complete, create a merge request on gitlab for your latest commit and merge it to the master branch.

You should see your changes on the deployed site at https://grassecon.net/

Note: Always ensure you pull from master first before making any changes

```
git checkout <name-of-your-branch>
git pull origin master
```

### Standalone Deploy (Devops)

**On a new or existing droplet (requires docker and docker-compose)**

```sh
# Make sure the A name choosen point to the droplet IP
# Replace domain name init-cert.sh (line 8) and data/nginx.conf (lines 3,16,20,21)

$ cd standalone-deploy && bash init-cert.sh
$ docker build -t ge-blog -f Dockerfile ../
$ docker run -d -p 80:80 -p 443:443 -v $(pwd)/data/certbot/conf:/etc/letsencrypt -v $(pwd)/data/certbot/www:/var/www/certbot ge-blog

# Check if http->https redirect works https://httpstatus.io/
# http://grassecon.net
# https://grassecon.net
```
Loading