From e1df0be3d8c06c62b33863140c6220c9a60a91c3 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 9 Feb 2020 11:50:54 +0100 Subject: [PATCH] updated website --- config.toml | 2 +- themes/hugo-theme-wave/layouts/index.html | 31 ++++++++----------- .../layouts/partials/footer.html | 4 +-- themes/hugo-theme-wave/static/js/main.js | 7 +++-- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/config.toml b/config.toml index 66350b9..d3ee132 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ baseurl = "//www.paulbsd.com/" -languageCode = "en-us" +languageCode = "en-gb" title = "PaulBSD website" googleAnalytics = "" paginate = 10 diff --git a/themes/hugo-theme-wave/layouts/index.html b/themes/hugo-theme-wave/layouts/index.html index 6b3e35a..8a47b02 100644 --- a/themes/hugo-theme-wave/layouts/index.html +++ b/themes/hugo-theme-wave/layouts/index.html @@ -1,22 +1,17 @@ -{{ partial "head" . }} - - -
-
- {{ partial "header" . }} - - -
- - {{ partial "article_list" . }} - {{ partial "sidebar" . }} - + {{ partial "head" . }} + +
+
+ {{ partial "header" . }} + +
+ {{ partial "article_list" . }} + {{ partial "sidebar" . }} +
-
- {{ partial "footer" . }} - - - \ No newline at end of file + {{ partial "footer" . }} + + diff --git a/themes/hugo-theme-wave/layouts/partials/footer.html b/themes/hugo-theme-wave/layouts/partials/footer.html index dd85634..e3cb405 100644 --- a/themes/hugo-theme-wave/layouts/partials/footer.html +++ b/themes/hugo-theme-wave/layouts/partials/footer.html @@ -5,7 +5,7 @@ © {{ now.Format "2006" }} paulbsd.
{{ with .Site.Params.copyright }}{{ . | markdownify}}{{ end }} - +
- \ No newline at end of file + diff --git a/themes/hugo-theme-wave/static/js/main.js b/themes/hugo-theme-wave/static/js/main.js index b649d0b..d100025 100644 --- a/themes/hugo-theme-wave/static/js/main.js +++ b/themes/hugo-theme-wave/static/js/main.js @@ -1,7 +1,7 @@ // dip service function main() { - var jqxhr = + var jqxhr = $.ajax({ type: "GET", url: "https://ip.paulbsd.com", @@ -10,7 +10,10 @@ function main() { 'Accept': 'application/json', }, dataType: 'json', - }).done(function(data){ console.log(transformIPInfo(data)) }); + }).done(function(data) { + var dip = $('#dip'); + dip[0].text = data.ip; + }); return jqxhr; }