Skip to content

Changing contents of <head> in a new Fresh app #307

Closed Answered by Luca00711
adiabatic asked this question in Q&A
Discussion options

You must be logged in to vote

I have the answer for you, I was looking for the same and I found some.

You can do:
import { Head } from "$fresh/runtime.ts";

and use then in return():

<Head>
  <link rel="stylesheet" href="/static/all.css" />
</Head>

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@synalice
Comment options

@adiabatic
Comment options

@iamsahilsonawane
Comment options

@unpin
Comment options

@iamsahilsonawane
Comment options

Answer selected by lucacasonato
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants