Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Adjust exampleSite directories #123

Merged
merged 1 commit into from
Mar 13, 2020
Merged

Adjust exampleSite directories #123

merged 1 commit into from
Mar 13, 2020

Conversation

pacollins
Copy link
Owner

Description

#66 explored using pipes for add-on.css and add-on.js for clarity this was not utilized. Files moved back to static

Motivation and Context

Fixes #120

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

@rfc2119
Copy link

rfc2119 commented Mar 13, 2020

fixes #120! Here are the steps I did:

  1. copied /themes/hugo-future-imperfect-slim/exampleSite/static/add-on.css to hugo's static css folder in /static/css
  2. edited add-on.css to include a font (thanks google-webfonts-helper ) and overridden an element, here's a snippet:
/* almarai-regular - arabic */
@font-face {
  font-family: 'MyFont';
  font-style: normal;
  font-weight: 400;
  src: local('MyFont'), local('MyFont-Regular'),
       url('/fonts/my-font-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/fonts/my-font-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
h2{
    font-family: 'MyFont', sans-serif;
    letter-spacing: unset;
}
  1. build your website

@SamuelWorkman
Copy link

SamuelWorkman commented Mar 13, 2020

Hi Patrick,

Indeed, this is the fix. I just had time to try it this morning. I'll add that it reads add-on.css now merely by specifying cssFiles = ["default"], without the need to path the file. Thanks, and good job!

It also explains why I was able to get it to work moving my files there. Anyways, you can consider my issue closed. Good to chat with you both @pacollins and @rfc2119 - good luck with the directionality!!

@pacollins pacollins merged commit 930b034 into master Mar 13, 2020
@pacollins pacollins deleted the fix-addon-path branch March 13, 2020 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize fonts/change fonts.
3 participants