This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install hugo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ hugo version | |
Hugo Static Site Generator v0.53/extended darwin/amd64 BuildDate: unknown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ hugo new site phraseapp-hugo-i18n | |
➜ cd phraseapp-hugo-i18n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/josephhutch/aether.git themes/aether | |
echo 'theme = "aether"' >> config.toml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
DefaultContentLanguage = "en" | |
[languages] | |
[languages.en] | |
title = "My New Hugo i18n Site" | |
languageName = "English" | |
weight = 1 | |
[languages.gr] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ cp -R themes/aether/exampleSite/content content/ | |
hugo server -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ if eq $.Site.Params.phraseAppEnabled true }} | |
<script> | |
window.PHRASEAPP_CONFIG = { | |
projectId: "<projectId>" | |
}; | |
(function() { | |
var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true; | |
phraseapp.src = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join(''); | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s); | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="post-title">{{ i18n (printf $.Site.Params.phraseapp_key .Title) }}</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[params] | |
phraseAppEnabled = true | |
phraseapp_key = "{{__phrase_%s__}}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaultContentLanguageInSubdir = true |