Commit Graph

16 Commits

Author SHA1 Message Date
Nico Alt
bd8f610936 Host stuff locally (#194)
This commit includes the following things to host them locally:
* fonts (formerly from Google Fonts)
* fontawesome
* normalize

For a reasoning on why this is good to do, see below.

Everything is now included in Sass code. This means not only we no more
have requests to third-party sites, but also reduced the amount of
requests necessary to access the page by three.

I mainly downloaded all necessary stuff and put it at appropriate
places. I also ran `make release` to regenerate all CSS files.

Sites that helped me doing this:
* https://switching.social/ethical-alternatives-to-google-fonts/
* https://google-webfonts-helper.herokuapp.com/fonts
* https://google-webfonts-helper.herokuapp.com/fonts/lato?subsets=latin-ext,latin
* https://google-webfonts-helper.herokuapp.com/fonts/merriweather?subsets=vietnamese,cyrillic-ext,latin-ext,latin,cyrillic
* https://google-webfonts-helper.herokuapp.com/fonts/source-code-pro?subsets=latin-ext,latin
* https://fontawesome.com/how-to-use/on-the-web/using-with/sass
* https://github.com/JohnAlbin/normalize-scss

---------------

Currently, this theme opens many connections to third-party sites.

I hope I don't have to explain all too much why not exposing all visitors to Google etc. is a good thing, but I'll do list some advantages:

* Pretty strong CSP: `content-security-policy: default-src https://nico.dorfbrunnen.eu:443`
* Increased autonomy of webpage; if Google or other CDNs goes down, website still looks good
* When building locally without Internet, everything works fine
* Google is all about surveillance capitalism, they want to collect as much data about people as possible
* With this change, we stop helping them on all websites using this theme
* Google (and the other sites might too) is censored in quite some countries; in all of them, this theme would look not as beautiful as it could

Regarding licensing issues:

> first I need to understand if there is any license problem if we distribute these fonts with the theme.

Sure! Here's what I've found out:

According to [the CSS file we pull from Google](https://fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather:300,700%7CSource+Code+Pro:400,700) we're using three fonts: [Lato](https://fonts.google.com/specimen/Lato), [Merriweather](https://fonts.google.com/specimen/Merriweather) and [Source Code Pro](https://fonts.google.com/specimen/Source+Code+Pro). On the bottom right of those pages it says for all fonts that they are licensed under the [Open Font License ](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web). In its preamble, it says:
> The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works.

So I think we're good to go and can include those fonts with the theme.
2019-09-01 20:09:19 -03:00
Joseph Ting
27e83b1e5a Add see also section to posts footer (#152)
* Fix series list page title

* Add see also section to posts footer
2019-03-11 08:21:14 -03:00
Luiz de Prá
f2e0a1a6c4 Add missing built css files 2019-02-10 21:01:06 -02:00
Gabriel Monteiro Nepomuceno
4ff77035f6 Easy customize (#138)
* Making easy to customize listing

* adding styles to listing

* removing unintended changes

* correcting declaration

* including files for release

* changing url to be relative so it can work on localhost

* Including suggestions
2019-01-16 13:16:24 -02:00
Piotr Januszewski
12b4246e29 Add simple figure style for content class (#130)
* Add figure style

* Add figure to exampleSite

* Apply suggested changes from code-review
2019-01-07 13:30:09 -02:00
Joseph Ting
fc576925eb Fix homepage main content section vertical align (#118) 2019-01-04 09:09:52 -02:00
Thomas Nys
9f034349f6 Fix code indent (#123)
* Fix code indent

* Add myself to the contributors

* Regenerate css
2018-11-26 13:56:31 -02:00
Luiz de Prá
c0708c491e Revert flex on body 2018-11-25 20:40:34 -02:00
Joseph Ting
bab77656bb Update deprecated device-width media queries (#120) 2018-11-21 09:37:10 -02:00
Joseph Ting
8d3c1a2f8e Remove flexbox on body (#114) 2018-11-09 11:03:00 -02:00
Khosrow Moossavi
fd3ec89897 Taxonomy initial commit, tags and categories (#90)
* Taxonomy initial commit, tags and categories

* WIP: Show in footer for comparison

* Fix post meta
2018-10-27 09:43:26 -03:00
Khosrow Moossavi
11c0108323 Enhance post header (#100)
- show calendar icon for 'posted date'
- show 'reading time'
2018-10-14 22:24:13 -03:00
Khosrow Moossavi
4426c889fd Post refactor to hold everything its own (#88) 2018-10-03 15:06:20 -03:00
Luiz de Prá
572ce8b96d Add resources folder 2018-09-14 11:08:17 -03:00
Luiz de Prá
8e7b5dd41a Remove resources folder 2018-08-21 16:43:14 -03:00
Luiz F. A. de Prá
934db8e964 Add SCSS via Asset Pipeline (#65)
* Remove old files

* Add SCSS pipeline

* Add generated files

* Fix navigation HTML

* Fix media queries

* Remove RTL

* Fix styling for big screens

* Remove separator configs

* Fix menu dropdown

* Add working mobile menu

* Fix menu item heights

* Update README
2018-08-21 16:26:15 -03:00