Comments (2)
this site is using GH pages, and it looks like GH doesn't provide a way to redirect pages.
improvements that can be done:
https://stackoverflow.com/questions/21244910/remove-html-extension-from-github-pages
from monadical.com.
tried 2 ways I could think of:
- remove .html from
content.json
, which is responsible for mapping URL to html pages:
--- a/content.json
+++ b/content.json
@@ -9,7 +9,7 @@
},
"about": {
"title": "About",
- "url": "/about.html",
+ "url": "/about",
"template": "about.html"
},
"blog": {
issue: works in dev server but doesn't work in local prod server after building output. about
page is getting generated without the .html extension. it most likely won't work after deploying to github server as pages extensions are removed.
- replace .html from links using jinja2 replace filter
--- a/templates/base.html
+++ b/templates/base.html
@@ -157,7 +157,7 @@
<li>
<b>Monadical</b>
</li>
- <a href="{{PAGES.blog.url}}">Blog</a>
+ <a href="{{PAGES.blog.url|replace('.html','')}}">Blog</a>
<li><a href="{{PAGES.services.url}}">Services</a></li>
issues: links won't work in dev server and local prod server after building output, but it'll work after deployment as github server maps links w/o .html at end to .html files with same name.
from monadical.com.
Related Issues (20)
- add a button to allow the user to copy the entire code block from an example on the blog HOT 2
- posts/modular-arithmetic HOT 1
- posts/plot-mathematical-functions-in-python HOT 1
- posts/shades-of-rust-gui-library-list HOT 4
- On /blog, Tags don't behave
- posts/export-phantom-wallet
- posts/mincraft-skin-generation HOT 3
- posts/zulip-ia-bot-1 HOT 2
- posts/Django-Concurrent-Write-Safety HOT 1
- posts/drone-web-platform HOT 1
- posts/candy-machine-mint-and-reveal
- posts/Designing-A-Banking-System
- posts/functional-declarative-animations
- posts/minecraft-skingenerator-announcement
- posts/from-chaos-to-cohesion HOT 1
- posts/minting-nft-solana-mobile
- posts/morpheus-announcement
- posts/Review-of-Online-Poker-Networks
- posts/how-to-make-llms-speak-your-language
- posts/property-based-testing-for-temporal-graph-storage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monadical.com.