Comments (8)
Basically, you can either 1) change the current index.html
and add your own styling (CSS) and JS, or 2) take a different HTML theme/template and embed the WebSharper.UI templating markers in it (placeholders, inner templates, event handlers) to fit the F# code (or change the code as per your needs).
from sitefi.
@ShalokShalom I'm just speculating here but
the whole design of the website is defined in the index.html file, it's being used in this line https://github.com/granicz/SiteFi/blob/master/src/Hosted/Main.fs#L125
if you wanted to introduce themes you'd need to provide a different index.html and also update the Main.fs file to match your template with the HTML Holes you may have introduced or changed
Edit:
You could also just switch the index file's contents with different layouts and theming things, without actually changing the HTML wholes and no changes would be needed to the Main.fs file
from sitefi.
Sure, I'd put JS/CSS artifacts in separate subfolders and reference them accordingly from the main template file.
from sitefi.
How do I do this?
from sitefi.
That doesnt really help me further.
from sitefi.
Ok, let's take a step back: tell me what you are doing and what you get that is unexpected, and I will try to help.
from sitefi.
I dont know, where to fill that in.
CSS and JS in the index.html or the WebSharper specifics into the new HTML stuff.
While I dont know where to start, and what to fill in at which place and so on.
from sitefi.
I think I solved this
from sitefi.
Related Issues (14)
- License is missing HOT 3
- Add support for multi-user blogs
- Add support for multilingual blog HOT 5
- Add support for generating user pages
- Possible to host refresh on Azure Functions or AWS Lambda? HOT 1
- Add RSS and Atom support HOT 1
- Unix support
- Include HTML in rss/atom HOT 1
- Add category/label support
- F# syntax highlighting not working HOT 5
- Add a separate page to browse all available categories HOT 2
- Add it to https://www.staticgen.com/ HOT 3
- Come up with a better project name HOT 2
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 sitefi.