File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches :
6- - master
6+ - main
77
88permissions :
99 contents : write # Required for deploying to gh-pages branch
Original file line number Diff line number Diff line change 1+ * .DS_Store
2+ .vscode /
3+ build /
4+
Original file line number Diff line number Diff line change @@ -5,19 +5,22 @@ build_dir = repo
55preview :
66 python $(server )
77
8+ build :
9+ python $(server ) build
10+
811# usage: make push m="commit message"
912push :
1013 git add -A && \
1114 git commit -m " $( m) " && \
12- git push origin master
15+ git push origin main
1316
1417# usage: make deploy m="commit message"
1518deploy :
1619 python $(server ) build && \
1720 cd ../deploy && \
18- git pull origin master && \
21+ git pull origin main && \
1922 cp -r ../$(build_dir ) /build/* . && \
2023 cp -r ../$(build_dir ) /.gitignore . && \
2124 git add -A && \
2225 git commit -m ' deploy: $(m)' && \
23- git push origin master
26+ git push origin main
Original file line number Diff line number Diff line change 1+ # CodeClash Website
2+
3+ This is the code repository for the CodeClash website, built using Flask and Markdown.
4+
5+ ``` bash
6+ # To run the development server
7+ $ make preview
8+ # To build the static site
9+ $ make build
Original file line number Diff line number Diff line change 1+ click == 8.0.4
2+ Flask == 2.0.3
3+ Flask-FlatPages == 0.6
4+ Flask-Markdown == 0.3
5+ Frozen-Flask == 0.15
6+ Jinja2 == 3.1.1
7+ Markdown == 2.6.9
8+ urllib3 >= 1.24.2
9+ Werkzeug == 2.2.2
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ <h1>Arenas</h1>
1212 {% if page.image %}
1313 < img src ="{{ page.image }} " alt ="{{ page.title }} ">
1414 {% endif %}
15- < h3 style ="margin: 0 auto; "> {{ page.title }}</ h3 >
15+ < a href ="{{ url_for( "page ", path=page.path) }} ">
16+ < b > {{ page.title }}</ b >
17+ </ a >
1618 < p style ="margin: 0.5em auto; "> {{ page.description }}</ p >
1719 </ div >
1820 {%- endfor %}
You can’t perform that action at this time.
0 commit comments