Skip to content

Commit a8cb33d

Browse files
authored
Merge pull request #7 from WassCodeur/main
Add GitHub and YouTube redirection endpoints; update social media links
2 parents e3eb215 + 850171c commit a8cb33d

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,12 @@ async def privacy(request: Request):
18511851
url="https://meet.google.com/mnt-zerh-oqw", status_code=301
18521852
)
18531853
)
1854+
app.get("/github")(
1855+
lambda: RedirectResponse(url="https://github.com/python-togo", status_code=301)
1856+
)
1857+
app.get("/youtube")(
1858+
lambda: RedirectResponse(url="https://www.youtube.com/@PythonTogo", status_code=301)
1859+
)
18541860

18551861

18561862
if __name__ == "__main__":

templates/base.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,46 +153,46 @@ <h4><span>{{ t.get('footer-contact-title','Contact') }}</span></h4>
153153
</div>
154154

155155
<div class="social-links" aria-label="Réseaux sociaux">
156-
<a href="https://www.linkedin.com/company/pythontogo/" class="social-link" target="_blank">
156+
<a href="https://www.pytogo.org/linkedin" class="social-link" target="_blank">
157157
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"
158158
fill="currentColor">
159159
<path
160160
d="M4.98 3.5c0 1.381-1.11 2.5-2.48 2.5s-2.48-1.119-2.48-2.5c0-1.38 1.11-2.5 2.48-2.5s2.48 1.12 2.48 2.5zm.02 4.5h-5v16h5v-16zm7.982 0h-4.968v16h4.969v-8.399c0-4.67 6.029-5.052 6.029 0v8.399h4.988v-10.131c0-7.88-8.922-7.593-11.018-3.714v-2.155z" />
161161
</svg>
162162
</a>
163163
<!-- Instagram (inline SVG) -->
164-
<a href="https://www.instagram.com/pycontg/" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
164+
<a href="https://www.pytogo.org/instagram" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
165165
<svg width="30" height="30" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="social-icon" aria-hidden="true">
166166
<rect x="2" y="2" width="20" height="20" rx="5" ry="5" stroke="currentColor" stroke-width="1.6" fill="none"/>
167167
<circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="1.6" fill="none"/>
168168
<circle cx="17.5" cy="6.5" r="1" fill="currentColor"/>
169169
</svg>
170170
</a>
171171

172-
<a href="https://x.com/pytogo_org" class="social-link" aria-label="Twitter/X" target="_blank">
172+
<a href="https://www.pytogo.org/x" class="social-link" aria-label="Twitter/X" target="_blank">
173173
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"
174174
fill="currentColor">
175175
<path
176176
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
177177
</svg>
178178
</a>
179179

180-
<a href="https://github.com/pytogo-org" class="social-link" target="_blank">
180+
<a href="https://www.pytogo.org/github" class="social-link" target="_blank">
181181
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
182182
viewBox="0 0 16 16">
183183
<path
184184
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
185185
</svg>
186186
</a>
187-
<a href="https://www.youtube.com/@PythonTogo" class="social-link" target="_blank">
187+
<a href="https://www.pytogo.org/youtube" class="social-link" target="_blank">
188188
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
189189
viewBox="0 0 16 16">
190190
<path
191191
d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z" />
192192
</svg>
193193
</a>
194194

195-
<a rel="me" href="https://techhub.social/@pytogo_org" class="social-link">
195+
<a rel="me" href="https://www.pytogo.org/mastodon" class="social-link">
196196
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
197197
viewBox="0 0 448 512"><!--! Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. -->
198198
<path
@@ -206,7 +206,7 @@ <h4><span>{{ t.get('footer-contact-title','Contact') }}</span></h4>
206206
</svg>
207207
</a>
208208
<!-- Facebook (simple 'f' only, no circle) -->
209-
<a href="https://web.facebook.com/profile.php?id=61583905225784" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
209+
<a href="https://www.pytogo.org/facebook" class="social-link" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
210210
<svg width="30" height="30" viewBox="0 0 320 512" xmlns="http://www.w3.org/2000/svg" class="social-icon" aria-hidden="true">
211211
<path d="M279.14 288l14.22-92.66h-88.91V142.2c0-25.35 12.42-50.06 52.24-50.06H303V6.26S275.2 0 248.79 0c-73 0-121.06 44.38-121.06 124.72v69.62H76v92.66h51.73V512h100.2V288z" fill="currentColor"/>
212212
</svg>

0 commit comments

Comments
 (0)