Skip to content

Link directly to .css file in a repo? #7620

Closed
@STaRDoGG

Description

@STaRDoGG

I'd like to do what the title says, from within a html file, but even when linking to the 'raw' file, it's mime type is transferred as text rather than css.

On GitHub you have to make a GitHub "Page" in order to link directly to a CSS file and have it transferred as the CSS mime type, but Gitea doesn't have a "pages" feature (which if fine by me), so I'm wondering if there's some way we can 'crowbar' this into happening for our own local Gitea server? It'd be kinda cool if there was some check-box or something on the file in the repo to set it's mime type ... or something.

I know I could just move my repo to Github and create a github page to do this, but I'd like to just be able to do so from my own repo server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reviewed/wontfixThe problem described in this issue/fixed in this pull request is not a problem we will fixtype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions