Skip to content

Commit

Permalink
HTTPS every where + fix wrong url
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatorecordiano committed Nov 1, 2017
1 parent 4a50c9c commit 491634c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 31 deletions.
39 changes: 23 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,57 @@
# Facile.it Engineering Blog
This is the repo behind [http://engineering.facile.it/](http://engineering.facile.it/)

This is the repo behind [https://engineering.facile.it/](https://engineering.facile.it/).

## Cloning instructions

```
git clone [email protected]:facile-it/facile-it.github.io.git
```

## Usage

* No need to install anything, Hugo binaries are committed in the repo (for Linux and OSX, both x64)
* To serve the site locally (with drafts enabled):

```
./hugo server --buildDrafts
./hugo server -D
```
or, if you are on Windows:

```
bin\hugo.exe server --buildDrafts
bin\hugo.exe server -D
```

* To deploy the blog:
* To deploy the blog:

```
./deploy
```

## Front matter documentation

`authors`: an array of the authors of the article; the names must match the .yml files in the `/data/authors` folder
`authors`: an array of the authors of the article; the names must match the .yml files in the `/data/authors` folder;

`comments`: enables Disqus at the end of the page (disabled anyway when serving locally)
`comments`: enables Disqus at the end of the page (disabled anyway when serving locally);

`date`: the supposed date of publishing
`date`: the supposed date of publishing;

`draft`: to enable a draft status, which will block the article from being published during a deploy
`draft`: to enable a draft status, which will block the article from being published during a deploy;

`share`: if true, enables the social sharing buttons
`share`: if true, enables the social sharing buttons;

`categories`: the categories where the article will be listed under; watch out for caps matching, and add always the language category
`categories`: the categories where the article will be listed under; watch out for caps matching, and add always the language category;

`title`: the title of the article
`title`: the title of the article;

`languageCode`: suggested, not needed, default is "en-En"
`languageCode`: suggested, not needed, default is "en-En";

`type`: always "post" for articles
`type`: always "post" for articles;

`aliases`: an array of URLS which will redirect to this page; used for the transition from the old site
`aliases`: an array of URLS which will redirect to this page; used for the transition from the old site;

`ita` or `eng`: the file name of the article of the opposite language, to obtain cross-linking between translations
`ita` or `eng`: the file name of the article of the opposite language, to obtain cross-linking between translations;

`twitterImage`: used for the twitter cards when sharing the url of this page; needs to be at least 120x120, will be cropped to square. If not specified, the ENGR logo will be used
`twitterImage`: used for the twitter cards when sharing the url of this page; needs to be at least 120x120, will be cropped to square. If not specified, the ENGR logo will be used;

`twitterLargeImage`: used for the twitter cards too; needs to be at least 280x150px.
8 changes: 4 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ menu:
main:
- categories:
name: "Categories"
url: "/categories"
url: "/categories/"
identifier: "fa fa-folder-open-o"
weight: 2
- categories:
name: "Authors"
url: "/authors"
url: "/authors/"
identifier: "fa fa-pencil"
weight: 3
- categories:
name: "Careers"
url: "/ita/careers"
url: "/ita/careers/"
identifier: "fa fa-briefcase"
weight: 4
- categories:
name: "Who we are"
url: "/eng/who-we-are"
url: "/eng/who-we-are/"
identifier: "fa fa-users"
weight: 5

Expand Down
2 changes: 1 addition & 1 deletion content/eng/who-we-are.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ share: true
title: "Who we are"
---

Questa pagina è disponibile anche in <a href="/ita/chi-siamo">italiano</a>.
Questa pagina è disponibile anche in <a href="/ita/chi-siamo/">italiano</a>.

Facile.it rely on a big and keen crew of developers. Since 2008, the group’s projects are based on PHP, and as time goes by new technologies become part of corporate know how.
This blog allows our developers to share tips and direct experiences with new technologies.
Expand Down
2 changes: 1 addition & 1 deletion content/ita/chi-siamo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ share: true
title: "Chi siamo"
---

This page is also available in <a href="/eng/who-we-are">english</a>.
This page is also available in <a href="/eng/who-we-are/">english</a>.

Facile.it ha un nutrito e appassionato gruppo di sviluppatori. I progetti del gruppo Facile.it si basano su PHP fin dal 2008, più il tempo passa più nuove tecnologie entrano a far parte del Know How aziendale.
Questo Blog permette ai nostri sviluppatori di condividere consigli ed esperienze dirette con le tecnologie che usano quotidianamente.
Expand Down
6 changes: 3 additions & 3 deletions themes/hugo-future-imperfect/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3><a href="/categories/">Top categories</a></h3>
{{ end }}
<li>
<ul class="actions">
<li><a href="/categories"
<li><a href="/categories/"
class="button">View more categories</a></li>
</ul>
</li>
Expand Down Expand Up @@ -140,8 +140,8 @@ <h2>About</h2>
{{ end }}

<p class="copyright">
&copy; <a href="http://www.facile.it/" target="_blank">Facile.it</a> Engineering, leggi <a href="/ita/chi-siamo" target="_blank">chi siamo</a><br>
<a href="/ita/disclaimer" rel="nofollow">Disclaimer</a><br>
&copy; <a href="http://www.facile.it/" target="_blank">Facile.it</a> Engineering, leggi <a href="/ita/chi-siamo/" target="_blank">chi siamo</a><br>
<a href="/ita/disclaimer/" rel="nofollow">Disclaimer</a><br>
Design <a href="http://html5up.net" rel="nofollow" target="_blank">HTML5 UP</a><br>
Ported by <a href="//github.com/jpescador" rel="nofollow" target="_blank">Julio Pescador</a><br>
Modified by <a href="//github.com/Jean85" rel="nofollow" target="_blank">Alessandro Lai</a><br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
{{ end }}

{{ range .Params.categories }}
<li><a href="/categories/{{ . | urlize }}">{{ . }}</a></li>
<li><a href="/categories/{{ . | urlize }}/">{{ . }}</a></li>
{{ end }}
</ul>
6 changes: 3 additions & 3 deletions themes/hugo-future-imperfect/layouts/post/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ with .Params.ita }}
<p class="translated-article">
Questo articolo è disponibile anche
<a href="/blog/ita/{{ . }}">in italiano</a>
<a href="/blog/ita/{{ . }}/">in italiano</a>
</p>
{{ end }}
{{ with .Params.eng }}
<p class="translated-article">
This article is also available
<a href="/blog/eng/{{ . }}">in english</a>
<a href="/blog/eng/{{ . }}/">in english</a>
</p>
{{ end }}
</div>
Expand All @@ -34,7 +34,7 @@ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</time>

{{ range .Params.authors }}
<a href="/authors/{{ . }}" class="author">
<a href="/authors/{{ . }}/" class="author">
{{ with index $.Site.Data.authors . }}
<span class="name">{{ .name }}</span>
<img src="{{ .thumbnail }}" alt="{{ .name }} avatar" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>{{ .Data.Plural }} of this blog</h1>
<article>
<header>
{{ with index $.Site.Data.authors $value.Name }}
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}">
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}/">
<img src="{{ .thumbnail }}" alt="{{ .name }} avatar" style="margin-right:8px; vertical-align: text-top; float:left; border-radius: 100%; display: block; width: 3.5em;"/>
{{ .name }}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>{{ .Data.Plural }}</h1>
<li>
<article>
<header>
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}">{{ $value.Name }}</a>
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a>
<span style="float:right;">{{ $value.Count }}</span>
</header>
</article>
Expand Down

0 comments on commit 491634c

Please sign in to comment.