How to upload local webfont for use it on my gitlab page?


I desire load fonts from my personal gitlab repository for my blog (gilab pages). But I can’t found documentation about how do it. I’ve read some info about Github pages, but no work: look here.

The font that I want use it is Butler. Butler is a free font with woff and woff2 files.

On my gitlab page repository I have a folder named assets, here I’ve created a new folder (called fonts) where I’ve uploaded the fonts. So the path is something that:

And on my css file I add the next lines:

@font-face {
    font-family: Butler;
    src: url(../repository/assets/fonts/buttler.woff2) format('woff2');
    font-weight: normal;
    font-style: normal

Well, somebody use local fonts?