Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Fix temp archive page #151

Open
emileber opened this issue Nov 20, 2017 · 9 comments
Open

Fix temp archive page #151

emileber opened this issue Nov 20, 2017 · 9 comments
Assignees

Comments

@emileber
Copy link
Member

Description

Depuis l'ajout de #150

Mixed Content: The page at 'https://saglac.io/archives' was loaded over HTTPS, but requested an insecure script 'http://gist-it.appspot.com/https://github.com/saglacio/saglac.io/blob/master/_data/io-events.yml'. This request has been blocked; the content must be served over HTTPS.

Steps to Reproduce

  1. Visitez https://saglac.io/archives
  2. Voir la console

Expected behavior: Voir le fichier yml raw avec http://gist-it.appspot.com/

Actual behavior: Rien n'affiche dans le contenu de la page. Seulement le template.

image

Versions

On master saglacio/saglac.io@7e9a28d

@jipiboily
Copy link
Member

Ça c'est corrigé, non?

@GabLeRoux
Copy link
Member

Confirmed fixed maintenant qu'on a https en place:

❯ curl -v http://saglac.io/archives
*   Trying 104.31.82.21...
* TCP_NODELAY set
* Connected to saglac.io (104.31.82.21) port 80 (#0)
> GET /archives HTTP/1.1
> Host: saglac.io
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 25 Oct 2018 18:45:35 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: max-age=3600
< Expires: Thu, 25 Oct 2018 19:45:35 GMT
< Location: https://saglac.io/archives
< Server: cloudflare
< CF-RAY: 46f6d74f3576c19a-IAD
<
* Connection #0 to host saglac.io left intact

image

✅ Looks good to me

@GabLeRoux
Copy link
Member

GabLeRoux commented Oct 25, 2018

Oups, ça mérite un reopen. J'ai vérifié la console, on a quand même un petit problème:

io-events.yml:2 A parser-blocking, cross site (i.e. different eTLD+1) script, https://gist-it.appspot.com/assets/prettify/prettify.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ io-events.yml:2

De mon côté, ça render ok, mais on a un problème dans la console avec gist-it, cependant, ça ne semble plus être le même problème qu'avant. ;)

How to fix

Render un template des archives plutôt que de loader un yaml directement.

@GabLeRoux GabLeRoux reopened this Oct 25, 2018
@emileber
Copy link
Member Author

@GabLeRoux
Copy link
Member

bump? 😅 hmm j'ai hâte à ce soir ;)

@emileber
Copy link
Member Author

Apparemment que Gist-It est mort?! 🤔

@GabLeRoux
Copy link
Member

on a juste à l'embed dans le build avec du syntax highlighting rendu là. Moins de external dependencies 🎉

@emileber
Copy link
Member Author

Avec le nouveau site, Gatsby va builder des pages et une liste paginé (éventuellement) pour chaque événement. Pas besoin de dumper le yml sur le site en live.

@GabLeRoux
Copy link
Member

wo les spoilers ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants