diff --git a/README.md b/README.md index 6c2cc43c9..0df5b43bb 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ This Hugo theme was ported from [Bootstrapious](http://bootstrapious.com/p/unive * [Recent posts](#recent-posts) * [Meta tags](#meta-tags) * [Usage](#usage) + * [on Dat](#publish on dat) * [Contributing](#contributing) * [License](#license) * [Thanks](#thanks) @@ -429,6 +430,16 @@ Now enter [`localhost:1313`](http://localhost:1313) in the address bar of your b For more information check out the official [Hugo documentation](http://gohugo.io/overview/usage/). +###publish on dat + +To create a version of the website to publish in on dat, you will need to run: + +``` +$ hugo --config config.toml,config_todat.toml +``` + +A new folder will be created, share that folder on the dat network, then copy the dat address and use it as the baseURL, do not forget to add a slash at the end of the baseURL. +Run the command again, and reload the dat sharing, the website should be nice looking on the beakerbrowser. Be careful, small caps and capitals are treated differently on dat, while it is not on http sites (image file names,...). ## Contributing diff --git a/exampleSite/config_todat.toml b/exampleSite/config_todat.toml new file mode 100644 index 000000000..92520f1eb --- /dev/null +++ b/exampleSite/config_todat.toml @@ -0,0 +1,2 @@ +baseurl = 'dat://xxx/' +publishDir = 'public-dat' \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 55dfb8e26..3a07eb426 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -28,7 +28,7 @@
-

{{ .Title }}

+

{{ .Title }}

{{ .Summary }}

-

{{ i18n "continueReading" }} +

{{ i18n "continueReading" }}

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bfd502ef9..2f139ce14 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -22,7 +22,7 @@

{{ i18n "recentPosts" }}

{{ range first 3 (where .Site.Pages "Type" "blog") }}
- + {{ if isset .Params "banner" }} {{ .Title }} {{ else }} @@ -31,7 +31,7 @@

{{ i18n "recentPosts" }}

-
{{ .Title }}
+
{{ .Title }}
{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4f0293aa9..4e07a49e9 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,25 +20,25 @@ {{ .Hugo.Generator }} - + - - + + - + {{ if and (isset .Site.Params "style") .Site.Params.style }} - + {{ else }} - + {{ end }} - + {{ ` @@ -49,14 +49,14 @@ ` | safeHTML }} - - + + - - + + - + diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html index 660d61f58..1e2bc419b 100644 --- a/layouts/partials/recent_posts.html +++ b/layouts/partials/recent_posts.html @@ -31,13 +31,13 @@

{{ .Site.Params.recent_posts.title }}

- {{ i18n "readMore" }} + {{ i18n "readMore" }}

-

{{ .Title }}

+

{{ .Title }}

{{ with .Params.author }} {{ i18n "authorBy" }} {{ . }} @@ -46,7 +46,7 @@

{{ .Title }}

{{ .Summary }}

- {{ i18n "continueReading" }} + {{ i18n "continueReading" }}

diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 33d9762d6..e6ea0e054 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,15 +1,15 @@ {{ template "_internal/google_analytics.html" . }} - - + + - - - - + + + + {{ if .Site.Params.googleMapsApiKey }} - + {{ else }} - + {{ end }} diff --git a/layouts/partials/testimonials.html b/layouts/partials/testimonials.html index ec259845f..e9c4e4cf7 100644 --- a/layouts/partials/testimonials.html +++ b/layouts/partials/testimonials.html @@ -26,7 +26,7 @@

{{ .Site.Params.testimonials.title }}

- +
{{ .name }}

{{ .position }}