Compare commits
No commits in common. "main" and "v2" have entirely different histories.
53
.drone.yml
@ -12,25 +12,35 @@ trigger:
|
||||
|
||||
steps:
|
||||
|
||||
- name: git pull submodules
|
||||
image: alpine/git
|
||||
# settings:
|
||||
# user:
|
||||
# from_secret: GIT_USER
|
||||
# password:
|
||||
# from_secret: GIT_PASSWORD
|
||||
commands:
|
||||
- git submodule update --init --recursive
|
||||
|
||||
- name: build hugo site
|
||||
# image: greglebreton/drone-hugo:arm64
|
||||
image: plugins/hugo
|
||||
settings:
|
||||
hugo_version: 0.111.3
|
||||
theme: silhouette-hugo
|
||||
hugo_version: 0.69.0
|
||||
theme: ameida-cv
|
||||
extended: true
|
||||
validate: true
|
||||
config: config.toml
|
||||
content: content
|
||||
output: ./public
|
||||
commands:
|
||||
- hugo
|
||||
- apk add libc6-compat libstdc++
|
||||
- /bin/hugo
|
||||
|
||||
- name: deploy site on server
|
||||
image: greglebreton/drone-rsync:aarch64
|
||||
settings:
|
||||
hosts: ["192.168.0.100"]
|
||||
target: /var/www/html/gregandev.fr
|
||||
hosts: ["192.168.1.100"]
|
||||
target: /var/www/html/hugo-site
|
||||
source: public/*
|
||||
port: 2021
|
||||
user:
|
||||
@ -38,27 +48,22 @@ steps:
|
||||
key:
|
||||
from_secret: RSYNC_SSH_KEY
|
||||
|
||||
- name: notify
|
||||
image: greglebreton/drone-email:arm64
|
||||
- name: notification
|
||||
image: appleboy/drone-telegram
|
||||
settings:
|
||||
from.address: contact@gregandev.fr
|
||||
host: mail.gregandev.fr
|
||||
port: 587
|
||||
debug: true
|
||||
username: contact@gregandev.fr
|
||||
password:
|
||||
from_secret: MAIL_PASSWORD
|
||||
recipients: [ greg@gregandev.fr ]
|
||||
subject: >
|
||||
[{{ build.status }}]
|
||||
{{ repo.owner }}/{{ repo.name }}
|
||||
body: >
|
||||
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} <br />
|
||||
token:
|
||||
from_secret: TELEGRAM_TOKEN
|
||||
to:
|
||||
from_secret: TELEGRAM_USERID
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
- success
|
||||
format: markdown
|
||||
message: >
|
||||
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
|
||||
{{#success build.status}}
|
||||
✅ succeeded for 👷♂️ build {{build.number}}
|
||||
{{else}}
|
||||
🛑 failed for 👷♂️ build {{build.number}}
|
||||
{{/success}}
|
||||
<br /><img src='https://git.gregandev.fr/assets/img/logo.svg'/>
|
||||
when:
|
||||
status: [ success, failure ]
|
15
.gitmodules
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
[submodule "themes/hugo.386"]
|
||||
path = themes/hugo.386
|
||||
url = https://gitlab.com/jmfergeau/hugo.386
|
||||
[submodule "themes/simpleIntro"]
|
||||
path = themes/simpleIntro
|
||||
url = https://github.com/qub1750ul/hugo-simpleIntro
|
||||
[submodule "themes/graysx-hugo"]
|
||||
path = themes/graysx-hugo
|
||||
url = https://github.com/akatiggerx04/graysx-hugo/
|
||||
[submodule "themes/capsule"]
|
||||
path = themes/capsule
|
||||
url = https://github.com/sudorook/capsule
|
||||
[submodule "themes/silhouette-hugo"]
|
||||
path = themes/silhouette-hugo
|
||||
url = https://github.com/mattbutton/silhouette-hugo.git
|
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Spencer Lyon
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
214
README.md
@ -1,67 +1,19 @@
|
||||
# 
|
||||
# HUGO SITE
|
||||
|
||||
[](https://drone.gregandev.fr/gregandev/hugo-site)
|
||||
Hugo est un framework open source pour générer facilement des sites webs (https://gohugo.io/)
|
||||
|
||||
## INSTALLATION :hammer:
|
||||
|
||||
- Via APT:
|
||||
### HUGO INSTALL
|
||||
|
||||
Voir sur le site https://gohugo.io/ selon vtre OS et distribution
|
||||
|
||||
### UTILISATION
|
||||
|
||||
```bash
|
||||
sudo apt install hugo
|
||||
hugo new site monsite
|
||||
```
|
||||
|
||||
- Via la ligne de commande:
|
||||
```bash
|
||||
cd /tmp
|
||||
curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest \
|
||||
| grep browser_download_url \
|
||||
| grep linux-amd64.deb \
|
||||
| grep extended \
|
||||
| cut -d '"' -f 4 \
|
||||
| wget -i -
|
||||
|
||||
sudo dpkg -i hugo*_linux-amd64.deb
|
||||
rm -rf hugo*_linux-amd64.deb
|
||||
```
|
||||
|
||||
## UTILISATION
|
||||
|
||||
### CREATION DU SITE :page_with_curl:
|
||||
|
||||
- Vérifier l'installation:
|
||||
```bash
|
||||
hugo version
|
||||
```
|
||||
|
||||
- Créer la structure du site:
|
||||
```bash
|
||||
hugo new site mon-site
|
||||
```
|
||||
|
||||
- Créer du contenu:
|
||||
```bash
|
||||
cd mon-site
|
||||
hugo new posts/mon-post.md
|
||||
nano posts/mon-post.md
|
||||
```
|
||||
|
||||
Ajouter des medias:
|
||||
- images:
|
||||
```bash
|
||||
## Image via link:
|
||||

|
||||
|
||||
------
|
||||
|
||||
## Image via url locale (/static):
|
||||

|
||||
```
|
||||
- videos:
|
||||
```bash
|
||||
## Vidéo Youtube:
|
||||
{{< youtube ZSWzPI4BqvA >}}
|
||||
```
|
||||
|
||||
### AJOUT D'UN THEME :art:
|
||||
#### Installer un thème:
|
||||
|
||||
```bash
|
||||
git init
|
||||
@ -69,155 +21,21 @@ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git theme
|
||||
echo theme = \"ananke\" >> config.toml
|
||||
```
|
||||
|
||||
Les thèmes HUGO:
|
||||
- https://jamstackthemes.dev/ssg/hugo/
|
||||
- https://hugothemesfree.com/
|
||||
- https://master--hugothemes.netlify.app/
|
||||
#### Ajouter un nouveau post:
|
||||
|
||||
### CONFIGURATION DU CONFIG.TOML :wrench:
|
||||
|
||||
- Configuration de base
|
||||
```bash
|
||||
# Configuration de l'adresse, titre (onglet) et des chemins vers les contenus
|
||||
baseurl = "/"
|
||||
contentdir = "content"
|
||||
layoutdir = "layouts"
|
||||
publishdir = "public"
|
||||
title = "Mon super site!!!"
|
||||
canonifyurls = true
|
||||
|
||||
# ACCUEIL
|
||||
[Params]
|
||||
subtitle = "Portfolio made in HUGO !"
|
||||
logo = "img/logo2.png"
|
||||
favicon = "img/favicon.ico"
|
||||
dateFormat = "January 2, 2006"
|
||||
commit = false
|
||||
rss = false
|
||||
comments = true
|
||||
hugo new posts/my-first-post.md
|
||||
```
|
||||
|
||||
- Création d'un menu
|
||||
```bash
|
||||
[[menu.main]]
|
||||
name = "Post 1"
|
||||
url = "/post/post1"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "A propos"
|
||||
url = "/page/about"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Projets"
|
||||
url = "/page/about"
|
||||
weight = 3
|
||||
```
|
||||
|
||||
- Création d'un sous menu
|
||||
```bash
|
||||
[[menu.main]]
|
||||
parent = "Projets"
|
||||
name = "Projet 1"
|
||||
url = "/projets/projet1"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
parent = "Projets"
|
||||
name = "Projet 2"
|
||||
url = "/projets/projet2"
|
||||
weight = 2
|
||||
```
|
||||
|
||||
:warning: Créer les dossiers et les fichiers correspondant. Les urls ne prennent pas l'extension .md du fichier
|
||||
|
||||
- Création des icônes reseaux sociaux
|
||||
```bash
|
||||
[Author]
|
||||
name = ""
|
||||
email = ""
|
||||
gitlab = ""
|
||||
github = ""
|
||||
twitter = ""
|
||||
reddit = ""
|
||||
linkedin = ""
|
||||
```
|
||||
|
||||
### LANCER LE SERVEUR :rocket:
|
||||
#### lancer le serveur en local:
|
||||
|
||||
```bash
|
||||
# L'option -D est pour servir les fichiers en Draft = true (non publiés)
|
||||
hugo server -D
|
||||
```
|
||||
|
||||
> Visiter http://localhost:1313
|
||||
Visiter http://localhost:1313
|
||||
|
||||
#### Déployer via Docker:
|
||||
|
||||
### BUILDER LE SITE :construction:
|
||||
|
||||
```bash
|
||||
hugo
|
||||
```
|
||||
|
||||
> Les fichiers générés sont dans le dossier public
|
||||
|
||||
## DEPLOIEMENT :checkered_flag:
|
||||
|
||||
### VIA GITLAB AUTO DEVOPS
|
||||
|
||||
Compléter le config.toml comme ceci:
|
||||
```bash
|
||||
baseURL = "https://gitlab_user.gitlab.io/"
|
||||
```
|
||||
|
||||
Compléter le fichier .gitlab-ci.yml comme ceci:
|
||||
```bash
|
||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
||||
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
pages:
|
||||
script:
|
||||
- hugo
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- main
|
||||
```
|
||||
|
||||
### VIA DOCKER :whale:
|
||||
|
||||
- Créer une Dockerfile contenant:
|
||||
|
||||
```Dockerfile
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY ./public/* /usr/share/nginx/html
|
||||
COPY ./docs/nginx-exemple.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
```
|
||||
|
||||
```bash
|
||||
docker build -t hugo-site:1.0 .
|
||||
docker run -d -p 8989:80 hugo-site:1.0
|
||||
```
|
||||
|
||||
## DOCUMENTATION :books:
|
||||
|
||||
[DOC DU GARAGE](https://docs.legaragenumerique.xyz/divers/devops/hugo/)
|
||||
[DOC OFFICIELLE](https://gohugo.io/documentation/)
|
||||
[DOC MARKDOWN](https://www.markdownguide.org/basic-syntax/)
|
||||
|
||||
## CI/CD :repeat:
|
||||
|
||||
- WEB2PDF.py
|
||||
- .drone.yml
|
||||
|
||||
## TO DO :bookmark_tabs:
|
||||
|
||||
- [ ] CI/CD schema
|
||||
Visiter la branch docker
|
||||
|
37
config.toml
@ -1,5 +1,5 @@
|
||||
# Configuration de l'adresse, titre (onglet) et des chemins vers les contenus
|
||||
baseurl = "https://gregandev.fr"
|
||||
baseurl = "/"
|
||||
contentdir = "content"
|
||||
layoutdir = "layouts"
|
||||
publishdir = "public"
|
||||
@ -12,6 +12,8 @@ author = "Grégory Lebreton"
|
||||
paginate = 3
|
||||
theme = "silhouette-hugo"
|
||||
|
||||
pygmentsUseClasses=true
|
||||
|
||||
#disqusShortname = ""
|
||||
#googleAnalytics = ""
|
||||
|
||||
@ -24,11 +26,6 @@ contentSharing = ""
|
||||
github = "greglebreton"
|
||||
linkedin = "grégory-lebreton-996b261bb"
|
||||
gitlab = "greglebreton"
|
||||
email = "greg"
|
||||
|
||||
[Params.social.share]
|
||||
linkedin = true
|
||||
email = true
|
||||
|
||||
|
||||
|
||||
@ -47,7 +44,7 @@ pygmentCodeFences = true
|
||||
# # mainTitle = "Portfolio"
|
||||
# mainText = "Devops for Game"
|
||||
# # subtitle = "Portfolio"
|
||||
# since = 2016
|
||||
# since = 2022
|
||||
# logo = "images/logos/logo.png"
|
||||
# favicon = "images/logos/favicon.png"
|
||||
# dateFormat = "January 2, 2006"
|
||||
@ -73,6 +70,17 @@ pygmentCodeFences = true
|
||||
# name = "CV"
|
||||
# url = "https://cv.gregandev.fr"
|
||||
|
||||
# # ACCUEIL
|
||||
# [Params]
|
||||
# subtitle = "Portfolio"
|
||||
# since = 2022
|
||||
# logo = "images/logos/logo.png"
|
||||
# favicon = "images/logos/favicon.png"
|
||||
# dateFormat = "January 2, 2006"
|
||||
# commit = false
|
||||
# rss = false
|
||||
# comments = true
|
||||
|
||||
# ICONES RESEAUX SOCIAUX
|
||||
[Author]
|
||||
name = "Greg Lebreton"
|
||||
@ -81,3 +89,18 @@ pygmentCodeFences = true
|
||||
github = "GregLebreton"
|
||||
linkedin = "grégory-lebreton-996b261bb"
|
||||
itchio = "gregan"
|
||||
|
||||
#twitter = "Gregan"
|
||||
#reddit = "username"
|
||||
#stackoverflow = "users/XXXXXXX/username"
|
||||
#instagram = "username"
|
||||
#youtube = "user/username" # or channel/channelname
|
||||
#spotify = "username"
|
||||
#keybase = "username"
|
||||
#xing = "username"
|
||||
#bandcamp = "username"
|
||||
#snapchat = "username"
|
||||
#soundcloud = "username"
|
||||
#facebook = "username"
|
||||
#googleplus = "+username" # or xxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
|
@ -4,8 +4,7 @@ title: Accueil
|
||||
|
||||
<div class="contenu">
|
||||
|
||||
### 
|
||||
|
||||
### INTRODUCTION
|
||||
|
||||
Développeur passionné par les technologies de l'information et de communication, autodidacte de formation, j'aime le partage de connaissances par l'intermédiaire de tout vecteur possible dont l'open source !
|
||||
|
||||
|
@ -2,12 +2,11 @@
|
||||
title: MON PARCOURS
|
||||
subtitle:
|
||||
comments: false
|
||||
description: ma formation et mes compétences
|
||||
---
|
||||
|
||||
Après mon Baccalauréat, j'ai choisi de travailler pour être indépendant. C'est plus tard que j'ai trouvé ma vocation et alors ai entrepris de reprendre les études nécessaires pour faire le méter de mes rêves.
|
||||
Après mon Baccalauréat, j'ai choisit de travailler pour être indépendant. C'est plus tard que j'ai trouvé ma vocation et alors ai entrepris de reprendre les études nécessaires pour faire le méter de mes rêves.
|
||||
|
||||
#### 
|
||||
#### CONCEPTEUR DEVELOPPEUR APPLICATION JAVA
|
||||
|
||||
La formation de concepteur développeur informatique était orientée Java et web, avec le développement d'applications gérant aussi bien le Frontend que le Backend avec un affichage fenêtré géré par Swing ou un affichage par Jsp.
|
||||
|
||||
@ -18,7 +17,7 @@ En conception, j'ai été formé à la méthode Merise ainsi que l'UML pour la m
|
||||
|
||||
[](https://www.afpa.fr/)
|
||||
|
||||
#### 
|
||||
#### DEV PHP LEADING FROG
|
||||
|
||||
J'ai eu la chance de pouvoir développer un module en PHP pour une application liscenciée par Leading Frog.
|
||||
|
||||
@ -27,45 +26,39 @@ différents modules comme la consultation d'horaires des transports (avions, bus
|
||||
|
||||
Mon module propose de choisir parmi des photos selectionnées par l'établissement pour les envoyer via un service payant (stripe) sous forme de carte postale.
|
||||
|
||||
Une fois le paiement effectué, une notification est envoyée à Leading Frog proposant d'imprimer la carte postale avec le visuel précédement choisi et à l'adresse de destination déjà saisie.
|
||||
Une fois le paiement effectué, une notification est envoyée à Leading Frog proposant d'imprimer la carte postale avec le visuel précédement choisi et l'adresse de destination déjà saisie.
|
||||
|
||||
[](https://news.leadingfrog.com/)
|
||||
[](https://news.leadingfrog.com/)
|
||||
|
||||
#### 
|
||||
#### DEVOPS
|
||||
|
||||
Puis j'ai suivi une formation DEVOPS avec l'utilisation d'outils comme Jenkins, Ansible ou Kubernetes qui change la façon de concevoir, développer et déployer des services informatiques.
|
||||
|
||||
[](https://fr.wikipedia.org/wiki/Devops)
|
||||
|
||||
#### 
|
||||
|
||||
## MON TRAVAIL
|
||||
-----------
|
||||
|
||||
[]({{< relref "page/garagenum.md" >}})
|
||||
|
||||
Je suis actuellement employé au Garage Numérique en tant que formateur Devops, avec également les casquettes d'administrateur systèmes, développeur et intégrateur.
|
||||
|
||||
C'est dans cet incubateur de talents que j'ai développé une application web de quiz en python via le framework [Django](https://www.djangoproject.com/), implémenter l'identification centralisée avec le logiciel Keycloak sur tous les services de l'association ([Nextcloud](https://nextcloud.com/fr/), [Kanboard](https://kanboard.org/), [Element](https://element.io/), [Workadventure](https://workadventu.re/), [Portainer](https://www.portainer.io/), [Jenkins](https://www.jenkins.io/), [Penpot](https://penpot.app/), [Gitea](https://gitea.com/)), ainsi que tout un système de PRA avec sauvegardes régulières et redéploiement automatiseé via: [Ansible](https://www.ansible.com/).
|
||||
C'est dans cet incubateur de talents que j'ai développé une application web de quiz en python via le framework Django, implémenter l'identification centralisée avec le logiciel Keycloak sur tous les services de l'association ([Nextcloud](https://nextcloud.com/fr/), [Kanboard](https://kanboard.org/), [Element](https://element.io/), [Workadventure](https://workadventu.re/), [Portainer](https://www.portainer.io/), [Jenkins](https://www.jenkins.io/), [Penpot](https://penpot.app/), [Gitea](https://gitea.com/)), ainsi que tout un système de PRA avec sauvegardes régulières et redéploiement automatiseé via: [Ansible](https://www.ansible.com/).
|
||||
|
||||
[]({{< relref "page/cnam.md" >}})
|
||||
|
||||
Le [CNAM](https://www.cnam.fr/) est un partenaire dans la formation des jeunes aux métiers de demain, il développe de nouvelles filières qui visent à répondre aux besoins des professionnels de l'informatique et permettent la reconnaissance des nouvelles compétences de l'IT par l'intermédiaire de dipômes.
|
||||
|
||||
#### 
|
||||
## MES PASSIONS
|
||||
-----------
|
||||
|
||||
[](https://cv.gregandev.fr)
|
||||
|
||||
## 
|
||||
|
||||
|
||||
#### 
|
||||
#### SKATEBOARD
|
||||
|
||||
Une autre de mes passion, le skateboard. La plaisir de cruiser avec sa board un soir d'été afin de sentir le vent rafraîchir ces tempes est un des plaisirs de la vie.
|
||||
|
||||
[](https://www.youtube.com/@TheGregan77)
|
||||
|
||||
[](https://www.youtube.com/@TheGregan77)
|
||||
|
||||
#### 
|
||||
#### VR GAMES
|
||||
|
||||
Je suis depuis le début cette technologie qui me fascine tant par son aspect futuriste que par les possibilités qu'elle offre.
|
||||
|
||||
|
@ -4,15 +4,15 @@ subtitle: Jeux VR dev sous Unity
|
||||
comments: false
|
||||
---
|
||||
|
||||
### 
|
||||
### LE PRINCIPE
|
||||
|
||||
Le but de ce projet est de reproduire le Neo Tokyo d'Akira, au volant de la moto de Kaneda, parcours les autoroutes niponnes en pleine ville suréaliste.
|
||||
|
||||

|
||||

|
||||
|
||||
Ce projet me permet de travailler sur les lumières et l'optimisation de celles-ci dans une scène sous Unity.
|
||||
|
||||
### 
|
||||
### ROADMAP
|
||||
|
||||
Il n'y en as pas vraiment, c'est mon projet le moins prioritaire pour le moment, idéalement, ajouter plus de routes / circuits, des ennemis et amèliorer la maniabilité de la bécane.
|
||||
|
@ -1,20 +1,15 @@
|
||||
---
|
||||
title: LE CNAM
|
||||
title: Le CNAM
|
||||
subtitle: conservatoire national des arts et métiers
|
||||
comments: false
|
||||
description: la partie pédagogique de mon travail
|
||||
---
|
||||
|
||||
#### 
|
||||
|
||||

|
||||
|
||||
Dans le cadre d'un partenariat entre le Garage Numérique et le CNAM, j'anime les cours de spécialité DEVOPS technicien d'exploitation.
|
||||
|
||||
Cela me permet de former les jeunes à l'informatique de demain dans une branche offrant tant de métiers différents qu'il est souvent difficile de s'orienter pour un étudiant.
|
||||
|
||||
Pour connaître le contenu de la formation:
|
||||
Pour connaître le contenu de la formation, cliquez sur le logo ci-dessous:
|
||||
|
||||
[](https://informatique.cnam.fr/fr/spip.php?article1739)
|
||||
|
||||
[](https://informatique.cnam.fr/fr/spip.php?article1739)
|
||||
[](https://formation.cnam.fr/rechercher-par-discipline/technicien-developpement-securite-et-exploitation-1357504.kjsp?RF=)
|
||||
|
@ -2,11 +2,11 @@
|
||||
title: LE GARAGE NUMERIQUE
|
||||
subtitle:
|
||||
comments: false
|
||||
description: la partie "technique" de mon travail
|
||||
---
|
||||
|
||||
[](https://fr.wikipedia.org/wiki/Linux)
|
||||
|
||||
### 
|
||||
### L'ASSOCIATION
|
||||
|
||||
[](https://www.legaragenumerique.fr)
|
||||
|
||||
@ -16,47 +16,37 @@ Nous avons pour but de former la population à l'utilisation de logiciels libres
|
||||
|
||||
Au Garage Numérique, on répare, on reconditionne et on forme les habitants aux outils libres pour une égalité numérique!
|
||||
|
||||
[](https://fr.wikipedia.org/wiki/Linux) [](https://fr.wikipedia.org/wiki/Debian)
|
||||
---------------
|
||||
### MON TRAVAIL
|
||||
|
||||
### 
|
||||

|
||||
|
||||

|
||||
##### MES RÔLES
|
||||
|
||||
##### 
|
||||
Mon travail au "Garage" revêt de multiples facettes:
|
||||
|
||||
Voici mes principaux rôles au Garage Numérique:
|
||||
- Je suis formateur Technicien d'exploitation Devops au CNAM pour des étudiants BAC +1.
|
||||
|
||||
* Je suis formateur Devops au [CNAM](https://www.cnam.fr) pour des étudiants BAC +1 ainsi que pour les élèves su Pass numérique pro. Cela me permet de rester en perpétuelle veille technologique afin de transmetre les dernières technos utilisées.
|
||||
- Je suis également Administrateur système, en charge de maintenir les serveurs du Garage opérationnels, à jour et sécurisés.
|
||||
Dans ce cadre, j'ai déployé un PRA (Plan Reprise d'Activité) visant à sauvegarder les applicatifs régulièrement et redéployer ceux-ci en cas de problèmes sur les serveurs.
|
||||
|
||||
* Je suis également Administrateur système, en charge de maintenir les serveurs du Garage opérationnels, à jour et sécurisés. La mise en place d'un monitoring automatisé autour de [Prometheus](https://prometheus.io/) ainsi que d'un système de BACKUP régulières permettant de récupérer rapidement en cas d'incident sur un serveur.
|
||||
- J'ai aussi la casquette de développeur / intégrateur des applications déployés sur les serveurs de l'association.
|
||||
|
||||
* Je développe également des applications pour la Garage et les intègre dans notre [ecosystème](https://git.legaragenumerique.fr/GARAGENUM/ecosysteme) afin de proposer toujours plus de services utiles à la communauté.
|
||||
##### LES PROJETS
|
||||
|
||||
##### 
|
||||
|
||||
- Le framework python Django m'a permis de développer une application de quiz avec connection centralisée (SSO) vers le gestionnaire d'identité du Garage: Keycloak.
|
||||
- Le framework python Django m'a permis de développer une application de quiz avec connection centralisée (SSO) vers le gestionnaire d'identité du Garage: Keycloak
|
||||
|
||||
[](https://www.djangoproject.com/)
|
||||
|
||||
[](https://www.keycloak.org/)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.legaragenumerique.fr/GARAGENUM/django-quiz/src/branch/keycloak)
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
|
||||
- A la manière de [OVERTHEWIRE](https://overthewire.org/wargames/bandit/), nous avons créé un "bash game" pour faire découvrir aux étudiants les commandes terminal Linux via un jeux:
|
||||
|
||||
[](https://devops.legaragenumerique.fr/)
|
||||
|
||||
Pour déployer l'application sur les serveurs du Garage, nous avons choisi de "conteneuriser" celle-ci afin d'optimiser et de sécuriser notre serveur via l'outil [Docker](https://www.docker.com/).
|
||||
Pour déployer l'application sur les serveurs du Garage, nous avons choisi de "dockerisé" celle-ci afin d'optimiser et de sécuriser notre serveur via l'outil Docker.
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.legaragenumerique.fr/GARAGENUM/enter-bash)
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
[](https://www.docker.com/)
|
||||
|
||||
- Nous avons également déployer un méta-verse permettant aux étudiants de se retrouver d'une manière ludique pour travailler:
|
||||
|
||||
@ -64,70 +54,6 @@ ___
|
||||
|
||||
Développé par [The Coding Machine](https://thecodingmachine.com/)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://github.com/workadventure/workadventure)
|
||||
- Nous avons constitué une documentation au fil du temps archivant nos process et beacoup de connaissances utiles dans l'informatique hébergé sur Gitlab et mise à jour régulièrement:
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
|
||||
- Afin d'assurer "l'indépendance de notre code", nous hébergeons un SCM ([Gitea](https://about.gitea.com/)) ainsi qu'une plateforme de CI/CD via [Drone CI](https://www.drone.io/):
|
||||
|
||||
[](https://git.legaragenumerique.fr)
|
||||
|
||||
|
||||
{{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.legaragenumerique.fr/GARAGENUM/gitea-drone-ci)
|
||||
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
- A l'heure de l'intelligence artificielle, le Garage à déployé son propre [LLM](https://fr.wikipedia.org/wiki/Grand_mod%C3%A8le_de_langage) open source permettant d'intéragir avec une "intelligence artificielle".
|
||||
|
||||
[](https://ai.legaragenumerique.xyz)
|
||||
|
||||
Les modèles déployés sont:
|
||||
- [ChatGPT 3.5](https://huggingface.co/openai-community/openai-gpt) Modèle de language conversationnel
|
||||
- [Stable diffusion](https://huggingface.co/runwayml/stable-diffusion-v1-5) Modèle de générateur d'images
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.legaragenumerique.fr/GARAGENUM/garage-AI)
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
|
||||
|
||||
- Un Curiculum Vitae via le framework [HUGO](https://gohugo.io/):
|
||||
|
||||
[](https://cv.gregandev.fr/)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.gregandev.fr/gregandev/hugo-cv)
|
||||
|
||||
___
|
||||
<br><br>
|
||||
|
||||
|
||||
- Dans le cadre du CNAM, nous avon développé un exemple d'API simple en Python Flask ainsi que son client Android en python via les modules Kivy et Buildozer:
|
||||
|
||||
[](https://git.legaragenumerique.fr/GARAGENUM/python-api)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source API](https://git.legaragenumerique.fr/GARAGENUM/python-api)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source client Android](https://git.legaragenumerique.fr/GARAGENUM/python-kivy)
|
||||
|
||||
___
|
||||
<br><br>
|
||||
|
||||
|
||||
- Nous avons constitué une documentation avec [MKdocs](https://www.mkdocs.org/) au fil du temps archivant nos process et beaucoup de connaissances utiles dans l'informatique, mise à jour régulièrement via un [Drone CI] auto-hébergé:
|
||||
|
||||
[](https://docs.legaragenumerique.xyz)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" "https://git.legaragenumerique.fr/GARAGENUM/docs" >}} [code source](https://git.legaragenumerique.fr/GARAGENUM/docs)
|
||||
|
||||
___
|
||||
|
||||
<br><br>
|
||||
|
||||
Pour plus de projets open source maintenus par le Garage: [Garagenum code](https://git.legaragenumerique.fr/GARAGENUM)
|
||||
[](https://garagenum.gitlab.io/doc/)
|
||||
|
@ -5,7 +5,7 @@ subtitle: VR multiplayer retro classic remake
|
||||
|
||||
[](https://fr.wikipedia.org/wiki/GoldenEye_007)
|
||||
|
||||
### 
|
||||
### LE PRINCIPE
|
||||
|
||||
Le but est de se rapprocher un maximum de la version N64 mais en VR : restituer l'ambiance et les mécanismes de l'original mais en y étant. Un principe des plus simple :
|
||||
transposer GoldenEye 64 en PC VR avec une compatibilité maximale (Oculus Rift(s), HTC Vive, Windows MR, etc...).
|
||||
@ -13,9 +13,9 @@ Je développe sous Unity avec l'api Photon pour le multiplayer. Pour les mécani
|
||||
destiné pour les fans de GoldenEye 64 et de VR, le but est de créer une communauté pour améliorer continuellement le jeu à la manière de GoldenEye Source.
|
||||
|
||||
---------------
|
||||
### 
|
||||
### SCREENSHOTS
|
||||
|
||||
#### 
|
||||
#### les maps
|
||||
|
||||

|
||||
|
||||
@ -25,22 +25,18 @@ destiné pour les fans de GoldenEye 64 et de VR, le but est de créer une commun
|
||||
|
||||
(Toutes les maps du jeu originales sont présentes bien entendu!)
|
||||
|
||||
#### 
|
||||
|
||||
##### principal
|
||||
#### les menus
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
##### in game
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
---------------
|
||||
### 
|
||||
### UPDATE 04/2020DES NEWS
|
||||
|
||||
Suite au contexte de confinement, j'ai pû replonger dans le projet pour y avançer quelque peu.
|
||||
Voici les petits ajouts et une petite update de la road map:<br>
|
||||
@ -48,8 +44,6 @@ Voici les petits ajouts et une petite update de la road map:<br>
|
||||
- Ajout du plug-in Steam VR<br>
|
||||
- Ajout du plug-in Photon Voice qui gère le dialogue par voix dans le jeu<br>
|
||||
|
||||
#### 
|
||||
|
||||

|
||||
|
||||

|
||||
@ -57,8 +51,9 @@ Voici les petits ajouts et une petite update de la road map:<br>
|
||||

|
||||
|
||||
---------------
|
||||
### 
|
||||
### LA ROAD MAP
|
||||
|
||||
La roadmap du projet est la suivante:<br>
|
||||
* Implémenter la création de room personnalisée pour faire des parties privée entre amis.<br>
|
||||
* Intégrer les différents modes de jeu (deathmatch, teammatch, capture the flag, the man with the golden gun, etc...)<br>
|
||||
* Ajouter des options de comfort comme la vignette lors du déplacement, la TP, le remappage des boutons.<br>
|
@ -6,7 +6,7 @@ comments: false
|
||||
|
||||

|
||||
|
||||
### 
|
||||
### LE PRINCIPE
|
||||
|
||||
C'est un FPS en VR pour la plateforme Oculus Quest où l'on tire sur des terminators se présentant.
|
||||
|
||||
@ -16,7 +16,7 @@ Le but est de rejoindre la fin du niveau en tuant un maximum de Terminators et e
|
||||
|
||||

|
||||
|
||||
### 
|
||||
### LE POURQUOI
|
||||
|
||||
Je voulais tester de créer les scripts de mécanique de recharge manuelle de l'arme :<br>
|
||||
une fois le magasin vide enlevé, on prends celui situé à gauche sur la "ceinture" et finalement celui-ci mis en place, l'arme se recharge.
|
||||
@ -27,7 +27,7 @@ Suite à la sortie du jeu Terminator Resistance, j'ai vraiment accroché avec l'
|
||||
devs ont réussis à créer et étant un fan des films, je me suis lançé.<br>
|
||||
C'est une version simple avec des assets téléchargées sur Sketchfab, le tout codé en une semaine.
|
||||
|
||||
### 
|
||||
### LE COMMENT
|
||||
|
||||
La plateforme Quest étant limité en ressources ([Spécifications Oculus Quest](https://vr-compare.com/headset/oculusquest)), il fallait trouver un moyen d'optimiser le chargement des GameObjects en cours de niveau, j'ai donc implémenté le principe "d'object pooler".
|
||||
|
||||
@ -169,7 +169,7 @@ public class ObjectLoader : MonoBehaviour
|
||||
|
||||
-->
|
||||
|
||||
### 
|
||||
### V 2.00
|
||||
|
||||
Suite aux critiques positive sur SideQuest, j'ai décidé de pousser un peu plus loin la complexité des mécanismes en scriptant un objectif:
|
||||
détruire un batiment pour libérer le passage vers la fin du niveau.
|
||||
@ -182,15 +182,15 @@ puis l'explosion du batiment qui libèrera enfin l'accès vers la fin du niveau.
|
||||
|
||||

|
||||
|
||||
### 
|
||||
### VIDEOS TEST
|
||||
|
||||
En attendant le portage qui apportera des améliorations graphiques et au niveau du gameplay, voici une review sur Quest 2 :
|
||||
|
||||
{{< youtube 8Jfupw6VqgU >}}
|
||||
|
||||
La version 2.0 avec le deuxième level est disponible un peu plus bas en téléchargement via le sideloader Sidequest.
|
||||
La version 2.00 avec le deuxième level est disponible un peu plus bas en téléchargement via le sideloader Sidequest.
|
||||
|
||||
### 
|
||||
### ROAD MAP
|
||||
|
||||
Pour la suite du projet, on passe sur PC, on oublie Oculus et on plonge dans l'open source avec openXR pour le côté VR.
|
||||
|
||||
@ -198,18 +198,17 @@ Par la même occassion, on bascule sur la dernière version d'Unity (2021.3.15),
|
||||
|
||||
Reste à peupler un peu plus la map maintenant que l'on est plus limité par un chipset mobile et on se lançe vers un niveau 3!
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
V 3.0 on the way!
|
||||
V 3.00 on the way!
|
||||
|
||||
### 
|
||||
### TÉLÉCHARGER
|
||||
|
||||
Télécharger la version 2.0 pour Oculus Quest (compatible Quest 2):
|
||||
|
||||
[](https://sdq.st/a/366)
|
||||
Télécharger la version 2.00 pour Oculus Quest (compatible Quest 2):
|
||||
>(Oculus Quest nécessaire ainsi que SideQuest pour l'installation)
|
||||
|
||||
[](https://sdq.st/a/366)
|
||||
|
||||
> (Oculus Quest nécessaire ainsi que SideQuest pour l'installation)
|
||||
<!--[TELECHARGER DE GREGANDEV](../../docs/TerminatorQuest/TerminatorQuest_v2.00.apk)-->
|
||||
|
||||
<!-- [TELECHARGER DE GREGANDEV](../../docs/TerminatorQuest/TerminatorQuest_v2.00.apk) -->
|
||||
Pour les versions suivantes, ce sera disponible sur itch.io en version PC Windows et Linux, API openXR (compatible Steam VR).
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
title: LIENS SYMPAS
|
||||
title: LIENS
|
||||
subtitle:
|
||||
comments: false
|
||||
description: quelques liens funs
|
||||
---
|
||||
|
||||
### 
|
||||
|
||||
### BLADE RUNNER
|
||||
|
||||

|
||||
|
||||
@ -15,12 +15,11 @@ un projet faramineux de reconstitution de l'appartement du célèbre Blade runne
|
||||
La minutie des textures, le souci du détail et l'athmosphère générale en fait pour moi un monument numérique dédié au chef d'oeuvre du septième art qu'est Blade Runner.
|
||||
Bref, pour les amoureux de Blade Runner, c'est ici :
|
||||
|
||||
[](https://www.br9732.com)
|
||||
[](http://www.br9732.com)
|
||||
|
||||
[](https://www.br9732.com)
|
||||
[SITE DU CREATEUR](https://www.br9732.com)
|
||||
|
||||
------
|
||||
### 
|
||||
### RETRO GAMING
|
||||
|
||||

|
||||
|
||||
@ -28,17 +27,15 @@ Grâce à des devs brillants, la plateforme open source de retrogaming "Retroarc
|
||||
en version web via emscriptem. Une image docker éxistait déjà, cependant voulant héberger le tout sur un Raspberry Pi 4,
|
||||
l'architecture ne correspondait pas. Après réécriture de la Dockerfile et un build plus tard, j'ai constaté le succès de l'opération.
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://github.com/libretro/RetroArch)
|
||||
[RETROARCH SOURCE CODE](https://github.com/libretro/RetroArch)
|
||||
|
||||
> Image Docker pour Raspberry PI4:
|
||||
[](https://hub.docker.com/r/greglebreton/retroarchwebpi)
|
||||
[IMAGE DOCKER POUR RASPBERRY PI 4](https://hub.docker.com/r/greglebreton/retroarchwebpi)
|
||||
|
||||
<!-- [RETROARCH WEB PLAYER DÉPLOYÉ](https://retroarch.gregandev.fr) -->
|
||||
|
||||

|
||||
|
||||
------
|
||||
### 
|
||||
### EMULATIONSTATION
|
||||
|
||||

|
||||
|
||||
@ -47,12 +44,11 @@ EmulationStation est un FrontEnd opensource pour émulateur (généralement Retr
|
||||
Cet outil nécessite de la configuration pour fonctionner mais il offre des possibilités et une profondeur pour les afficionados du retro gaming qui mérite un détour.
|
||||
En attendant de partager ma config, un petit lien permet de se faire une bonne idée de la chose.
|
||||
|
||||
J'ai également refait certains screens de menus pour quelques consoles que vous pouvez télécharger ici: [](https://github.com/GregLebreton/emulationstationThemes)
|
||||
J'ai également refait certains screens de menus pour quelques consoles que vous pouvez télécharger: [ICI](https://github.com/GregLebreton/emulationstationThemes)
|
||||
|
||||
[](https://emulationstation.org)
|
||||
[](https://emulationstation.org)
|
||||
|
||||
------
|
||||
### 
|
||||
### MOZINOR
|
||||
|
||||

|
||||
|
||||
@ -68,12 +64,12 @@ La classe américaine ou le grand détournement. c'est le "flim" qui a inspiré
|
||||
|
||||

|
||||
|
||||
Film complet: [](https://www.youtube.com/watch?v=W8sop56DBUs)
|
||||
[LA CLASSE AMERICAINE (FILM COMPLET)](https://www.youtube.com/watch?v=W8sop56DBUs)
|
||||
|
||||
------
|
||||
### 
|
||||
|
||||

|
||||
### POUR LES VIEUX GEEKS
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
@ -82,9 +78,4 @@ JSdos est un projet pour faire tourner DosBox (émulateur MS-DOS en JavaScript)
|
||||
Cliquez sur l'icône et choisissez parmis les plus grand classiques DOS tels que DOOM, SIM CITY ou encore BLOOD.
|
||||
Un grand merci à [@caiiiycuk](https://twitter.com/caiiiycuk) pour cet ouvrage.
|
||||
|
||||
Un DOS web avec les grands classiques:
|
||||
[](https://js-dos.com/games/)
|
||||
|
||||
<!-- ### HUMOUR DE DEV
|
||||
|
||||
> les joies du code -->
|
||||
[UN DOS EMBARQUÉ DANS UNE PAGE WEB AVEC LES GRANDS CLASSIQUES](https://js-dos.com/games/)
|
||||
|
@ -1,54 +0,0 @@
|
||||
---
|
||||
title: PROJETS
|
||||
subtitle:
|
||||
comments: false
|
||||
description: les projets persos
|
||||
---
|
||||
|
||||
### 
|
||||
|
||||
Implémentation VR sur [Geographical-Adventures](https://github.com/SebLague/Geographical-Adventures)
|
||||
|
||||
[](https://git.legaragenumerique.fr/greg/Geographical-Adventures-VR)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.legaragenumerique.fr/greg/Geographical-Adventures-VR)
|
||||
|
||||
### 
|
||||
|
||||
Un hommage à l'ère des consoles 8 et 16 bits
|
||||
|
||||
[]({{< relref "projets/retroarcade.md" >}})
|
||||
|
||||
### 
|
||||
|
||||
Un remake du célèbre jeux sur Nintendo 64 en VR
|
||||
|
||||
[]({{< relref "projets/goldeneyevr.md" >}})
|
||||
|
||||
### 
|
||||
|
||||
Un FPS dans le monde post apocalyptique de Terminator en VR
|
||||
|
||||
[]({{< relref "projets/la-2029.md" >}})
|
||||
|
||||
### 
|
||||
|
||||
Conduisez la célèbre moto de Kaneda (Akira) en VR dans un Neo Tokyo
|
||||
|
||||
[]({{< relref "projets/akiravr.md" >}})
|
||||
|
||||
### 
|
||||
|
||||
Ce site portfolio a été fait avec le framework [HUGO](https://gohugo.io/)
|
||||
|
||||
[](https://git.gregandev.fr/portfolio/hugo-site)
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.gregandev.fr/portfolio/hugo-site)
|
||||
|
||||
L'utilisation du même framework avec un thème monopage pour faire son CV:
|
||||
|
||||
> {{< icons "fab fa-github" "fa-2x" >}} [code source](https://git.gregandev.fr/portfolio/hugo-cv)
|
||||
|
||||
<!-- ### PYTHON METEO
|
||||
|
||||
[![Python meteo]()](https://git.gregandev.fr/gregandev/python-meteo.git) -->
|
@ -5,7 +5,7 @@ subtitle: A tribute to retro classics
|
||||
|
||||

|
||||
|
||||
### 
|
||||
### LE PRINCIPE
|
||||
|
||||
Le but est de fournir un jeu ludique et personalisé pour mes neveux, dans l'esprit
|
||||
des jeux codés fin des années 90 : plateforme 2D à niveaux themés.
|
||||
@ -24,10 +24,10 @@ Le cahier des charges est le suivant:<br>
|
||||
|
||||

|
||||
|
||||
------
|
||||
### 
|
||||
----------------
|
||||
### LA V2.0 EN WEBGL
|
||||
|
||||

|
||||

|
||||
|
||||
Cela fait un petit bout de temps que je voulais mettre en ligne la version 2 de mon projet de jeu mais des querelles de versions entre Unity et son plugin WebGL ainsi que le boulot m'ont
|
||||
freiné dans le processus, mais voilà la V2.0 avec un niveaux vraiment complet ainsi que pleins de nouvelles mécaniques est là!
|
||||
@ -44,11 +44,10 @@ Un petit listing des updates:<br><br>
|
||||
J'ai dû en oublier mais l'essentiel est là. Pour essayer, toujours le même lien en dessous,
|
||||
Pour les commandes, les manettes type Xbox360 sont reconnus ainsi que le clavier, control pour tirer, espace pour sauter<br>
|
||||
|
||||
> Version webGL (dans le navigateur):
|
||||
[](../../docs/webgl/index.html)
|
||||
[LE JEUX VERSION WEBGL](../../docs/webgl/index.html)
|
||||
|
||||
------
|
||||
### 
|
||||
----------------
|
||||
### LA V3.0 ANDROID
|
||||
|
||||

|
||||
|
||||
@ -60,12 +59,18 @@ Beaucoup d'améliorations au niveau des animations et du gameplay:<br>
|
||||
- Ajout du menu pause avec l'option quitter<br>
|
||||
- Build Android avec contrôles tactiles<br>
|
||||
|
||||
> Télécharger au format APK:
|
||||
[](../../docs/android/EwannEtMilhauVSVideoGames.apk)
|
||||
Bref, pleins de belles choses à tester!<br>
|
||||
|
||||
------
|
||||
### 
|
||||
> Note: Fichier au format APK
|
||||
[LE JEUX VERSION ANDROID](../../docs/android/EwannEtMilhauVSVideoGames.apk)
|
||||
|
||||

|
||||
----------------
|
||||
### ROADMAP
|
||||
|
||||

|
||||
|
||||
### SCREENSHOTS
|
||||
|
||||

|
||||
|
||||
(Les références à "One piece" & "Yu-Gi-Oh!", c'est pour mes neveux...)
|
@ -1,64 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- {{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }} -->
|
||||
|
||||
<title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
<link rel="icon" type="image/png" href='{{ "images/logos/favicon.png" | absURL }}' sizes="16x16">
|
||||
<link rel="icon" type="image/png" href='{{ "images/logos/favicon.png" | absURL }}' sizes="32x32">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Oswald:400" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
|
||||
|
||||
{{ $styles := resources.Get "css/styles.css" }}
|
||||
{{ $syntax := resources.Get "css/syntax.css" }}
|
||||
{{ $styles := slice $styles $syntax | resources.Concat "css/bundle.css" | minify | fingerprint }}
|
||||
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" />
|
||||
|
||||
{{ block "head" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark py-1 top-nav">
|
||||
<div class="container">
|
||||
{{ partial "navbar-brand" . }}
|
||||
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse" id="navbarCollapse">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
{{ partial "top-nav-text-links" . }}
|
||||
</ul>
|
||||
<div class="social-icons d-none d-lg-block">
|
||||
{{ partial "social-icons" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{{ block "header" .}}{{ end }}
|
||||
|
||||
<div class="main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
|
||||
<footer class="mt-auto footer d-print-none">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex justify-content-center icons">
|
||||
{{ partial "social-icons" . }}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,68 +0,0 @@
|
||||
{{ define "head" }}
|
||||
|
||||
<style type="text/css">
|
||||
.feature-image {
|
||||
background-image: linear-gradient(
|
||||
rgba(0, 0, 0, 0.15),
|
||||
rgba(0, 0, 0, 0.15)
|
||||
), url('{{ "images/unix.jpg" | absURL }}');
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.feature-image-text {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.feature-image {
|
||||
background-position: 0% 30%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.feature-image {
|
||||
height: 250px;
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{{ end }}
|
||||
{{ define "header" }}
|
||||
{{ if .IsHome }}
|
||||
<header class="feature-image">
|
||||
<div class="feature-image-text white-shadow-text">
|
||||
{{ partial "header-about-me" . }}
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
{{ if not .IsHome }}
|
||||
|
||||
<header class="feature-image">
|
||||
<div class="feature-image-text">
|
||||
<h1 class="text-center">{{ .Title }}</h1>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="container mt-4 mb-4 recent-posts" style="text-align: center;">
|
||||
{{ $pages := .Pages }}
|
||||
{{ if .IsHome }}
|
||||
{{ $pages := where .Site.RegularPages "Section" "page" }}
|
||||
|
||||
{{ range $pages }}
|
||||
<div><a class="title" id="front-title" href="{{ .Permalink }}"><h2>{{ .Title }}</h2></a></div>
|
||||
<div><p id="front-title">{{ .Description }}</p></div>
|
||||
{{ end }}
|
||||
<!-- {{ $pages := where .Site.RegularPages "Section" "projets" }}
|
||||
|
||||
{{ range $pages }}
|
||||
<div><a href="{{ .Permalink }}"><h5>{{ .Title }}</h5></a></div>
|
||||
{{ end }} -->
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
@ -1,51 +0,0 @@
|
||||
{{ define "head" }}
|
||||
|
||||
<style type="text/css">
|
||||
/* .feature-image {
|
||||
background-image: url("{{ . | absURL | safeCSS}}");
|
||||
background-image: url('{{ "../images/unix.jpg" | absURL }}');
|
||||
height: 500px;
|
||||
} */
|
||||
|
||||
p {
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
img {
|
||||
max-width: 95%
|
||||
}
|
||||
|
||||
/* @media (max-width: 992px) {
|
||||
.feature-image {
|
||||
height: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.feature-image {
|
||||
height: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.feature-image {
|
||||
height: 200px;
|
||||
}
|
||||
} */
|
||||
</style>
|
||||
|
||||
{{ end }}
|
||||
{{ define "title" }}
|
||||
{{ .Title }} | {{ .Site.Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="container mt-4 post">
|
||||
<!-- <h1>{{ .Title }}</h1> -->
|
||||
{{ partial "post-meta" . }}
|
||||
|
||||
<div class="mt-4 mb-4 main-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
@ -1,6 +0,0 @@
|
||||
{{ $iconClass := .Get 0 }}
|
||||
{{ $sizeClass := .Get 1 }}
|
||||
|
||||
<a target="_blank" rel="noopener noreferrer">
|
||||
<i class="{{ $iconClass }} {{ $sizeClass }}"></i>
|
||||
</a>
|
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 161 KiB |
@ -1,3 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||
<path d="M5.583 7.229c-2.464-0.005-5.755 1.557-5.573 5.479 0.281 6.125 6.557 6.693 9.068 6.745 0.271 1.146 3.224 5.109 5.411 5.318h9.573c5.74-0.38 10.036-17.365 6.854-17.427-5.271 0.25-8.396 0.375-11.073 0.396v5.297l-0.839-0.365-0.005-4.932c-3.073 0-5.781-0.141-10.917-0.396-0.646-0.005-1.542-0.115-2.5-0.115zM5.927 9.396h0.297c0.349 3.141 0.917 4.974 2.068 7.781-2.938-0.349-5.432-1.198-5.891-4.38-0.24-1.646 0.563-3.365 3.526-3.401zM17.339 12.479c0.198 0.005 0.406 0.042 0.594 0.13l1 0.432-0.714 1.302c-0.109 0-0.219 0.016-0.323 0.052-0.464 0.151-0.708 0.604-0.542 1.021 0.036 0.083 0.089 0.161 0.151 0.229l-1.234 2.25c-0.099 0-0.203 0.016-0.297 0.052-0.464 0.146-0.708 0.604-0.542 1.016 0.172 0.417 0.682 0.63 1.151 0.479 0.464-0.146 0.703-0.604 0.536-1.021-0.047-0.109-0.115-0.208-0.208-0.292l1.203-2.188c0.13 0.010 0.26 0 0.391-0.042 0.104-0.031 0.198-0.083 0.281-0.151 0.464 0.198 0.844 0.354 1.12 0.49 0.406 0.203 0.552 0.339 0.599 0.49 0.042 0.146-0.005 0.427-0.24 0.922-0.172 0.37-0.458 0.896-0.797 1.51-0.115 0-0.229 0.016-0.333 0.052-0.469 0.151-0.708 0.604-0.542 1.021 0.167 0.411 0.682 0.625 1.146 0.479 0.469-0.151 0.708-0.604 0.542-1.021-0.042-0.099-0.104-0.193-0.182-0.271 0.333-0.609 0.62-1.135 0.807-1.526 0.25-0.536 0.38-0.938 0.266-1.323s-0.469-0.635-0.932-0.865c-0.307-0.151-0.693-0.313-1.146-0.505 0.005-0.109-0.010-0.214-0.052-0.318s-0.109-0.198-0.193-0.281l0.703-1.281 3.901 1.682c0.703 0.307 0.995 1.057 0.651 1.682l-2.682 4.906c-0.339 0.625-1.182 0.885-1.885 0.578l-5.516-2.38c-0.703-0.307-0.995-1.057-0.656-1.682l2.682-4.906c0.234-0.432 0.708-0.688 1.208-0.708h0.083z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
static/images/jeux/AkiraCover.JPG
Executable file
After Width: | Height: | Size: 125 KiB |
Before Width: | Height: | Size: 850 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 539 KiB After Width: | Height: | Size: 575 KiB |
Before Width: | Height: | Size: 729 KiB After Width: | Height: | Size: 874 KiB |
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 306 KiB |
Before Width: | Height: | Size: 318 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 234 KiB |
Before Width: | Height: | Size: 419 KiB |
Before Width: | Height: | Size: 139 KiB |
BIN
static/images/test/1.png
Normal file
After Width: | Height: | Size: 1.0 MiB |
BIN
static/images/test/2.jpg
Normal file
After Width: | Height: | Size: 492 KiB |
17
themes/beautifulhugo/.gitattributes
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
72
themes/beautifulhugo/.github/workflows/hugo.yml
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
# Based on the sample workflow for building and deploying a Hugo site to GitHub Pages
|
||||
name: Deploy Hugo site to Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["master"]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
jobs:
|
||||
# Build job
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HUGO_VERSION: 0.104.2
|
||||
steps:
|
||||
- name: Install Hugo CLI
|
||||
run: |
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Build with Hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
HUGO_ENVIRONMENT: production
|
||||
HUGO_ENV: production
|
||||
run: |
|
||||
hugo \
|
||||
--minify \
|
||||
--baseURL "${{ steps.pages.outputs.base_url }}/" \
|
||||
-s "./exampleSite/" \
|
||||
--themesDir "../../"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ./exampleSite/public
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
if: >
|
||||
success()
|
||||
&& github.ref == 'refs/heads/master'
|
||||
&& github.repository == 'halogenica/beautifulhugo'
|
||||
uses: actions/deploy-pages@v1
|
50
themes/beautifulhugo/.gitignore
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# Themes directory of example site; ignored so that we can clone the repo
|
||||
# inside the themes directory and test the example site with "hugo server".
|
||||
exampleSite/themes/
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
|
||||
# Vim swap files
|
||||
*.swp
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
||||
# OSX
|
||||
# =========================
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear on external disk
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
22
themes/beautifulhugo/LICENSE
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Original work Copyright (c) 2015 Dean Attali
|
||||
Modified work Copyright (c) 2017 Michael Romero
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
201
themes/beautifulhugo/README.md
Normal file
@ -0,0 +1,201 @@
|
||||
# Beautiful Hugo - An adaptation of the Beautiful Jekyll theme
|
||||
|
||||

|
||||
|
||||
## Live demo
|
||||
|
||||
See https://hugo-theme-beautifulhugo.netlify.app/
|
||||
|
||||
## Installation
|
||||
|
||||
$ mkdir themes
|
||||
$ cd themes
|
||||
$ git submodule add https://github.com/halogenica/beautifulhugo.git beautifulhugo
|
||||
|
||||
|
||||
See [the Hugo documentation](https://gohugo.io/themes/installing/) for more information.
|
||||
|
||||
## Extra Features
|
||||
|
||||
### Responsive
|
||||
|
||||
This theme is designed to look great on both large-screen and small-screen (mobile) devices.
|
||||
|
||||
### Syntax highlighting
|
||||
|
||||
This theme has support for either Hugo's lightning fast Chroma, or both server side and client side highlighting. See [the Hugo docs for more](https://gohugo.io/content-management/syntax-highlighting/).
|
||||
|
||||
#### Chroma - New server side syntax highlighting
|
||||
|
||||
To enable Chroma, add the following to your site parameters:
|
||||
|
||||
```
|
||||
pygmentsCodeFences = true
|
||||
pygmentsUseClasses = true
|
||||
```
|
||||
|
||||
Then, you can generate a different style by running:
|
||||
|
||||
```
|
||||
hugo gen chromastyles --style=trac > static/css/syntax.css
|
||||
```
|
||||
|
||||
#### Pygments - Old server side syntax highlighting
|
||||
|
||||
To use this feature install Pygments (`pip install Pygments`) and add the following to your site parameters:
|
||||
|
||||
```
|
||||
pygmentsStyle = "trac"
|
||||
pygmentsUseClassic = true
|
||||
```
|
||||
|
||||
Pygments is mostly compatable with the newer Chroma. It is slower but has some additional theme options. I recommend Chroma over Pygments. Pygments will use `syntax.css` for highlighting, unless you also set the config `pygmentsUseClasses = false` which will generate the style code directly in the HTML file.
|
||||
|
||||
#### Highlight.js - Client side syntax highlighting
|
||||
```
|
||||
[Params]
|
||||
useHLJS = true
|
||||
```
|
||||
|
||||
Client side highlighting does not require pygments to be installed. This will use `highlight.min.css` instead of `syntax.css` for highlighting (effectively disabling Chroma). Highlight.js has a wider range of support for languages and themes, and an alternative highlighting engine.
|
||||
|
||||
### Disqus support
|
||||
|
||||
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`.
|
||||
|
||||
### Staticman support
|
||||
|
||||
Add *Staticman* configuration section in `config.toml` or `config.yaml`
|
||||
|
||||
Sample `config.toml` configuration
|
||||
|
||||
```
|
||||
[Params.staticman]
|
||||
api = "https://<API-ENDPOINT>/v3/entry/{GIT-HOST}/<USERNAME>/<REPOSITORY-BLOGNAME>/master/comments"
|
||||
[Params.staticman.recaptcha]
|
||||
sitekey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
|
||||
secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
|
||||
```
|
||||
|
||||
Note: The public `API-ENDPOINT` https://staticman.net is currently hitting its API limit, so one may use other API instances to provide Staticman comment service.
|
||||
|
||||
The section `[Params.staticman.recaptcha]` is *optional*. To add reCAPTCHA to your site, you have to replace the default values with your own ones (to be obtained from Google.) The site `secret` has to be encrypted with
|
||||
|
||||
https://<API-ENDPOINT>/v3/encrypt/<SITE-SECRET>
|
||||
|
||||
You must also configure the `staticman.yml` in you blog website.
|
||||
|
||||
```
|
||||
comments:
|
||||
allowedFields: ["name", "email", "website", "comment"]
|
||||
branch : "master"
|
||||
commitMessage : "New comment in {options.slug}"
|
||||
path: "data/comments/{options.slug}"
|
||||
filename : "comment-{@timestamp}"
|
||||
format : "yaml"
|
||||
moderation : true
|
||||
requiredFields : ['name', 'email', 'comment']
|
||||
transforms:
|
||||
email : md5
|
||||
generatedFields:
|
||||
date:
|
||||
type : "date"
|
||||
options:
|
||||
format : "iso8601"
|
||||
reCaptcha:
|
||||
enabled: true
|
||||
siteKey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
|
||||
secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
|
||||
```
|
||||
|
||||
If you *don't* have the section `[Params.staticman]` in `config.toml`, you *won't* need the section `reCaptcha` in `staticman.yml`
|
||||
|
||||
### Google Analytics
|
||||
|
||||
To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`.
|
||||
|
||||
Note that the Google Analytics tracking code will only be inserted into the page when the site isn't served on Hugo's built-in server, to prevent tracking from local testing environments.
|
||||
|
||||
### Commit SHA on the footer
|
||||
|
||||
If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two site parameters `commit` has to be defined in the config file `config.toml`:
|
||||
|
||||
```
|
||||
enableGitInfo = true
|
||||
[Params]
|
||||
commit = "https://github.com/<username>/<siterepo>/tree/"
|
||||
```
|
||||
|
||||
See at [vincenttam/vincenttam.gitlab.io](https://gitlab.com/vincenttam/vincenttam.gitlab.io) for an example of how to add it to a continuous integration system.
|
||||
|
||||
### Multilingual
|
||||
|
||||
To allow Beautiful Hugo to go multilingual, you need to define the languages
|
||||
you want to use inside the `languages` parameter on `config.toml` file, also
|
||||
redefining the content dir for each one. Check the `i18n/` folder to see all
|
||||
languages available.
|
||||
|
||||
```toml
|
||||
[languages]
|
||||
[languages.en]
|
||||
contentDir = "content/en" # English
|
||||
[languages.ja]
|
||||
contentDir = "content/ja" # Japanese
|
||||
[languages.br]
|
||||
contentDir = "content/br" # Brazilian Portuguese
|
||||
```
|
||||
|
||||
Now you just need to create a subdir within the `content/` folder for each
|
||||
language and just put stuff inside `page/` and `post/` regular directories.
|
||||
```
|
||||
content/ content/ content/
|
||||
└── en/ └── br/ └── ja/
|
||||
├── page/ ├── page/ ├── page/
|
||||
└── post/ └── post/ └── post/
|
||||
|
||||
```
|
||||
|
||||
### Self Hosted assets for GDPR / EU-DSGVO compliance
|
||||
|
||||
With default settings, visiting to a website using Beautifulhugo connects also to remote services like google fonts or jsdelivr to embed fonts, js and other assets.
|
||||
|
||||
To avoid this, set the following param in config.toml:
|
||||
|
||||
```
|
||||
[Params]
|
||||
selfHosted = true
|
||||
```
|
||||
|
||||
### Extra shortcodes
|
||||
|
||||
There are two extra shortcodes provided (along with the customized figure shortcode):
|
||||
|
||||
#### Details
|
||||
|
||||
This simply adds the html5 detail attribute, supported on all *modern* browsers. Use it like this:
|
||||
|
||||
```
|
||||
{{< details "This is the details title (click to expand)" >}}
|
||||
This is the content (hidden until clicked).
|
||||
{{< /details >}}
|
||||
```
|
||||
|
||||
#### Split
|
||||
|
||||
This adds a two column side-by-side environment (will turn into 1 col for narrow devices):
|
||||
|
||||
```
|
||||
{{< columns >}}
|
||||
This is column 1.
|
||||
{{< column >}}
|
||||
This is column 2.
|
||||
{{< endcolumns >}}
|
||||
```
|
||||
|
||||
## About
|
||||
|
||||
This is an adaptation of the Jekyll theme [Beautiful Jekyll](https://deanattali.com/beautiful-jekyll/) by [Dean Attali](https://deanattali.com/aboutme#contact). It supports most of the features of the original theme, and many new features. It has diverged from the Jekyll theme over time, with years of community updates.
|
||||
|
||||
## License
|
||||
|
||||
MIT Licensed, see [LICENSE](https://github.com/halogenica/Hugo-BeautifulHugo/blob/master/LICENSE).
|
9
themes/beautifulhugo/archetypes/default.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
author: ""
|
||||
type: ""
|
||||
date: {{ .Date }}
|
||||
subtitle: ""
|
||||
image: ""
|
||||
tags: []
|
||||
---
|
174
themes/beautifulhugo/data/beautifulhugo/social.toml
Normal file
@ -0,0 +1,174 @@
|
||||
[[social_icons]]
|
||||
id = "email"
|
||||
url = "mailto:%s"
|
||||
title = "Email me"
|
||||
icon = "fas fa-envelope"
|
||||
|
||||
[[social_icons]]
|
||||
id = "facebook"
|
||||
url = "https://www.facebook.com/%s"
|
||||
title = "Facebook"
|
||||
icon = "fab fa-facebook"
|
||||
|
||||
[[social_icons]]
|
||||
id = "github"
|
||||
url = "https://github.com/%s"
|
||||
title = "GitHub"
|
||||
icon = "fab fa-github"
|
||||
|
||||
[[social_icons]]
|
||||
id = "gitlab"
|
||||
url = "https://gitlab.com/%s"
|
||||
title = "GitLab"
|
||||
icon = "fab fa-gitlab"
|
||||
|
||||
[[social_icons]]
|
||||
id = "bitbucket"
|
||||
url = "https://bitbucket.org/%s"
|
||||
title = "Bitbucket"
|
||||
icon = "fab fa-bitbucket"
|
||||
|
||||
[[social_icons]]
|
||||
id = "twitter"
|
||||
url = "https://twitter.com/%s"
|
||||
title = "Twitter"
|
||||
icon = "fab fa-twitter"
|
||||
|
||||
[[social_icons]]
|
||||
id = "slack"
|
||||
url = "https://%s.slack.com/"
|
||||
title = "Slack"
|
||||
icon = "fab fa-slack"
|
||||
|
||||
[[social_icons]]
|
||||
id = "reddit"
|
||||
url = "https://reddit.com/u/%s"
|
||||
title = "Reddit"
|
||||
icon = "fab fa-reddit-alien"
|
||||
|
||||
[[social_icons]]
|
||||
id = "linkedin"
|
||||
url = "https://linkedin.com/in/%s"
|
||||
title = "LinkedIn"
|
||||
icon = "fab fa-linkedin"
|
||||
|
||||
[[social_icons]]
|
||||
id = "xing"
|
||||
url = "https://www.xing.com/profile/%s"
|
||||
title = "Xing"
|
||||
icon = "fab fa-xing"
|
||||
|
||||
[[social_icons]]
|
||||
id = "stackoverflow"
|
||||
url = "https://stackoverflow.com/%s"
|
||||
title = "StackOverflow"
|
||||
icon = "fab fa-stack-overflow"
|
||||
|
||||
[[social_icons]]
|
||||
id = "snapchat"
|
||||
url = "https://www.snapchat.com/add/%s"
|
||||
title = "Snapchat"
|
||||
icon = "fab fa-snapchat-ghost"
|
||||
|
||||
[[social_icons]]
|
||||
id = "instagram"
|
||||
url = "https://www.instagram.com/%s"
|
||||
title = "Instagram"
|
||||
icon = "fab fa-instagram"
|
||||
|
||||
[[social_icons]]
|
||||
id = "youtube"
|
||||
url = "https://www.youtube.com/%s"
|
||||
title = "Youtube"
|
||||
icon = "fab fa-youtube"
|
||||
|
||||
[[social_icons]]
|
||||
id = "soundcloud"
|
||||
url = "https://soundcloud.com/%s"
|
||||
title = "SoundCloud"
|
||||
icon = "fab fa-soundcloud"
|
||||
|
||||
[[social_icons]]
|
||||
id = "spotify"
|
||||
url = "https://open.spotify.com/user/%s"
|
||||
title = "Spotify"
|
||||
icon = "fab fa-spotify"
|
||||
|
||||
[[social_icons]]
|
||||
id = "bandcamp"
|
||||
url = "https://%s.bandcamp.com/"
|
||||
title = "Bandcamp"
|
||||
icon = "fab fa-bandcamp"
|
||||
|
||||
[[social_icons]]
|
||||
id = "itchio"
|
||||
url = "https://itch.io/profile/%s"
|
||||
title = "Itch.io"
|
||||
icon = "fas fa-gamepad"
|
||||
|
||||
[[social_icons]]
|
||||
id = "keybase"
|
||||
url = "https://keybase.io/%s"
|
||||
title = "Keybase"
|
||||
icon = "fab fa-keybase"
|
||||
|
||||
[[social_icons]]
|
||||
id = "vk"
|
||||
url = "https://vk.com/%s"
|
||||
title = "VK"
|
||||
icon = "fab fa-vk"
|
||||
|
||||
[[social_icons]]
|
||||
id = "paypal"
|
||||
url = "https://paypal.me/%s"
|
||||
title = "PayPal"
|
||||
icon = "fab fa-paypal"
|
||||
|
||||
[[social_icons]]
|
||||
id = "telegram"
|
||||
url = "https://telegram.me/%s"
|
||||
title = "Telegram"
|
||||
icon = "fab fa-telegram"
|
||||
|
||||
[[social_icons]]
|
||||
id = "500px"
|
||||
url = "https://500px.com/%s"
|
||||
title = "500px"
|
||||
icon = "fab fa-500px"
|
||||
|
||||
[[social_icons]]
|
||||
id = "codepen"
|
||||
url = "https://codepen.io/%s"
|
||||
title = "CodePen"
|
||||
icon = "fab fa-codepen"
|
||||
|
||||
[[social_icons]]
|
||||
id = "kaggle"
|
||||
url = "https://www.kaggle.com/%s"
|
||||
title = "kaggle"
|
||||
icon = "fab fa-kaggle"
|
||||
|
||||
[[social_icons]]
|
||||
id = "mastodon"
|
||||
url = "https://%s"
|
||||
title = "Mastodon"
|
||||
icon = "fab fa-mastodon"
|
||||
rel = "me"
|
||||
|
||||
[[social_icons]]
|
||||
id = "weibo"
|
||||
url = "https://weibo.com/%s"
|
||||
title = "Weibo"
|
||||
icon = "fab fa-weibo"
|
||||
|
||||
[[social_icons]]
|
||||
id = "discord"
|
||||
url = "https://discord.gg/%s"
|
||||
title = "Discord"
|
||||
icon = "fab fa-discord"
|
||||
|
||||
[[social_icons]]
|
||||
id = "strava"
|
||||
url = "https://www.strava.com/athletes/%s"
|
||||
title = "Strava"
|
||||
icon = "fab fa-strava"
|
114
themes/beautifulhugo/exampleSite/config.toml
Normal file
@ -0,0 +1,114 @@
|
||||
baseurl = "https://username.github.io"
|
||||
DefaultContentLanguage = "en"
|
||||
title = "Beautiful Hugo"
|
||||
theme = "beautifulhugo"
|
||||
pygmentsStyle = "trac"
|
||||
pygmentsUseClasses = true
|
||||
pygmentsCodeFences = true
|
||||
pygmentsCodefencesGuessSyntax = true
|
||||
#pygmentsUseClassic = true
|
||||
#pygmentOptions = "linenos=inline"
|
||||
#disqusShortname = "XXX"
|
||||
#googleAnalytics = "XXX"
|
||||
|
||||
[Params]
|
||||
# homeTitle = "Beautiful Hugo Theme" # Set a different text for the header on the home page
|
||||
subtitle = "Build a beautiful and simple website in minutes"
|
||||
mainSections = ["post","posts"]
|
||||
logo = "img/avatar-icon.png" # Expecting square dimensions
|
||||
favicon = "img/favicon.ico"
|
||||
dateFormat = "January 2, 2006"
|
||||
commit = false
|
||||
rss = true
|
||||
comments = true
|
||||
readingTime = true
|
||||
wordCount = true
|
||||
useHLJS = true
|
||||
socialShare = true
|
||||
delayDisqus = true
|
||||
showRelatedPosts = true
|
||||
# hideAuthor = true
|
||||
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
|
||||
|
||||
#[[Params.bigimg]]
|
||||
# src = "img/triangle.jpg"
|
||||
# desc = "Triangle"
|
||||
#[[Params.bigimg]]
|
||||
# src = "img/sphere.jpg"
|
||||
# desc = "Sphere"
|
||||
# # position: see values of CSS background-position.
|
||||
# position = "center top"
|
||||
#[[Params.bigimg]]
|
||||
# src = "img/hexagon.jpg"
|
||||
# desc = "Hexagon"
|
||||
|
||||
[Author]
|
||||
# Set only your "username" for default hosts and full URLs otherwise (e.g., "https://MyGitLab.org/username")
|
||||
name = "Some Person"
|
||||
website = "yourwebsite.com"
|
||||
email = "youremail@domain.com"
|
||||
facebook = "username"
|
||||
github = "username"
|
||||
gitlab = "username"
|
||||
bitbucket = "username"
|
||||
twitter = "username"
|
||||
reddit = "username"
|
||||
linkedin = "username"
|
||||
xing = "username"
|
||||
stackoverflow = "users/XXXXXXX/username"
|
||||
snapchat = "username"
|
||||
instagram = "username"
|
||||
youtube = "user/username" # or channel/channelname
|
||||
soundcloud = "username"
|
||||
spotify = "username"
|
||||
bandcamp = "username"
|
||||
itchio = "username"
|
||||
vk = "username"
|
||||
paypal = "username"
|
||||
telegram = "username"
|
||||
500px = "username"
|
||||
codepen = "username"
|
||||
mastodon = "url"
|
||||
kaggle = "username"
|
||||
weibo = "username"
|
||||
slack = "username"
|
||||
discord = "invite code (https://discord.gg/XXXXXXX)"
|
||||
strava = "userid"
|
||||
|
||||
[[menu.main]]
|
||||
name = "Blog"
|
||||
url = ""
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
url = "page/about/"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "samples"
|
||||
name = "Samples"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
parent = "samples"
|
||||
name = "Big Image Sample"
|
||||
url = "post/2017-03-07-bigimg-sample"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
parent = "samples"
|
||||
name = "Math Sample"
|
||||
url = "post/2017-03-05-math-sample"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
parent = "samples"
|
||||
name = "Code Sample"
|
||||
url = "post/2016-03-08-code-sample"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
name = "Tags"
|
||||
url = "tags"
|
||||
weight = 3
|
2
themes/beautifulhugo/exampleSite/content/_index.md
Normal file
@ -0,0 +1,2 @@
|
||||
## Front Page Content
|
||||
`beautifulhugo` supports content on your front page. Edit `/content/_index.md` to change what appears here. Delete `/content/_index.md` if you don't want any content here.
|
16
themes/beautifulhugo/exampleSite/content/page/about.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: About me
|
||||
subtitle: Why you'd want to go on a date with me
|
||||
comments: false
|
||||
---
|
||||
|
||||
My name is Inigo Montoya. I have the following qualities:
|
||||
|
||||
- I rock a great mustache
|
||||
- I'm extremely loyal to my family
|
||||
|
||||
What else do you need?
|
||||
|
||||
### my history
|
||||
|
||||
To be honest, I'm having some trouble remembering right now, so why don't you just watch [my movie](http://en.wikipedia.org/wiki/The_Princess_Bride_%28film%29) and it will answer **all** your questions.
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: First post!
|
||||
date: 2015-01-05
|
||||
---
|
||||
|
||||
This is my first post, how exciting!
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Pirates arrrr
|
||||
date: 2015-01-15
|
||||
---
|
||||
|
||||
Piracy is typically an act of robbery or criminal violence at sea. The term can include acts committed on land, in the air, or in other major bodies of water or on a shore. It does not normally include crimes committed against persons traveling on the same vessel as the perpetrator (e.g. one passenger stealing from others on the same vessel). The term has been used throughout history to refer to raids across land borders by non-state agents.
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Soccer
|
||||
subtitle: Best sport ever!
|
||||
date: 2015-01-19
|
||||
---
|
||||
|
||||
From Wikipedia:
|
||||
|
||||
Association football, more commonly known as football or soccer,[2] is a sport played between two teams of eleven players with a spherical ball. It is played by 250 million players in over 200 countries, making it the world's most popular sport.[3][4][5][6] The game is played on a rectangular field with a goal at each end. The object of the game is to score by getting the ball into the opposing goal.
|
||||
|
||||
The goalkeepers are the only players allowed to touch the ball with their hands or arms while it is in play and then only in their penalty area. Outfield players mostly use their feet to strike or pass the ball, but may use their head or torso to strike the ball instead. The team that scores the most goals by the end of the match wins. If the score is level at the end of the game, either a draw is declared or the game goes into extra time and/or a penalty shootout depending on the format of the competition. The Laws of the Game were originally codified in England by The Football Association in 1863. Association football is governed internationally by the International Federation of Association Football (FIFA; French: Fédération Internationale de Football Association) which organises a World Cup every four years.[7]
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Dear diary
|
||||
date: 2015-01-27
|
||||
---
|
||||
|
||||
What is it with that Mary girl? Dragging me to school every day. As if I had a choice. What you don't hear in those nursery rhymes is that she starves me if I don't go to school with her; it's the only way I can stay alive! I'm thinking about being adopted by Little Bo Peep, sure I may get lost, but anything is better than being with Mary and those little brats at school (shudder, shudder).
|
@ -0,0 +1,41 @@
|
||||
---
|
||||
title: To be
|
||||
subtitle: ... or not to be?
|
||||
date: 2015-02-13
|
||||
---
|
||||
|
||||
To be, or not to be--that is the question:
|
||||
Whether 'tis nobler in the mind to suffer
|
||||
The slings and arrows of outrageous fortune
|
||||
Or to take arms against a sea of troubles
|
||||
And by opposing end them. To die, to sleep--
|
||||
No more--and by a sleep to say we end
|
||||
The heartache, and the thousand natural shocks
|
||||
That flesh is heir to. 'Tis a consummation
|
||||
Devoutly to be wished. To die, to sleep--
|
||||
To sleep--perchance to dream: ay, there's the rub,
|
||||
For in that sleep of death what dreams may come
|
||||
When we have shuffled off this mortal coil,
|
||||
Must give us pause. There's the respect
|
||||
That makes calamity of so long life.
|
||||
For who would bear the whips and scorns of time,
|
||||
Th' oppressor's wrong, the proud man's contumely
|
||||
The pangs of despised love, the law's delay,
|
||||
The insolence of office, and the spurns
|
||||
That patient merit of th' unworthy takes,
|
||||
When he himself might his quietus make
|
||||
With a bare bodkin? Who would fardels bear,
|
||||
To grunt and sweat under a weary life,
|
||||
But that the dread of something after death,
|
||||
The undiscovered country, from whose bourn
|
||||
No traveller returns, puzzles the will,
|
||||
And makes us rather bear those ills we have
|
||||
Than fly to others that we know not of?
|
||||
Thus conscience does make cowards of us all,
|
||||
And thus the native hue of resolution
|
||||
Is sicklied o'er with the pale cast of thought,
|
||||
And enterprise of great pitch and moment
|
||||
With this regard their currents turn awry
|
||||
And lose the name of action. -- Soft you now,
|
||||
The fair Ophelia! -- Nymph, in thy orisons
|
||||
Be all my sins remembered.
|
@ -0,0 +1,35 @@
|
||||
---
|
||||
title: Test markdown
|
||||
subtitle: Each post also has a subtitle
|
||||
date: 2015-02-20
|
||||
tags: ["example", "markdown"]
|
||||
---
|
||||
|
||||
You can write regular [markdown](http://markdowntutorial.com/) here and [Hugo](https://gohugo.io) will automatically convert it to a nice webpage. I strongly encourage you to [take 5 minutes to learn how to write in markdown](http://markdowntutorial.com/) - it'll teach you how to transform regular text into bold/italics/headings/tables/etc.
|
||||
|
||||
**Here is some bold text**
|
||||
|
||||
## Here is a secondary heading
|
||||
|
||||
Here's a useless table:
|
||||
|
||||
| Number | Next number | Previous number |
|
||||
| :------ |:--- | :--- |
|
||||
| Five | Six | Four |
|
||||
| Ten | Eleven | Nine |
|
||||
| Seven | Eight | Six |
|
||||
| Two | Three | One |
|
||||
|
||||
|
||||
How about a yummy crepe?
|
||||
|
||||

|
||||
|
||||
Here's a code chunk with syntax highlighting:
|
||||
|
||||
```javascript
|
||||
var foo = function(x) {
|
||||
return(x + 5);
|
||||
}
|
||||
foo(3)
|
||||
```
|
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Flake it till you make it
|
||||
subtitle: Excerpt from Soulshaping by Jeff Brown
|
||||
date: 2015-02-26
|
||||
bigimg: [{src: "/img/path.jpg", desc: "Path"}]
|
||||
---
|
||||
|
||||
Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake?
|
||||
|
||||
The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure.
|
||||
|
||||
At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors.
|
||||
|
||||
A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it.
|
@ -0,0 +1,42 @@
|
||||
---
|
||||
title: Code Sample
|
||||
subtitle: Using Hugo or Pygments
|
||||
date: 2016-03-08
|
||||
tags: ["example", "code"]
|
||||
---
|
||||
|
||||
The following are two code samples using syntax highlighting.
|
||||
|
||||
<!--more-->
|
||||
|
||||
The following is a code sample using triple backticks ( ``` ) code fencing provided in Hugo. This is client side highlighting and does not require any special installation.
|
||||
|
||||
```javascript
|
||||
var num1, num2, sum
|
||||
num1 = prompt("Enter first number")
|
||||
num2 = prompt("Enter second number")
|
||||
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
|
||||
alert("Sum = " + sum) // "+" means combine into a string
|
||||
```
|
||||
|
||||
|
||||
The following is a code sample using the "highlight" shortcode provided in Hugo. This is server side highlighting and requires Python and Pygments to be installed.
|
||||
|
||||
{{< highlight javascript >}}
|
||||
var num1, num2, sum
|
||||
num1 = prompt("Enter first number")
|
||||
num2 = prompt("Enter second number")
|
||||
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
|
||||
alert("Sum = " + sum) // "+" means combine into a string
|
||||
{{</ highlight >}}
|
||||
|
||||
|
||||
And here is the same code with line numbers:
|
||||
|
||||
{{< highlight javascript "linenos=inline">}}
|
||||
var num1, num2, sum
|
||||
num1 = prompt("Enter first number")
|
||||
num2 = prompt("Enter second number")
|
||||
sum = parseInt(num1) + parseInt(num2) // "+" means "add"
|
||||
alert("Sum = " + sum) // "+" means combine into a string
|
||||
{{</ highlight >}}
|
@ -0,0 +1,49 @@
|
||||
---
|
||||
title: Math Sample
|
||||
subtitle: Using KaTeX
|
||||
date: 2017-03-05
|
||||
tags: ["example", "math"]
|
||||
---
|
||||
|
||||
KaTeX can be used to generate complex math formulas server-side.
|
||||
|
||||
$$
|
||||
\phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots
|
||||
$$
|
||||
|
||||
Additional details can be found on [GitHub](https://github.com/Khan/KaTeX) or on the [Wiki](http://tiddlywiki.com/plugins/tiddlywiki/katex/).
|
||||
<!--more-->
|
||||
|
||||
### Example 1
|
||||
|
||||
If the text between $$ contains newlines it will rendered in display mode:
|
||||
```
|
||||
$$
|
||||
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
||||
$$
|
||||
```
|
||||
$$
|
||||
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
|
||||
$$
|
||||
|
||||
|
||||
### Example 2
|
||||
```
|
||||
$$
|
||||
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
|
||||
$$
|
||||
```
|
||||
$$
|
||||
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
|
||||
$$
|
||||
|
||||
|
||||
### Example 3
|
||||
```
|
||||
$$
|
||||
1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1.
|
||||
$$
|
||||
```
|
||||
$$
|
||||
1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1.
|
||||
$$
|
@ -0,0 +1,40 @@
|
||||
---
|
||||
title: Big Image Sample
|
||||
subtitle: Using Multiple Images
|
||||
date: 2017-03-07
|
||||
tags: ["example", "bigimg"]
|
||||
bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"}, {src: "/img/sphere.jpg", desc: "Sphere"}, {src: "/img/hexagon.jpg", desc: "Hexagon"}]
|
||||
---
|
||||
|
||||
The image banners at the top of the page are refered to as "bigimg" in this theme. They are optional, and one more more can be specified. If more than one is specified, the images rotate every 10 seconds. In the front matter, bigimgs are specified using an array of hashes.
|
||||
|
||||
<!--more-->
|
||||
|
||||
A single bigimg can be specified in the front matter by the following YAML:
|
||||
```
|
||||
bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"}]
|
||||
```
|
||||
|
||||
Multiple bigimgs can be specified in the front matter by the following YAML:
|
||||
```
|
||||
bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"},
|
||||
{src: "/img/sphere.jpg", desc: "Sphere"},
|
||||
{src: "/img/hexagon.jpg", desc: "Hexagon"}]
|
||||
```
|
||||
|
||||
Also note that the description field is optional, and images could instead be specified by:
|
||||
```
|
||||
bigimg: [{src: "/img/triangle.jpg"},
|
||||
{src: "/img/sphere.jpg"},
|
||||
{src: "/img/hexagon.jpg"}]
|
||||
```
|
||||
|
||||
The above YAML array of hashes were written in "flow" style. However when generating a new page or post with `hugo new post/mypost.md`, hugo may interpret the archetype for bigimg in the default YAML style. Defining multiple bigimg's complete with descriptions in this style would be specified by:
|
||||
```
|
||||
bigimg:
|
||||
- {src: "/img/triangle.jpg", desc: "Triangle"}
|
||||
- {src: "/img/sphere.jpg", desc: "Sphere"}
|
||||
- {src: "/img/hexagon.jpg", desc: "Hexagon"}
|
||||
```
|
||||
|
||||
Additional information can be found [in this YAML tutorial](https://rhnh.net/2011/01/31/yaml-tutorial/).
|
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: Photoswipe Gallery Sample
|
||||
subtitle: Making a Gallery
|
||||
date: 2017-03-20
|
||||
tags: ["example", "photoswipe"]
|
||||
---
|
||||
|
||||
Beautiful Hugo adds a few custom shortcodes created by [Li-Wen Yip](https://www.liwen.id.au/heg/) and [Gert-Jan van den Berg](https://github.com/GjjvdBurg/HugoPhotoSwipe) for making galleries with [PhotoSwipe](http://photoswipe.com) .
|
||||
|
||||
{{< gallery caption-effect="fade" >}}
|
||||
{{< figure thumb="-thumb" link="/img/hexagon.jpg" >}}
|
||||
{{< figure thumb="-thumb" link="/img/sphere.jpg" caption="Sphere" >}}
|
||||
{{< figure thumb="-thumb" link="/img/triangle.jpg" caption="Triangle" alt="This is a long comment about a triangle" >}}
|
||||
{{< /gallery >}}
|
||||
|
||||
<!--more-->
|
||||
## Example
|
||||
The above gallery was created using the following shortcodes:
|
||||
```
|
||||
{{</* gallery caption-effect="fade" */>}}
|
||||
{{</* figure thumb="-thumb" link="/img/hexagon.jpg" */>}}
|
||||
{{</* figure thumb="-thumb" link="/img/sphere.jpg" caption="Sphere" */>}}
|
||||
{{</* figure thumb="-thumb" link="/img/triangle.jpg" caption="Triangle" alt="This is a long comment about a triangle" */>}}
|
||||
{{</* /gallery */>}}
|
||||
```
|
||||
|
||||
## Usage
|
||||
For full details please see the [hugo-easy-gallery GitHub](https://github.com/liwenyip/hugo-easy-gallery/) page. Basic usages from above are:
|
||||
|
||||
- Create a gallery with open and close tags `{{</* gallery */>}}` and `{{</* /gallery */>}}`
|
||||
- `{{</* figure src="image.jpg" */>}}` will use `image.jpg` for thumbnail and lightbox
|
||||
- `{{</* figure src="thumb.jpg" link="image.jpg" */>}}` will use `thumb.jpg` for thumbnail and `image.jpg` for lightbox
|
||||
- `{{</* figure thumb="-small" link="image.jpg" */>}}` will use `image-small.jpg` for thumbnail and `image.jpg` for lightbox
|
||||
- All the [features/parameters](https://gohugo.io/extras/shortcodes) of Hugo's built-in `figure` shortcode work as normal, i.e. src, link, title, caption, class, attr (attribution), attrlink, alt
|
||||
- `{{</* gallery caption-effect="fade" */>}}` will fade in captions for all figures in this gallery instead of the default slide-up behavior
|
||||
- Many gallery styles for captions and hover effects exist; view the [hugo-easy-gallery GitHub](https://github.com/liwenyip/hugo-easy-gallery/) for all options
|
||||
- Note that this theme will load the photoswipe gallery theme and scripts by default, no need to load photoswipe on your individual pages
|
@ -0,0 +1,7 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </body>, put it in this file.
|
||||
Or you can delete these file if you don't need it.
|
||||
-->
|
||||
<!-- for example, you could include some js libraries:
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.19.1/vis.js" integrity="sha256-HdIuWBZj4eftihsoDCJoMYjZi6aNVaw7YlUpzKT3ZxI=" crossorigin="anonymous"></script>
|
||||
-->
|
@ -0,0 +1,18 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </head>, put it in this file.
|
||||
Or you can delete these file if you don't need it.
|
||||
-->
|
||||
<!-- for example, you could insert this custom css, which makes the bigimg not stretch:
|
||||
<style>
|
||||
.intro-header.big-img, .intro-header.big-img .big-img-transition {
|
||||
-webkit-background-size: contain !important;
|
||||
-moz-background-size: contain !important;
|
||||
background-size: contain !important;
|
||||
-o-background-size: contain !important;
|
||||
background-color: lightgrey;
|
||||
}
|
||||
</style>
|
||||
-->
|
||||
<!-- or you could include some additional css libraries:
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.19.1/vis.css" integrity="sha256-I1UoFd33KHIydu88R9owFaQWzwkiZV4hXXug5aYaM28=" crossorigin="anonymous" />
|
||||
-->
|
74
themes/beautifulhugo/i18n/br.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2 de Janeiro de 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "02/Jan/2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Postado em {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Ultima modificação em {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Outras linguagens: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Saiba mais"
|
||||
- id: olderPosts
|
||||
translation: "Posts antigos"
|
||||
- id: newerPosts
|
||||
translation: "Posts novos"
|
||||
- id: previousPost
|
||||
translation: "Post anterior"
|
||||
- id: nextPost
|
||||
translation: "Próximo Post"
|
||||
- id: readTime
|
||||
translation: "minutos"
|
||||
- id: words
|
||||
translation: "palavras"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Opa, a página não existe"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> alimentada • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adaptado de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Ver navegação"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Idioma"
|
||||
- id: gcseLabelShort
|
||||
translation: "Buscar"
|
||||
- id: gcseLabelLong
|
||||
translation: "Buscar {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Fechar"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Sem comentários"
|
||||
- id: oneComment
|
||||
translation: "comentário"
|
||||
- id: moreComment
|
||||
translation: "comentários"
|
||||
- id: useMarkdown
|
||||
translation: "Você pode usar sintaxe MarkDown"
|
||||
- id: yourName
|
||||
translation: "Seu nome"
|
||||
- id: yourEmail
|
||||
translation: "Seu email"
|
||||
- id: yourWebsite
|
||||
translation: "Seu website"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Mostrar"
|
||||
- id: comments
|
||||
translation: "comentários"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Veja também"
|
74
themes/beautifulhugo/i18n/de.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "02.01.2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Gepostet am {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Zuletzt geändert am {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Andere Sprachen: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Mehr"
|
||||
- id: olderPosts
|
||||
translation: "Ältere Posts"
|
||||
- id: newerPosts
|
||||
translation: "Neuere Posts"
|
||||
- id: previousPost
|
||||
translation: "Letzter Post"
|
||||
- id: nextPost
|
||||
translation: "Nächster Post"
|
||||
- id: readTime
|
||||
translation: "Minuten"
|
||||
- id: words
|
||||
translation: "Wörter"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Ups, diese Seite existiert nicht. (404 Error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> angetrieben • Theme <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> angepasst von <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Navigation"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Sprache"
|
||||
- id: gcseLabelShort
|
||||
translation: "Suche"
|
||||
- id: gcseLabelLong
|
||||
translation: "Suche {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Schließen"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Kein Kommentar"
|
||||
- id: oneComment
|
||||
translation: "Kommentar"
|
||||
- id: moreComment
|
||||
translation: "Kommentare"
|
||||
- id: useMarkdown
|
||||
translation: "Sie können Markdown-Syntax verwenden"
|
||||
- id: yourName
|
||||
translation: "Ihr Name"
|
||||
- id: yourEmail
|
||||
translation: "Ihre Emailadresse"
|
||||
- id: yourWebsite
|
||||
translation: "Ihre Website"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Zeige"
|
||||
- id: comments
|
||||
translation: "Kommentare"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Siehe auch"
|
74
themes/beautifulhugo/i18n/dk.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "January 2, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "Jan 2, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Slået op den {{ .Count }}"
|
||||
- id: lastModified
|
||||
translation: "(Senest redigeret den {{ .Count }})"
|
||||
- id: translationsLabel
|
||||
translation: "Andre sprog: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Læs mere"
|
||||
- id: olderPosts
|
||||
translation: "Ældre opslag"
|
||||
- id: newerPosts
|
||||
translation: "Nyere opslag"
|
||||
- id: previousPost
|
||||
translation: "Forrige opslag"
|
||||
- id: nextPost
|
||||
translation: "Næste opslag"
|
||||
- id: readTime
|
||||
translation: "Minutter"
|
||||
- id: words
|
||||
translation: "Ord"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Ups, denne side eksisterer ikke. (404 error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> drevet • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> tilpasset fra <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Navigation"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Sprog"
|
||||
- id: gcseLabelShort
|
||||
translation: "Søg"
|
||||
- id: gcseLabelLong
|
||||
translation: "Søg {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Luk"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Ingen kommentar"
|
||||
- id: oneComment
|
||||
translation: "Kommentar"
|
||||
- id: moreComment
|
||||
translation: "Kommentarer"
|
||||
- id: useMarkdown
|
||||
translation: "Du kan anvende Markdown syntax"
|
||||
- id: yourName
|
||||
translation: "Dit navn"
|
||||
- id: yourEmail
|
||||
translation: "Din emailadresse"
|
||||
- id: yourWebsite
|
||||
translation: "Din hjemmeside"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Vis"
|
||||
- id: comments
|
||||
translation: "Kommentarer"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Se også"
|
74
themes/beautifulhugo/i18n/en.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "January 2, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "Jan 2, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Posted on {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Last modified on {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Other languages: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Read More"
|
||||
- id: olderPosts
|
||||
translation: "Older Posts"
|
||||
- id: newerPosts
|
||||
translation: "Newer Posts"
|
||||
- id: previousPost
|
||||
translation: "Previous Post"
|
||||
- id: nextPost
|
||||
translation: "Next Post"
|
||||
- id: readTime
|
||||
translation: "minutes"
|
||||
- id: words
|
||||
translation: "words"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Whoops, this page doesn't exist. Move along. (404 error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> powered • Theme <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adapted from <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Toggle navigation"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Language"
|
||||
- id: gcseLabelShort
|
||||
translation: "Search"
|
||||
- id: gcseLabelLong
|
||||
translation: "Search {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Close"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "No comment"
|
||||
- id: oneComment
|
||||
translation: "comment"
|
||||
- id: moreComment
|
||||
translation: "comments"
|
||||
- id: useMarkdown
|
||||
translation: "You can use Markdown syntax"
|
||||
- id: yourName
|
||||
translation: "Your name"
|
||||
- id: yourEmail
|
||||
translation: "Your email address"
|
||||
- id: yourWebsite
|
||||
translation: "Your website"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Show"
|
||||
- id: comments
|
||||
translation: "comments"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "See also"
|
74
themes/beautifulhugo/i18n/eo.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2006-01-02"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Afiŝiĝis je {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Laste aliiĝis je {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Aliaj lingvoj: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Legi pli"
|
||||
- id: olderPosts
|
||||
translation: "Plimalnovaj afiŝoj"
|
||||
- id: newerPosts
|
||||
translation: "Plinovaj afiŝoj"
|
||||
- id: previousPost
|
||||
translation: "Antaŭa afiŝo"
|
||||
- id: nextPost
|
||||
translation: "Sekva afiŝo"
|
||||
- id: readTime
|
||||
translation: "minutoj"
|
||||
- id: words
|
||||
translation: "vortoj"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Ups, ĉi tiu paĝo ne ekzistas. (404 Error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a>-povigita • Haŭto de <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adaptiĝis de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Navigacio"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Lingvo"
|
||||
- id: gcseLabelShort
|
||||
translation: "Serĉi"
|
||||
- id: gcseLabelLong
|
||||
translation: "Serĉi {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Fermi"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Sen komentoj"
|
||||
- id: oneComment
|
||||
translation: "komento"
|
||||
- id: moreComment
|
||||
translation: "komentoj"
|
||||
- id: useMarkdown
|
||||
translation: "Vi povus uzi Markdown-sintakson"
|
||||
- id: yourName
|
||||
translation: "Via nomo"
|
||||
- id: yourEmail
|
||||
translation: "Via retpoŝtadreso"
|
||||
- id: yourWebsite
|
||||
translation: "Via retpaĝaro"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Montru"
|
||||
- id: comments
|
||||
translation: "komentoj"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Vidu ankaŭ"
|
74
themes/beautifulhugo/i18n/es.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2 de enero, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Publicado el {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Última modificación en {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Otros idiomas: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Leer más"
|
||||
- id: olderPosts
|
||||
translation: "Artículos anteriores"
|
||||
- id: newerPosts
|
||||
translation: "Artículos siguientes"
|
||||
- id: previousPost
|
||||
translation: "Artículo anterior"
|
||||
- id: nextPost
|
||||
translation: "Artículo siguiente"
|
||||
- id: readTime
|
||||
translation: "minutos"
|
||||
- id: words
|
||||
translation: "palabras"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "¡Vaya! Esta página no existe (error 404)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> alimentada • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adaptado de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Conmuta navegación"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Idioma"
|
||||
- id: gcseLabelShort
|
||||
translation: "Buscar"
|
||||
- id: gcseLabelLong
|
||||
translation: "Buscar en {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Cerrar"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Sin comentarios"
|
||||
- id: oneComment
|
||||
translation: "comentario"
|
||||
- id: moreComment
|
||||
translation: "comentarios"
|
||||
- id: useMarkdown
|
||||
translation: "Puedes usar la sintaxis de Markdown"
|
||||
- id: yourName
|
||||
translation: "Tu nombre"
|
||||
- id: yourEmail
|
||||
translation: "Tu correo electrónico"
|
||||
- id: yourWebsite
|
||||
translation: "Tu sitio web"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Mostrar"
|
||||
- id: comments
|
||||
translation: "comentarios"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Ver también"
|
76
themes/beautifulhugo/i18n/fr.yaml
Normal file
@ -0,0 +1,76 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2·01·2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2·01·2006 - 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Publié le {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Mise à jour le {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Traductions : "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Lire"
|
||||
- id: olderPosts
|
||||
translation: "Anciens posts"
|
||||
- id: newerPosts
|
||||
translation: "Nouveaux posts"
|
||||
- id: previousPost
|
||||
translation: "Post précédent"
|
||||
- id: nextPost
|
||||
translation: "Post suivant"
|
||||
- id: readTime
|
||||
translation: "minutes"
|
||||
- id: words
|
||||
translation: "mots"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Oups, cette page n'existe pas. (erreur 404)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: 'Carbure avec <a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> • Avec le Theme <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adapté de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Activer la navigation"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Langue"
|
||||
- id: gcseLabelShort
|
||||
translation: "Rechercher"
|
||||
- id: gcseLabelLong
|
||||
translation: "Rechercher {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Fermer"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Pas de commentaire"
|
||||
- id: oneComment
|
||||
translation: "commentaire"
|
||||
- id: moreComment
|
||||
translation: "commentaires"
|
||||
- id: useMarkdown
|
||||
translation: "Rédigez votre commentaire ici. (Vous pouvez utiliser la syntaxe Markdown)"
|
||||
- id: yourName
|
||||
translation: "Votre nom"
|
||||
- id: yourEmail
|
||||
translation: "Votre adresse mail"
|
||||
- id: yourWebsite
|
||||
translation: "Votre site web"
|
||||
- id: sendComment
|
||||
translation: "Envoyer"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Afficher"
|
||||
- id: comments
|
||||
translation: "commentaires"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Suggestions de lecture :"
|
74
themes/beautifulhugo/i18n/hr.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "Siječanj 2, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "Sij 2, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Obajvljeno na {{ .Count }}"
|
||||
- id: lastModified
|
||||
translation: "(Zadnja promjena na {{ .Count }})"
|
||||
- id: translationsLabel
|
||||
translation: "Ostali jezici: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Pročitaj više"
|
||||
- id: olderPosts
|
||||
translation: "Starije objave"
|
||||
- id: newerPosts
|
||||
translation: "Novije objave"
|
||||
- id: previousPost
|
||||
translation: "Prethodna objava"
|
||||
- id: nextPost
|
||||
translation: "Slijedeća objava"
|
||||
- id: readTime
|
||||
translation: "minuta"
|
||||
- id: words
|
||||
translation: "riječi"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Whoops, ova stranica ne postoji. Idemo dalje. (404 error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Pokreće Hugo v{{ .Site.Hugo.Version }}</a> • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> prilagođena od <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Uključi/isključi navigaciju"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Jezik"
|
||||
- id: gcseLabelShort
|
||||
translation: "Traži"
|
||||
- id: gcseLabelLong
|
||||
translation: "Traži {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Zatvori"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Nema komenatara"
|
||||
- id: oneComment
|
||||
translation: "komentar"
|
||||
- id: moreComment
|
||||
translation: "komenatari"
|
||||
- id: useMarkdown
|
||||
translation: "Možete koristiti Markdown sintaksu"
|
||||
- id: yourName
|
||||
translation: "Vaše ime"
|
||||
- id: yourEmail
|
||||
translation: "Vaša email adresa"
|
||||
- id: yourWebsite
|
||||
translation: "You web stranica"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Pokaži"
|
||||
- id: comments
|
||||
translation: "komentari"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Također vidi"
|
74
themes/beautifulhugo/i18n/it.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2 January 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Pubblicato il {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Ultima modifica il {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Altre lingue: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Leggi"
|
||||
- id: olderPosts
|
||||
translation: "Articoli più vecchi"
|
||||
- id: newerPosts
|
||||
translation: "Articoli più recenti"
|
||||
- id: previousPost
|
||||
translation: "Articolo precedente"
|
||||
- id: nextPost
|
||||
translation: "Articolo successivo"
|
||||
- id: readTime
|
||||
translation: "minuti"
|
||||
- id: words
|
||||
translation: "parole"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Ops, questa pagina non esiste. (errore 404)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Sviluppato con Hugo v{{ .Site.Hugo.Version }}</a> • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adattato da <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Menu"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Lingua"
|
||||
- id: gcseLabelShort
|
||||
translation: "Cerca"
|
||||
- id: gcseLabelLong
|
||||
translation: "Cerca {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Chiudi"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Nessun commento"
|
||||
- id: oneComment
|
||||
translation: "commento"
|
||||
- id: moreComment
|
||||
translation: "commenti"
|
||||
- id: useMarkdown
|
||||
translation: "Puoi usare la sintassi Markdown"
|
||||
- id: yourName
|
||||
translation: "Il tuo nome"
|
||||
- id: yourEmail
|
||||
translation: "Il tuo indirizzo mail"
|
||||
- id: yourWebsite
|
||||
translation: "Il tuo website"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Mostra"
|
||||
- id: comments
|
||||
translation: "commenti"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Vedi anche"
|
74
themes/beautifulhugo/i18n/ja.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2006年1月2日"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "{{ . }}に投稿"
|
||||
- id: lastModified
|
||||
translation: "(最終更新日時{{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "翻訳:"
|
||||
- id: translationsSeparator
|
||||
translation: "・"
|
||||
- id: readMore
|
||||
translation: "続きを読む"
|
||||
- id: olderPosts
|
||||
translation: "古いページ"
|
||||
- id: newerPosts
|
||||
translation: "新しいページ"
|
||||
- id: previousPost
|
||||
translation: "前ページ"
|
||||
- id: nextPost
|
||||
translation: "次ページ"
|
||||
- id: readTime
|
||||
translation: "分間"
|
||||
- id: words
|
||||
translation: "言葉"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "おっと、このページが存在しない。他にあたってください。(404エラー)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '起動力に<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> • テーマに<a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>に基づいている<a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "メニューを切り替え"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "言語"
|
||||
- id: gcseLabelShort
|
||||
translation: "検索"
|
||||
- id: gcseLabelLong
|
||||
translation: "{{ .Site.Title }}を検索"
|
||||
- id: gcseClose
|
||||
translation: "閉じる"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "0 件のコメント"
|
||||
- id: oneComment
|
||||
translation: "件のコメント"
|
||||
- id: moreComment
|
||||
translation: "件のコメント"
|
||||
- id: useMarkdown
|
||||
translation: "Markdown を使用できます"
|
||||
- id: yourName
|
||||
translation: "名前"
|
||||
- id: yourEmail
|
||||
translation: "メールアドレス"
|
||||
- id: yourWebsite
|
||||
translation: "ウェブサイト"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "ショー"
|
||||
- id: comments
|
||||
translation: "コメント"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "も参照してください"
|
74
themes/beautifulhugo/i18n/ko.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2006년 1월 2일"
|
||||
- id: shortdateFormat
|
||||
translation: "2006. 1. 2. 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "{{ .Count }}에 게시됨"
|
||||
- id: lastModified
|
||||
translation: "({{ .Count }}에 마지막으로 수정됨)"
|
||||
- id: translationsLabel
|
||||
translation: "다른 언어: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "더 읽기"
|
||||
- id: olderPosts
|
||||
translation: "이전 페이지"
|
||||
- id: newerPosts
|
||||
translation: "다음 페이지"
|
||||
- id: previousPost
|
||||
translation: "이전 글"
|
||||
- id: nextPost
|
||||
translation: "다음 글"
|
||||
- id: readTime
|
||||
translation: "분"
|
||||
- id: words
|
||||
translation: "단어"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "이런, 이 페이지를 찾을 수 없어요. (404 오류)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> 을 사용함 • <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> 를 개조한 <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> 테마'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "네비게이션 토글"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "언어"
|
||||
- id: gcseLabelShort
|
||||
translation: "검색"
|
||||
- id: gcseLabelLong
|
||||
translation: "{{ .Site.Title }}에서 검색"
|
||||
- id: gcseClose
|
||||
translation: "닫기"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "댓글이 없습니다."
|
||||
- id: oneComment
|
||||
translation: "개의 댓글"
|
||||
- id: moreComment
|
||||
translation: "개의 댓글들"
|
||||
- id: useMarkdown
|
||||
translation: "마크다운 문법을 쓸 수 있습니다."
|
||||
- id: yourName
|
||||
translation: "이름"
|
||||
- id: yourEmail
|
||||
translation: "이메일"
|
||||
- id: yourWebsite
|
||||
translation: "웹사이트"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "표시"
|
||||
- id: comments
|
||||
translation: "댓글들"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "더 보면 좋을 글들"
|
297
themes/beautifulhugo/i18n/lmo.yaml
Normal file
@ -0,0 +1,297 @@
|
||||
|
||||
|
||||
# Content
|
||||
|
||||
- id: dateFormat
|
||||
|
||||
translation: "2 January 2006"
|
||||
|
||||
- id: shortdateFormat
|
||||
|
||||
translation: "2 Jan 2006 15:04:05"
|
||||
|
||||
- id: postedOnDate
|
||||
|
||||
translation: "Publegaa il {{ .Count }}"
|
||||
|
||||
- id: lastModified
|
||||
|
||||
translation: "(Darrera modifega ell {{ .Count }})"
|
||||
|
||||
- id: translationsLabel
|
||||
|
||||
translation: "Alter lengov: "
|
||||
|
||||
- id: translationsSeparator
|
||||
|
||||
translation: ", "
|
||||
|
||||
- id: readMore
|
||||
|
||||
translation: "Lensg"
|
||||
|
||||
- id: olderPosts
|
||||
|
||||
translation: "Articol pussee vegg"
|
||||
|
||||
- id: newerPosts
|
||||
|
||||
translation: "Articoli pussee noeuv"
|
||||
|
||||
- id: previousPost
|
||||
|
||||
translation: "Articolo de prima"
|
||||
|
||||
- id: nextPost
|
||||
|
||||
translation: "Articolo dopo"
|
||||
|
||||
- id: readTime
|
||||
|
||||
translation: "megnuu"
|
||||
|
||||
- id: words
|
||||
|
||||
translation: "paroll"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 404 page
|
||||
|
||||
- id: pageNotFound
|
||||
|
||||
translation: "Ocio, quella pagina chi la esist no. (errore 404)"
|
||||
|
||||
|
||||
|
||||
# Footer
|
||||
|
||||
- id: poweredBy # Accepts HTML
|
||||
|
||||
translation: '<a href="https://gohugo.io">Desviluppaa con Hugo v{{ .Site.Hugo.Version }}</a> • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adattaa de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
|
||||
|
||||
# Navigation
|
||||
|
||||
- id: toggleNavigation
|
||||
|
||||
translation: "Attiva/disattiva la navigazion"
|
||||
|
||||
- id: languageSwitcherLabel
|
||||
|
||||
translation: "Lengua"
|
||||
|
||||
- id: gcseLabelShort
|
||||
|
||||
translation: "Cerca"
|
||||
|
||||
- id: gcseLabelLong
|
||||
|
||||
translation: "Cerca {{ .Site.Title }}"
|
||||
|
||||
- id: gcseClose
|
||||
|
||||
translation: "Sara su"
|
||||
|
||||
|
||||
|
||||
# Staticman
|
||||
|
||||
- id: noComment
|
||||
|
||||
translation: "Nissub comment"
|
||||
|
||||
- id: oneComment
|
||||
|
||||
translation: "comment"
|
||||
|
||||
- id: moreComment
|
||||
|
||||
translation: "comment"
|
||||
|
||||
- id: useMarkdown
|
||||
|
||||
translation: "Te pòdet doperà la sintassi Markdown"
|
||||
|
||||
- id: yourName
|
||||
|
||||
translation: "El tò nomm"
|
||||
|
||||
- id: yourEmail
|
||||
|
||||
translation: "La toa adressa e-mail"
|
||||
|
||||
- id: yourWebsite
|
||||
|
||||
translation: "El tò sitt web"
|
||||
|
||||
|
||||
|
||||
# Delayed Disqus
|
||||
|
||||
- id: show
|
||||
|
||||
translation: "Mostra"
|
||||
|
||||
- id: comments
|
||||
|
||||
translation: "comment"
|
||||
|
||||
|
||||
|
||||
# Related posts
|
||||
|
||||
- id: seeAlso
|
||||
|
||||
translation: "Varda anca"
|
||||
|
||||
# Content
|
||||
|
||||
- id: dateFormat
|
||||
|
||||
translation: "2 January 2006"
|
||||
|
||||
- id: shortdateFormat
|
||||
|
||||
translation: "2 Jan 2006 15:04:05"
|
||||
|
||||
- id: postedOnDate
|
||||
|
||||
translation: "Publegaa il {{ .Count }}"
|
||||
|
||||
- id: lastModified
|
||||
|
||||
translation: "(Darrera modifega ell {{ .Count }})"
|
||||
|
||||
- id: translationsLabel
|
||||
|
||||
translation: "Alter lengov: "
|
||||
|
||||
- id: translationsSeparator
|
||||
|
||||
translation: ", "
|
||||
|
||||
- id: readMore
|
||||
|
||||
translation: "Lensg"
|
||||
|
||||
- id: olderPosts
|
||||
|
||||
translation: "Articol pussee vegg"
|
||||
|
||||
- id: newerPosts
|
||||
|
||||
translation: "Articoli pussee noeuv"
|
||||
|
||||
- id: previousPost
|
||||
|
||||
translation: "Articolo de prima"
|
||||
|
||||
- id: nextPost
|
||||
|
||||
translation: "Articolo dopo"
|
||||
|
||||
- id: readTime
|
||||
|
||||
translation: "megnuu"
|
||||
|
||||
- id: words
|
||||
|
||||
translation: "paroll"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 404 page
|
||||
|
||||
- id: pageNotFound
|
||||
|
||||
translation: "Ocio, quella pagina chi la esist no. (errore 404)"
|
||||
|
||||
|
||||
|
||||
# Footer
|
||||
|
||||
- id: poweredBy # Accepts HTML
|
||||
|
||||
translation: '<a href="https://gohugo.io">Desviluppaa con Hugo v{{ .Site.Hugo.Version }}</a> • Tema <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> adattaa de <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
|
||||
|
||||
# Navigation
|
||||
|
||||
- id: toggleNavigation
|
||||
|
||||
translation: "Attiva/disattiva la navigazion"
|
||||
|
||||
- id: languageSwitcherLabel
|
||||
|
||||
translation: "Lengua"
|
||||
|
||||
- id: gcseLabelShort
|
||||
|
||||
translation: "Cerca"
|
||||
|
||||
- id: gcseLabelLong
|
||||
|
||||
translation: "Cerca {{ .Site.Title }}"
|
||||
|
||||
- id: gcseClose
|
||||
|
||||
translation: "Sara su"
|
||||
|
||||
|
||||
|
||||
# Staticman
|
||||
|
||||
- id: noComment
|
||||
|
||||
translation: "Nissub comment"
|
||||
|
||||
- id: oneComment
|
||||
|
||||
translation: "comment"
|
||||
|
||||
- id: moreComment
|
||||
|
||||
translation: "comment"
|
||||
|
||||
- id: useMarkdown
|
||||
|
||||
translation: "Te pòdet doperà la sintassi Markdown"
|
||||
|
||||
- id: yourName
|
||||
|
||||
translation: "El tò nomm"
|
||||
|
||||
- id: yourEmail
|
||||
|
||||
translation: "La toa adressa e-mail"
|
||||
|
||||
- id: yourWebsite
|
||||
|
||||
translation: "El tò sitt web"
|
||||
|
||||
|
||||
|
||||
# Delayed Disqus
|
||||
|
||||
- id: show
|
||||
|
||||
translation: "Mostra"
|
||||
|
||||
- id: comments
|
||||
|
||||
translation: "comment"
|
||||
|
||||
|
||||
|
||||
# Related posts
|
||||
|
||||
- id: seeAlso
|
||||
|
||||
translation: "Varda anca"
|
74
themes/beautifulhugo/i18n/nb.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "02.01.2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Postet {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Sist endret {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Andre språk: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Les Mer"
|
||||
- id: olderPosts
|
||||
translation: "Eldre Poster"
|
||||
- id: newerPosts
|
||||
translation: "Nyere Poster"
|
||||
- id: previousPost
|
||||
translation: "Forrige Post"
|
||||
- id: nextPost
|
||||
translation: "Neste Post"
|
||||
- id: readTime
|
||||
translation: "minutter"
|
||||
- id: words
|
||||
translation: "ord"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Oisann! Denne siden finnes visst ikke. Prøv noe annet. (404 feil)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: 'Kjører på <a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> • Tema fra <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> tilpasset fra <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Navigasjon på/av"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Språk"
|
||||
- id: gcseLabelShort
|
||||
translation: "Søk"
|
||||
- id: gcseLabelLong
|
||||
translation: "Søk {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Lukk"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Ingen kommentarer"
|
||||
- id: oneComment
|
||||
translation: "kommentar"
|
||||
- id: moreComment
|
||||
translation: "kommentarer"
|
||||
- id: useMarkdown
|
||||
translation: "Du kan bruke Markdown syntax"
|
||||
- id: yourName
|
||||
translation: "Ditt navn"
|
||||
- id: yourEmail
|
||||
translation: "Din e-postadresse"
|
||||
- id: yourWebsite
|
||||
translation: "Din webside"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Vis"
|
||||
- id: comments
|
||||
translation: "kommentarer"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Se også"
|
74
themes/beautifulhugo/i18n/nl.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2006-01-02"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Gepost op {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Laatst gewijzigd op {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Andere talen: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Meer lezen"
|
||||
- id: olderPosts
|
||||
translation: "Oudere berichten"
|
||||
- id: newerPosts
|
||||
translation: "Nieuwere berichten"
|
||||
- id: previousPost
|
||||
translation: "Vorige bericht"
|
||||
- id: nextPost
|
||||
translation: "Volgende bericht"
|
||||
- id: readTime
|
||||
translation: "minuten"
|
||||
- id: words
|
||||
translation: "woorden"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Oeps, deze pagina bestaat niet. (404 Error)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a>-aangedreven • Thema door <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> aangepast van <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Navigatie"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Taal"
|
||||
- id: gcseLabelShort
|
||||
translation: "Zoeken"
|
||||
- id: gcseLabelLong
|
||||
translation: "Zoek {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Sluiten"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Geen commentaar"
|
||||
- id: oneComment
|
||||
translation: "reactie"
|
||||
- id: moreComment
|
||||
translation: "reacties"
|
||||
- id: useMarkdown
|
||||
translation: "Je kunt Markdown-syntax gebruiken"
|
||||
- id: yourName
|
||||
translation: "Jouw naam"
|
||||
- id: yourEmail
|
||||
translation: "Jouw e-mailadres"
|
||||
- id: yourWebsite
|
||||
translation: "Jouw website"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Laat zien"
|
||||
- id: comments
|
||||
translation: "reacties"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Zie ook"
|
74
themes/beautifulhugo/i18n/pl.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "02.01.2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Opublikowany {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Ostatnia modyfikacja {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Inne języki: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Więcej"
|
||||
- id: olderPosts
|
||||
translation: "Poprzednie wpisy"
|
||||
- id: newerPosts
|
||||
translation: "Następne wpisy"
|
||||
- id: previousPost
|
||||
translation: "Poprzedni"
|
||||
- id: nextPost
|
||||
translation: "Następny"
|
||||
- id: readTime
|
||||
translation: "minuty"
|
||||
- id: words
|
||||
translation: "słowa"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Nieprawidłowy adres (błąd 404)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> napędzany • Motyw <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> przystosowany od <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Nawigacja"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Język"
|
||||
- id: gcseLabelShort
|
||||
translation: "Szukaj"
|
||||
- id: gcseLabelLong
|
||||
translation: "Szukaj {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Zamknij"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Bez komentarza"
|
||||
- id: oneComment
|
||||
translation: "komentarz"
|
||||
- id: moreComment
|
||||
translation: "komentarzy"
|
||||
- id: useMarkdown
|
||||
translation: "Możesz użyć składni Markdown"
|
||||
- id: yourName
|
||||
translation: "Twoje imię"
|
||||
- id: yourEmail
|
||||
translation: "Twój adres email"
|
||||
- id: yourWebsite
|
||||
translation: "Twoja strona internetowa"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Pokaż"
|
||||
- id: comments
|
||||
translation: "komentarzy"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Zobacz też"
|
74
themes/beautifulhugo/i18n/ru.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "02.01.2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "Опубликовано {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(Последнее изменение {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "Другие языки: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Далее"
|
||||
- id: olderPosts
|
||||
translation: "Предыдущие записи"
|
||||
- id: newerPosts
|
||||
translation: "Новые записи"
|
||||
- id: previousPost
|
||||
translation: "Предыдущий"
|
||||
- id: nextPost
|
||||
translation: "Следующий"
|
||||
- id: readTime
|
||||
translation: "минут"
|
||||
- id: words
|
||||
translation: "слова"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Уууупс, страница не найдена. Поищите ещё. (ошибка 404)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: 'На базе <a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> • Тема <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> на базе <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Навигация"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Язык"
|
||||
- id: gcseLabelShort
|
||||
translation: "Поиск"
|
||||
- id: gcseLabelLong
|
||||
translation: "Поиск по {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "Закрыть"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Без комментариев"
|
||||
- id: oneComment
|
||||
translation: "комментарий"
|
||||
- id: moreComment
|
||||
translation: "комментарии"
|
||||
- id: useMarkdown
|
||||
translation: "Вы можете использовать синтаксис Markdown"
|
||||
- id: yourName
|
||||
translation: "Ваше имя"
|
||||
- id: yourEmail
|
||||
translation: "Ваш адрес электронной почты"
|
||||
- id: yourWebsite
|
||||
translation: "Ваш сайт"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Показать"
|
||||
- id: comments
|
||||
translation: "комментариев"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Смотрите также"
|
74
themes/beautifulhugo/i18n/tr.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "2 Ocak 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Oca 2006 15.04.05"
|
||||
- id: postedOnDate
|
||||
translation: "{{ . }} tarihinde paylaşıldı"
|
||||
- id: lastModified
|
||||
translation: "({{ . }} tarihinde güncellendi)"
|
||||
- id: translationsLabel
|
||||
translation: "Diğer diller: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "Daha fazla oku"
|
||||
- id: olderPosts
|
||||
translation: "Önceki gönderiler"
|
||||
- id: newerPosts
|
||||
translation: "Son gönderiler"
|
||||
- id: previousPost
|
||||
translation: "Önceki gönderi"
|
||||
- id: nextPost
|
||||
translation: "Sonraki gönderi"
|
||||
- id: readTime
|
||||
translation: "dakika"
|
||||
- id: words
|
||||
translation: "kelime"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "Ups, bu sayfa mevcut değil. Başka bir yöne ilerleyin. (404 hatası)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '<a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> altyapısı • <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> temasından uyarlanan <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> teması kullanılmaktadır.'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "Gezinmeyi aktifleştirin"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "Dil"
|
||||
- id: gcseLabelShort
|
||||
translation: "Arama"
|
||||
- id: gcseLabelLong
|
||||
translation: "{{ .Site.Title }} içinde arayın"
|
||||
- id: gcseClose
|
||||
translation: "Kapat"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "Yorum yok"
|
||||
- id: oneComment
|
||||
translation: "yorum"
|
||||
- id: moreComment
|
||||
translation: "yorum"
|
||||
- id: useMarkdown
|
||||
translation: "Markdown söz dizimini kullanabilirsiniz"
|
||||
- id: yourName
|
||||
translation: "İsminiz"
|
||||
- id: yourEmail
|
||||
translation: "E-posta adresiniz"
|
||||
- id: yourWebsite
|
||||
translation: "Web siteniz"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "Göster"
|
||||
- id: comments
|
||||
translation: "yorumlar"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "Ayrıca bakınız"
|
74
themes/beautifulhugo/i18n/zh-CN.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "January 2, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "发表于 {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(上次修改时间 {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "其它语言: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "阅读全文"
|
||||
- id: olderPosts
|
||||
translation: "下一页"
|
||||
- id: newerPosts
|
||||
translation: "上一页"
|
||||
- id: previousPost
|
||||
translation: "前一篇"
|
||||
- id: nextPost
|
||||
translation: "后一篇"
|
||||
- id: readTime
|
||||
translation: "分钟"
|
||||
- id: words
|
||||
translation: "个字"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "啊哦,这篇文章不存在。 (404 错误)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '由 <a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> 强力驱动 • 主题 <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> 移植自 <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "切换导航"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "语言"
|
||||
- id: gcseLabelShort
|
||||
translation: "搜索"
|
||||
- id: gcseLabelLong
|
||||
translation: "搜索 {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "关闭"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "没有评论"
|
||||
- id: oneComment
|
||||
translation: "则评论"
|
||||
- id: moreComment
|
||||
translation: "则评论"
|
||||
- id: useMarkdown
|
||||
translation: "您可以使用Markdown语法"
|
||||
- id: yourName
|
||||
translation: "你的名字"
|
||||
- id: yourEmail
|
||||
translation: "您的电子邮件地址"
|
||||
- id: yourWebsite
|
||||
translation: "你的网页"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "显示"
|
||||
- id: comments
|
||||
translation: "则评论"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "也可以看看"
|
74
themes/beautifulhugo/i18n/zh-TW.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
# Content
|
||||
- id: dateFormat
|
||||
translation: "January 2, 2006"
|
||||
- id: shortdateFormat
|
||||
translation: "2 Jan, 2006 15:04:05"
|
||||
- id: postedOnDate
|
||||
translation: "發表於 {{ . }}"
|
||||
- id: lastModified
|
||||
translation: "(最後修改於 {{ . }})"
|
||||
- id: translationsLabel
|
||||
translation: "其他語言: "
|
||||
- id: translationsSeparator
|
||||
translation: ", "
|
||||
- id: readMore
|
||||
translation: "閱讀全文"
|
||||
- id: olderPosts
|
||||
translation: "更舊的文章"
|
||||
- id: newerPosts
|
||||
translation: "更新的文章"
|
||||
- id: previousPost
|
||||
translation: "上一篇"
|
||||
- id: nextPost
|
||||
translation: "下一篇"
|
||||
- id: readTime
|
||||
translation: "分鐘"
|
||||
- id: words
|
||||
translation: "個字"
|
||||
|
||||
|
||||
# 404 page
|
||||
- id: pageNotFound
|
||||
translation: "哎呀呀,這個頁面不存在,去其他地方逛逛吧。 (404 錯誤)"
|
||||
|
||||
# Footer
|
||||
- id: poweredBy # Accepts HTML
|
||||
translation: '由 <a href="https://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> 提供 • 主題 <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> 移植自 <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>'
|
||||
|
||||
# Navigation
|
||||
- id: toggleNavigation
|
||||
translation: "開關導覽"
|
||||
- id: languageSwitcherLabel
|
||||
translation: "語言"
|
||||
- id: gcseLabelShort
|
||||
translation: "搜尋"
|
||||
- id: gcseLabelLong
|
||||
translation: "搜尋 {{ .Site.Title }}"
|
||||
- id: gcseClose
|
||||
translation: "關閉"
|
||||
|
||||
# Staticman
|
||||
- id: noComment
|
||||
translation: "沒有評論"
|
||||
- id: oneComment
|
||||
translation: "則評論"
|
||||
- id: moreComment
|
||||
translation: "則評論"
|
||||
- id: useMarkdown
|
||||
translation: "您可以使用Markdown語法"
|
||||
- id: yourName
|
||||
translation: "您的名字"
|
||||
- id: yourEmail
|
||||
translation: "您的電子信箱"
|
||||
- id: yourWebsite
|
||||
translation: "您的網頁"
|
||||
|
||||
# Delayed Disqus
|
||||
- id: show
|
||||
translation: "顯示"
|
||||
- id: comments
|
||||
translation: "則評論"
|
||||
|
||||
# Related posts
|
||||
- id: seeAlso
|
||||
translation: "其他相關"
|
BIN
themes/beautifulhugo/images/screenshot.png
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
themes/beautifulhugo/images/tn.png
Normal file
After Width: | Height: | Size: 74 KiB |
18
themes/beautifulhugo/layouts/404.html
Normal file
@ -0,0 +1,18 @@
|
||||
{{ define "header" }}<!-- No header on 404 pages -->{{ end }}
|
||||
{{ define "main" }}
|
||||
<div role="main" class="container main-content">
|
||||
<div class="text-center">
|
||||
<h1 class="error-emoji"></h1>
|
||||
<p class="error-text">{{ i18n "pageNotFound" }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var errorEmojiContainer = document.getElementsByClassName('error-emoji')[0];
|
||||
var emojiArray = [
|
||||
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
|
||||
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
|
||||
];
|
||||
var errorEmoji = emojiArray[Math.floor(Math.random() * emojiArray.length)];
|
||||
errorEmojiContainer.appendChild(document.createTextNode(errorEmoji));
|
||||
</script>
|
||||
{{ end }}
|
14
themes/beautifulhugo/layouts/_default/baseof.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ block "footer" . }}{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
32
themes/beautifulhugo/layouts/_default/list.html
Normal file
@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<div class="container" role="main">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ with .Content }}
|
||||
<div class="well">
|
||||
{{.}}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="posts-list">
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "post_preview.html" .}}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<ul class="pager main-pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="previous">
|
||||
<!--a href="{{ .Permalink }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a-->
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="next">
|
||||
<!--a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a-->
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul-->
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
91
themes/beautifulhugo/layouts/_default/single.html
Normal file
@ -0,0 +1,91 @@
|
||||
{{ define "main" }}
|
||||
<div class="container" role="main">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="well">
|
||||
<article role="main" class="blog-post">
|
||||
{{ .Content }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<div class="blog-tags">
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if $.Param "socialShare" }}
|
||||
<hr/>
|
||||
<section id="social-share">
|
||||
<div class="list-inline footer-links">
|
||||
{{ partial "share-links" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.showRelatedPosts }}
|
||||
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
{{ $.Scratch.Set "has_related" true }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $.Scratch.Get "has_related" }}
|
||||
<h4 class="see-also">{{ i18n "seeAlso" }}</h4>
|
||||
<ul>
|
||||
{{ $num_to_show := .Site.Params.related_content_limit | default 5 }}
|
||||
{{ range first $num_to_show (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
{{ if ne .Type "post" }}
|
||||
<ul class="pager blog-pager">
|
||||
{{ if .PrevInSection }}
|
||||
<li class="previous">
|
||||
<!--a href="{{ .PrevInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">← {{ i18n "previousPost" }}</a-->
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<li class="next">
|
||||
<!--a href="{{ .NextInSection.Permalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title }}">{{ i18n "nextPost" }} →</a-->
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
{{ if .Site.Params.delayDisqus }}
|
||||
<div class="disqus-comments">
|
||||
<button id="show-comments" class="btn btn-default" type="button">{{ i18n "show" }} <span class="disqus-comment-count" data-disqus-url="{{ trim .Permalink "/" }}">{{ i18n "comments" }}</span></button>
|
||||
<div id="disqus_thread"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_config = function () {
|
||||
this.page.url = '{{ trim .Permalink "/" }}';
|
||||
};
|
||||
|
||||
</script>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="disqus-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.staticman }}
|
||||
<div class="staticman-comments">
|
||||
{{ partial "staticman-comments.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
38
themes/beautifulhugo/layouts/_default/terms.html
Normal file
@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ $data := .Data }}
|
||||
|
||||
<div class="container" role="main">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<article class="post-preview">
|
||||
<div class="panel-group" id="accordion">
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
<div class="panel panel-default">
|
||||
<a class="collapsed" role="button" data-toggle="collapse" data-target="#collapse{{ $value.Name }}" data-parent="#accordion">
|
||||
<div class="panel-heading" id="header{{ $value.Name }}">
|
||||
<h4 class="panel-title">
|
||||
{{ $value.Name }}
|
||||
<span class="badge">{{ $value.Count }}</span>
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
<div id="collapse{{ $value.Name }}" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<a href="{{ $.Site.LanguagePrefix | absURL }}/{{ $data.Plural }}/{{ $value.Name | urlize }}/" class="list-group-item view-all">
|
||||
View all</a>
|
||||
<div class="list-group">
|
||||
{{ range $item := $value.WeightedPages }}
|
||||
<a href="{{$item.Permalink}}" class="list-group-item">{{ $item.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{ end }}
|
35
themes/beautifulhugo/layouts/index.html
Normal file
@ -0,0 +1,35 @@
|
||||
{{ define "main" }}
|
||||
<div role="main" class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ with .Content }}
|
||||
<div class="well">
|
||||
{{.}}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<!--div class="posts-list">
|
||||
{{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
|
||||
{{ range $pag.Pages }}
|
||||
{{ partial "post_preview" . }}
|
||||
{{ end }}
|
||||
</div-->
|
||||
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<ul class="pager main-pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="previous">
|
||||
<a href="{{ .Permalink }}page/{{ .Paginator.Prev.PageNumber }}/">← {{ i18n "newerPosts" }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="next">
|
||||
<a href="{{ .Permalink }}page/{{ .Paginator.Next.PageNumber }}/">{{ i18n "olderPosts" }} →</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
7
themes/beautifulhugo/layouts/partials/disqus.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }}
|
||||
{{ if .Site.DisqusShortname }}
|
||||
<div class="comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
158
themes/beautifulhugo/layouts/partials/footer.html
Normal file
@ -0,0 +1,158 @@
|
||||
{{ if eq .Type "page" }}
|
||||
{{ partial "page_meta.html" . }}
|
||||
{{ end }}
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="list-inline text-center footer-links">
|
||||
{{ range .Site.Data.beautifulhugo.social.social_icons }}
|
||||
{{- if isset $.Site.Author .id }}
|
||||
<li>
|
||||
{{ if or ( hasPrefix ( index $.Site.Author .id ) "http://" ) ( hasPrefix ( index $.Site.Author .id ) "https://" ) }}
|
||||
<a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf "%s" (index $.Site.Author .id) }}" title="{{ .title }}">
|
||||
{{ else }}
|
||||
<a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">
|
||||
{{ end }}
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="{{ .icon }} fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.rss }}
|
||||
<li>
|
||||
<a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="RSS">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fas fa-circle fa-stack-2x"></i>
|
||||
<i class="fas fa-rss fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<p class="credits copyright text-muted">
|
||||
{{ if .Site.Author.name }}
|
||||
{{ if .Site.Author.website }}
|
||||
<a href="{{ .Site.Author.website }}">{{ .Site.Author.name }}</a>
|
||||
{{ else }}
|
||||
{{ .Site.Author.name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
•
|
||||
<!-- {{ if .Site.Params.since }}
|
||||
{{ .Site.Params.since }}
|
||||
{{ else }}
|
||||
{{ .Site.LastChange.Format "2006" }}
|
||||
{{ end }}
|
||||
-->
|
||||
{{ now.Year }}
|
||||
|
||||
{{ if .Site.Title }}
|
||||
•
|
||||
<a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{- if .Site.Params.selfHosted -}}
|
||||
<script src="{{ "js/katex.min.js" | absURL }}"></script>
|
||||
<script src="{{ "js/auto-render.min.js" | absURL }}"></script>
|
||||
<script src="{{ "js/jquery-3.5.1.slim.min.js" | absURL }}"></script>
|
||||
<script src="{{ "js/bootstrap.min.js" | absURL }}"></script>
|
||||
{{- else -}}
|
||||
<script src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
|
||||
<script src="{{ "js/main.js" | absURL }}"></script>
|
||||
{{- if .Site.Params.staticman }}
|
||||
<script src="{{ "js/staticman.js" | absURL }}"></script>
|
||||
{{- end }}
|
||||
{{- if .Site.Params.useHLJS }}
|
||||
<script src="{{ "js/highlight.min.js" | absURL }}"></script>
|
||||
<script> hljs.initHighlightingOnLoad(); </script>
|
||||
<script> $(document).ready(function() {$("pre.chroma").css("padding","0");}); </script>
|
||||
{{- end -}}
|
||||
<script> renderMathInElement(document.body); </script>
|
||||
|
||||
{{- if .Site.Params.selfHosted -}}
|
||||
<script src="{{ "js/photoswipe.min.js" | absURL }}"></script>
|
||||
<script src="{{ "js/photoswipe-ui-default.min.js" | absURL }}"></script>
|
||||
{{- else -}}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.js" integrity="sha384-QELNnmcmU8IR9ZAykt67vGr9/rZJdHbiWi64V88fCPaOohUlHCqUD/unNN0BXSqy" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe-ui-default.min.js" integrity="sha384-m67o7SkQ1ALzKZIFh4CiTA8tmadaujiTa9Vu+nqPSwDOqHrDmxLezTdFln8077+q" crossorigin="anonymous"></script>
|
||||
{{- end -}}
|
||||
<script src="{{ "js/load-photoswipe.js" | absURL }}"></script>
|
||||
|
||||
<!-- Google Custom Search Engine -->
|
||||
{{ if .Site.Params.gcse }}
|
||||
<script>
|
||||
(function() {
|
||||
var cx = '{{ .Site.Params.gcse }}';
|
||||
var gcse = document.createElement('script');
|
||||
gcse.type = 'text/javascript';
|
||||
gcse.async = true;
|
||||
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(gcse, s);
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.piwik }}
|
||||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
_paq.push(["trackPageView"]);
|
||||
_paq.push(["enableLinkTracking"]);
|
||||
|
||||
(function() {
|
||||
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://{{ .Site.Params.piwik.server }}/";
|
||||
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
||||
_paq.push(["setSiteId", "{{ .Site.Params.piwik.id }}"]);
|
||||
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
||||
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>
|
||||
<!-- Piwik Image Tracker -->
|
||||
<img src="http://{{ .Site.Params.piwik.server }}/piwik.php?idsite={{ .Site.Params.piwik.id }}&rec=1" style="border:0" alt="" />
|
||||
<!-- End Piwik -->
|
||||
</noscript>
|
||||
<!-- End Piwik Code -->
|
||||
{{ end }}
|
||||
|
||||
{{ if and .Site.Params.delayDisqus .Site.DisqusShortname }}
|
||||
<!-- Delayed Disqus -->
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#show-comments').on('click', function(){
|
||||
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||
|
||||
(function() {
|
||||
var disqus = document.createElement('script');
|
||||
disqus.type = 'text/javascript';
|
||||
disqus.async = true;
|
||||
disqus.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(disqus);
|
||||
})();
|
||||
|
||||
$(this).hide();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<script id="dsq-count-scr" src="//{{ .Site.DisqusShortname }}.disqus.com/count.js" async></script>
|
||||
<!-- End Delayed Disqus -->
|
||||
{{ end }}
|
||||
|
||||
{{- partial "footer_custom.html" . }}
|
4
themes/beautifulhugo/layouts/partials/footer_custom.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </body>, put it in /layouts/partials/footer_custom.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/footer_custom.html doesn't exist.
|
||||
-->
|
93
themes/beautifulhugo/layouts/partials/head.html
Normal file
@ -0,0 +1,93 @@
|
||||
{{- if eq .Kind "taxonomyTerm" }}
|
||||
{{- range $key, $value := .Data.Terms.ByCount }}
|
||||
{{- $.Scratch.Add "most_used" (slice $value.Name) }}
|
||||
{{- end }}
|
||||
{{- if not ($.Scratch.Get "most_used") }}
|
||||
{{- $description := printf "A full overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular | truncate 180 }}
|
||||
{{- $.Scratch.Set "Description" $description }}
|
||||
{{- else }}
|
||||
{{- $description := printf "A full overview of all pages with %s, ordered by %s, such as: %s" .Data.Plural .Data.Singular ( delimit ( $.Scratch.Get "most_used" ) ", " ", and " ) | truncate 180 }}
|
||||
{{- $.Scratch.Set "Description" $description }}
|
||||
{{- end }}
|
||||
|
||||
{{- $title := printf "Overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular }}
|
||||
{{- $.Scratch.Set "Title" $title }}
|
||||
{{- else if eq .Kind "taxonomy" }}
|
||||
{{- $description := printf "Overview of all pages with the %s #%s, such as: %s" .Data.Singular $.Title ( index .Pages 0).Title | truncate 160 }}
|
||||
{{- $.Scratch.Set "Description" $description }}
|
||||
|
||||
{{- $title := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }}
|
||||
{{- $.Scratch.Set "Title" $title }}
|
||||
{{- else }}
|
||||
{{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary ) }}
|
||||
{{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) }}
|
||||
{{- end }}
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<!-- Site Title, Description, Author, and Favicon -->
|
||||
{{- with ($.Scratch.Get "Title") }}
|
||||
<title>{{ . }} - {{ $.Site.Title }}</title>
|
||||
{{- end }}
|
||||
{{- with ($.Scratch.Get "Description") }}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{- end }}
|
||||
{{- with .Site.Author.name }}
|
||||
<meta name="author" content="{{ . }}"/>
|
||||
{{- end }}
|
||||
{{- partial "seo/main.html" . }}
|
||||
{{- with .Site.Params.favicon }}
|
||||
<link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>
|
||||
{{- end -}}
|
||||
<!-- Hugo Version number -->
|
||||
{{ hugo.Generator -}}
|
||||
<!-- Links and stylesheets -->
|
||||
<link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
|
||||
{{- if .Site.Params.selfHosted -}}
|
||||
<link rel="stylesheet" href="{{ "css/katex.min.css" | absURL }}" />
|
||||
<link rel="stylesheet" href="{{ "fontawesome/css/all.css" | absURL }}" />
|
||||
<link rel="stylesheet" href="{{ "css/bootstrap.min.css" | absURL }}" />
|
||||
{{- else -}}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
{{- end -}}
|
||||
|
||||
<link rel="stylesheet" href="{{ "css/main.css" | absURL }}" />
|
||||
|
||||
{{- if .Site.Params.staticman -}}
|
||||
<link rel="stylesheet" href="{{ "css/staticman.css" | absURL }}" />
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Site.Params.selfHosted -}}
|
||||
<link rel="stylesheet" href="{{ "css/fonts.css" | absURL }}" />
|
||||
{{- else -}}
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Site.Params.useHLJS }}
|
||||
<link rel="stylesheet" href="{{ "css/highlight.min.css" | absURL }}" />
|
||||
{{- else -}}
|
||||
<link rel="stylesheet" href="{{ "css/syntax.css" | absURL }}" />
|
||||
{{- end -}}
|
||||
<link rel="stylesheet" href="{{ "css/codeblock.css" | absURL }}" />
|
||||
|
||||
{{- if .Site.Params.staticman.recaptcha -}}
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Site.Params.selfHosted -}}
|
||||
<link rel="stylesheet" href="{{ "css/photoswipe.min.css" | absURL }}" />
|
||||
<link rel="stylesheet" href="{{ "css/photoswipe.default-skin.min.css" | absURL }}" />
|
||||
{{- else -}}
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.css" integrity="sha384-h/L2W9KefUClHWaty3SLE5F/qvc4djlyR4qY3NUV5HGQBBW7stbcfff1+I/vmsHh" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/default-skin/default-skin.min.css" integrity="sha384-iD0dNku6PYSIQLyfTOpB06F2KCZJAKLOThS5HRe8b3ibhdEQ6eKsFf/EeFxdOt5R" crossorigin="anonymous">
|
||||
{{- end -}}
|
||||
|
||||
{{- partial "head_custom.html" . }}
|
||||
{{- if not .Site.IsServer -}}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
{{- end -}}
|
4
themes/beautifulhugo/layouts/partials/head_custom.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </head>, put it in /layouts/partials/head_custom.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/head_custom.html doesn't exist.
|
||||
-->
|
89
themes/beautifulhugo/layouts/partials/header.html
Normal file
@ -0,0 +1,89 @@
|
||||
{{- partial "load-photoswipe-theme.html" . }}
|
||||
|
||||
{{ if .IsHome }}
|
||||
{{ if .Site.Params.homeTitle }}{{ $.Scratch.Set "title" .Site.Params.homeTitle }}{{ else }}{{ $.Scratch.Set "title" .Site.Title }}{{ end }}
|
||||
{{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }}
|
||||
{{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "title" .Title }}
|
||||
{{ if .Params.subtitle }}{{ $.Scratch.Set "subtitle" .Params.subtitle }}{{ end }}
|
||||
{{ if .Params.bigimg }}{{ $.Scratch.Set "bigimg" .Params.bigimg }}{{ end }}
|
||||
{{ end }}
|
||||
{{ $bigimg := $.Scratch.Get "bigimg" }}
|
||||
{{ $title := $.Scratch.Get "title" }}
|
||||
{{ $subtitle := $.Scratch.Get "subtitle" }}
|
||||
|
||||
{{ if or $bigimg $title }}
|
||||
{{ if $bigimg }}
|
||||
<div id="header-big-imgs" data-num-img={{len $bigimg}}
|
||||
{{range $i, $img := $bigimg}}
|
||||
{{ if (fileExists $img.src)}}
|
||||
data-img-src-{{add $i 1}}="{{$img.src | absURL }}"
|
||||
{{else}}
|
||||
data-img-src-{{add $i 1}}="{{$img.src}}"
|
||||
{{end}}
|
||||
{{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}
|
||||
{{end}}></div>
|
||||
{{ end }}
|
||||
|
||||
<header class="header-section {{ if $bigimg }}has-img{{ end }}">
|
||||
{{ if $bigimg }}
|
||||
<div class="intro-header big-img">
|
||||
{{ $subtitle := $.Scratch.Get "subtitle" }}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="{{ .Type }}-heading">
|
||||
<h1>{{ with $.Scratch.Get "title" }}{{.}}{{ else }}<br/>{{ end }}</h1>
|
||||
{{ if $subtitle }}
|
||||
{{ if eq .Type "page" }}
|
||||
<hr class="small">
|
||||
<span class="{{ .Type }}-subheading">{{ $subtitle }}</span>
|
||||
{{ else }}
|
||||
<h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq .Type "post" }}
|
||||
{{ partial "post_meta.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span class="img-desc" style="display: inline;"></span>
|
||||
</div>
|
||||
{{end}}
|
||||
{{ if $title }}
|
||||
<div class="intro-header no-img">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<div class="{{ .Type }}-heading">
|
||||
{{ if eq .Type "list" }}
|
||||
<h1>{{ if .Data.Singular }}#{{ end }}{{ .Title }}</h1>
|
||||
{{ else }}
|
||||
<h1>{{ with $title }}{{.}}{{ else }}<br/>{{ end }}</h1>
|
||||
{{ end }}
|
||||
{{ if ne .Type "post" }}
|
||||
<hr class="small">
|
||||
{{ end }}
|
||||
{{ if $subtitle }}
|
||||
{{ if eq .Type "page" }}
|
||||
<span class="{{ .Type }}-subheading">{{ $subtitle }}</span>
|
||||
{{ else }}
|
||||
<h2 class="{{ .Type }}-subheading">{{ $subtitle }}</h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq .Type "post" }}
|
||||
{{ partial "post_meta.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ else }}
|
||||
<div class="intro-header"></div>
|
||||
{{ end }}
|