diff options
author | Derek <42170307+2-REC@users.noreply.github.com> | 2018-12-13 18:19:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 18:19:05 +0300 |
commit | 3da15817a9ed7669d4d85a2195c20d6c4a272ae3 (patch) | |
tree | eb62594e25f6e490c4da7c944b767241be420c07 | |
parent | 734645842d4850e0a1b67052ce0d983913a063cd (diff) | |
parent | 9c290b5d33160a7e943b1433296724e52e839aac (diff) |
Merge pull request #5 from onedrawingperday/permalink_fix
Permalink Fix Hugo Themes Demo
24 files changed, 25 insertions, 25 deletions
diff --git a/exampleSite/resources/_gen/images/perso/drawings/random/images/flower_scene_hu757159f9f078f124f29d8dcf65010010_234308_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/drawings/random/images/flower_scene_hu757159f9f078f124f29d8dcf65010010_234308_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..64fce55 --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/drawings/random/images/flower_scene_hu757159f9f078f124f29d8dcf65010010_234308_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_foie_gras_hu41913ca439edce0ecb9dc83bbcd87f6a_332208_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_foie_gras_hu41913ca439edce0ecb9dc83bbcd87f6a_332208_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..c14b2bb --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_foie_gras_hu41913ca439edce0ecb9dc83bbcd87f6a_332208_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_salad_hu1b2632d90aa9752dda73ce3099182793_373253_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_salad_hu1b2632d90aa9752dda73ce3099182793_373253_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..3c95fcc --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_salad_hu1b2632d90aa9752dda73ce3099182793_373253_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_seafood_hu855a474307363c6193fbc764424e9352_481961_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_seafood_hu855a474307363c6193fbc764424e9352_481961_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..521b2ec --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/moo-moo/images/moo_moo_seafood_hu855a474307363c6193fbc764424e9352_481961_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/vietnam/images/pho99_fried_pho_hudd4428f8a600c78feebb8e78524aed23_382287_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/vietnam/images/pho99_fried_pho_hudd4428f8a600c78feebb8e78524aed23_382287_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..6b0476c --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/vietnam/images/pho99_fried_pho_hudd4428f8a600c78feebb8e78524aed23_382287_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/vietnam/images/royal_lunch_hu1256fdcac62b2691ada8c3b4a6260a92_257466_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/vietnam/images/royal_lunch_hu1256fdcac62b2691ada8c3b4a6260a92_257466_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..3729e6a --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/vietnam/images/royal_lunch_hu1256fdcac62b2691ada8c3b4a6260a92_257466_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/food/vietnam/images/ut_hue_hudff3c8d01933eba4666d0c3cb7fe815a_347693_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/food/vietnam/images/ut_hue_hudff3c8d01933eba4666d0c3cb7fe815a_347693_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..0b07cfe --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/food/vietnam/images/ut_hue_hudff3c8d01933eba4666d0c3cb7fe815a_347693_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/humans/images/1_hu6a1605fc8cb47a0dbd75835e38c47d73_246290_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/humans/images/1_hu6a1605fc8cb47a0dbd75835e38c47d73_246290_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..43a4e5f --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/humans/images/1_hu6a1605fc8cb47a0dbd75835e38c47d73_246290_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/humans/images/2_huc03187188e344c61d6c47d51b4748759_163589_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/humans/images/2_huc03187188e344c61d6c47d51b4748759_163589_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..14724d5 --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/humans/images/2_huc03187188e344c61d6c47d51b4748759_163589_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/humans/images/6_huc0bc655a9689f6d639bf8d9c1e326a37_472266_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/humans/images/6_huc0bc655a9689f6d639bf8d9c1e326a37_472266_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..80c9271 --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/humans/images/6_huc0bc655a9689f6d639bf8d9c1e326a37_472266_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/others/images/3_huddd8a6370181301138920d27c5801fef_380098_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/others/images/3_huddd8a6370181301138920d27c5801fef_380098_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..4067116 --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/others/images/3_huddd8a6370181301138920d27c5801fef_380098_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/others/images/8_hu3fc8b0d649851c26de6cd950231eb278_387246_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/others/images/8_hu3fc8b0d649851c26de6cd950231eb278_387246_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..e622803 --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/others/images/8_hu3fc8b0d649851c26de6cd950231eb278_387246_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/perso/statues/others/images/9_hudc2e6f140ede23d67a9e7784ea63dee3_400161_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/perso/statues/others/images/9_hudc2e6f140ede23d67a9e7784ea63dee3_400161_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..b5cea6d --- /dev/null +++ b/exampleSite/resources/_gen/images/perso/statues/others/images/9_hudc2e6f140ede23d67a9e7784ea63dee3_400161_512x0_resize_q75_box.jpg diff --git a/exampleSite/resources/_gen/images/pro/company/single-project/images/draw2_hu6a8be6f691ac6f4874985c6496667cbd_244332_512x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/pro/company/single-project/images/draw2_hu6a8be6f691ac6f4874985c6496667cbd_244332_512x0_resize_q75_box.jpg Binary files differnew file mode 100644 index 0000000..f5ca9c9 --- /dev/null +++ b/exampleSite/resources/_gen/images/pro/company/single-project/images/draw2_hu6a8be6f691ac6f4874985c6496667cbd_244332_512x0_resize_q75_box.jpg diff --git a/layouts/404.html b/layouts/404.html index 842c9b6..360e535 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -15,7 +15,7 @@ <div class="col-xs-12 text-center"> {{ with .background_image }} <div class="page404-image" title="image: {{ . }}" - style="background-image: url('{{ (printf "images/%s" .) | relURL }}');" + style="background-image: url('{{ (printf "images/%s" .) | absURL }}');" > </div> {{ end }} diff --git a/layouts/_default/limage.html b/layouts/_default/limage.html index 52c82b0..6208469 100644 --- a/layouts/_default/limage.html +++ b/layouts/_default/limage.html @@ -5,7 +5,7 @@ {{ if $image_file }} {{ $image := .Resources.GetMatch $image_file }} {{ with $image }} - <img src="{{ .RelPermalink | relURL }}" class="img-responsive" alt="{{ .Name }}"> + <img src="{{ .Permalink }}" class="img-responsive" alt="{{ .Name }}"> {{ end }} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 512966b..bbeaa35 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,26 +18,26 @@ {{ .Hugo.Generator }} {{ "<!-- Favicon -->" | safeHTML }} -<link rel="shortcut icon" href="{{ .Site.Params.meta.favicon | relURL }}" type="image/x-icon" /> -<link rel="icon" href="{{ .Site.Params.meta.favicon | relURL }}" type="image/x-icon" /> +<link rel="shortcut icon" href="{{ .Site.Params.meta.favicon | absURL }}" type="image/x-icon" /> +<link rel="icon" href="{{ .Site.Params.meta.favicon | absURL }}" type="image/x-icon" /> {{ "<!-- Bootstrap -->" | safeHTML }} -<link rel="stylesheet" href="{{ "plugins/bootstrap/css/bootstrap.min.css" | relURL }}" type="text/css"> +<link rel="stylesheet" href="{{ "plugins/bootstrap/css/bootstrap.min.css" | absURL }}" type="text/css"> {{ "<!-- Custom Fonts -->" | safeHTML }} <link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' type='text/css'> <link rel='stylesheet' href='//fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' type='text/css'> -<link rel="stylesheet" href="{{ "plugins/font-awesome/css/all.css" | relURL }}" type="text/css"> +<link rel="stylesheet" href="{{ "plugins/font-awesome/css/all.css" | absURL }}" type="text/css"> {{ "<!-- CSS Plugins -->" | safeHTML }} -<link rel="stylesheet" href="{{ "plugins/animate/animate.min.css" | relURL }}" type="text/css"> +<link rel="stylesheet" href="{{ "plugins/animate/animate.min.css" | absURL }}" type="text/css"> {{ "<!-- Custom CSS -->" | safeHTML }} -<link rel="stylesheet" href="{{ "css/default.css" | relURL }}" type="text/css"> +<link rel="stylesheet" href="{{ "css/default.css" | absURL }}" type="text/css"> {{ range .Site.Params.custom_css }} - <link rel="stylesheet" href="{{ (printf "%s%s" "css/" .) | relURL }}" type="text/css"> + <link rel="stylesheet" href="{{ (printf "%s%s" "css/" .) | absURL }}" type="text/css"> {{ end }} -<link rel="stylesheet" href="{{ "css/theme.css" | relURL }}" type="text/css"> +<link rel="stylesheet" href="{{ "css/theme.css" | absURL }}" type="text/css"> {{ "<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->" | safeHTML }} {{ "<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->" | safeHTML }} diff --git a/layouts/partials/pages/hero.html b/layouts/partials/pages/hero.html index bf77872..b29ca38 100644 --- a/layouts/partials/pages/hero.html +++ b/layouts/partials/pages/hero.html @@ -3,7 +3,7 @@ {{ $image := .Resources.GetMatch .Params.image }} {{ if $image }} <div class="header-image" - style="background-image: url('{{ $image.RelPermalink | relURL }}');" + style="background-image: url('{{ $image.Permalink }}');" > {{ with .Params.image_copyright }} <p class="copyright">{{ . | markdownify }}</p> diff --git a/layouts/partials/pages/sidebar.html b/layouts/partials/pages/sidebar.html index 98d4955..4a2e96c 100644 --- a/layouts/partials/pages/sidebar.html +++ b/layouts/partials/pages/sidebar.html @@ -6,10 +6,10 @@ {{ with $image }} <div class="sidebar-image"> {{ if $.Params.small_url }} - <a href="{{ $.Params.small_url | relURL }}" target="_blank" rel="noopener noreferrer"> + <a href="{{ $.Params.small_url | absURL }}" target="_blank" rel="noopener noreferrer"> {{ end }} {{ $alt := or $.Params.small_url "" }} - <img src="{{ .RelPermalink | relURL }}" alt="{{ $alt }}"> + <img src="{{ .Permalink }}" alt="{{ $alt }}"> {{ if $.Params.small_url }} </a> {{ end }} @@ -22,7 +22,7 @@ {{ "<!-- Navigation Tree -->" | safeHTML }} <div class="sidebar-tree"> {{ with .Parent }} - <a class="parent-link" href="{{ .Permalink | relURL }}"> + <a class="parent-link" href="{{ .Permalink }}"> {{ if not .IsHome }} <i class="fas fa-chevron-circle-left"></i> {{ .Title }} diff --git a/layouts/partials/sections/about.html b/layouts/partials/sections/about.html index 97a4056..02e1b6c 100644 --- a/layouts/partials/sections/about.html +++ b/layouts/partials/sections/about.html @@ -16,7 +16,7 @@ <div class="col-xs-12 col-md-4"> <div class="profile"> {{ with .avatar }} - <div class="portrait" title="avatar: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"></div> + <div class="portrait" title="avatar: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"></div> {{ end }} {{ with .short_text }} <div class="text-primary"> diff --git a/layouts/partials/sections/contact.html b/layouts/partials/sections/contact.html index 8eaf3e2..4f4da1b 100644 --- a/layouts/partials/sections/contact.html +++ b/layouts/partials/sections/contact.html @@ -2,7 +2,7 @@ {{ with .Site.Data.contact }} <section class="section" id="contact" {{ with .background_image }} - style="background-image: url('{{ (printf "images/%s" .) | relURL }}');" + style="background-image: url('{{ (printf "images/%s" .) | absURL }}');" {{ end }} > <div class="container-fluid"> @@ -19,7 +19,7 @@ <div class="col-md-4 col-md-offset-1 text-center"> <div class="profile bg-secondary"> {{ with .photo }} - <div class="portrait" title="photo: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | relURL }}');"></div> + <div class="portrait" title="photo: {{ . }}" style="background-image: url('{{ (printf "images/%s" .) | absURL }}');"></div> {{ end }} {{ with .description }} diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html index 7d1a9f3..364635a 100644 --- a/layouts/partials/sections/home.html +++ b/layouts/partials/sections/home.html @@ -2,7 +2,7 @@ {{ with .Site.Data.home }} <section id="home" {{ with .background }} - style="background-image: url('{{ (printf "images/%s" .) | relURL }}');" + style="background-image: url('{{ (printf "images/%s" .) | absURL }}');" {{ end }} > <div class="header-content"> diff --git a/layouts/partials/sections/services.html b/layouts/partials/sections/services.html index 923766c..fcbc90e 100644 --- a/layouts/partials/sections/services.html +++ b/layouts/partials/sections/services.html @@ -2,7 +2,7 @@ {{ with .Site.Data.services }} <section class="section" id="services" {{ with .background_image }} - style="background-image: url('{{ (printf "images/%s" .) | relURL }}');" + style="background-image: url('{{ (printf "images/%s" .) | absURL }}');" {{ end }} > {{ with .title }} diff --git a/layouts/partials/tail.html b/layouts/partials/tail.html index fa19c8f..ac0526b 100644 --- a/layouts/partials/tail.html +++ b/layouts/partials/tail.html @@ -1,7 +1,7 @@ {{ "<!-- TAIL.HTML -->" | safeHTML }} -<script src="{{ "plugins/jquery/jquery.js" | relURL }}"></script> -<script src="{{ "plugins/bootstrap/js/bootstrap.min.js" | relURL }}"></script> -<script src="{{ "plugins/jquery/jquery.easing.min.js" | relURL }}"></script> -<script src="{{ "plugins/jquery/jquery.fittext.js" | relURL }}"></script> -<script src="{{ "plugins/jquery/wow.min.js" | relURL }}"></script> -<script src="{{ "js/theme.js" | relURL }}"></script> +<script src="{{ "plugins/jquery/jquery.js" | absURL }}"></script> +<script src="{{ "plugins/bootstrap/js/bootstrap.min.js" | absURL }}"></script> +<script src="{{ "plugins/jquery/jquery.easing.min.js" | absURL }}"></script> +<script src="{{ "plugins/jquery/jquery.fittext.js" | absURL }}"></script> +<script src="{{ "plugins/jquery/wow.min.js" | absURL }}"></script> +<script src="{{ "js/theme.js" | absURL }}"></script> |