diff options
author | Dan Hersam <dan@hersam.com> | 2015-07-24 19:34:26 +0300 |
---|---|---|
committer | Dan Hersam <dan@hersam.com> | 2015-07-24 19:34:26 +0300 |
commit | ad1be327ace6bbc8b4e8af1026f9c04244c3c9ae (patch) | |
tree | 3e502dfde0c398bd829af1c8981118305a78fbc9 | |
parent | 499670f6fe999b072d402da0d8cbf58a33dca5de (diff) | |
parent | cb47c1cd1c95fcba772e3bd40799c47fd8688457 (diff) |
Merge pull request #2 from bep/fix-hugo-deprecations
Fix deprecated Hugo-vars and functions
-rw-r--r-- | layouts/partials/categories.html | 2 | ||||
-rw-r--r-- | layouts/partials/content.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 20 | ||||
-rw-r--r-- | theme.toml | 1 |
5 files changed, 14 insertions, 13 deletions
diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html index e0c4447..0e53f79 100644 --- a/layouts/partials/categories.html +++ b/layouts/partials/categories.html @@ -3,7 +3,7 @@ <h1 class="widget-title">Categories</h1> <ul> - {{ $baseurl := .Site.BaseUrl }} + {{ $baseurl := .Site.BaseURL }} {{ range $key, $value := .Site.Taxonomies.categories }} <li class="cat-item"> diff --git a/layouts/partials/content.html b/layouts/partials/content.html index c48df40..3f149e0 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -3,7 +3,7 @@ <!-- .entry-header --> <header class="entry-header"> - {{ $baseurl := .Site.BaseUrl }} + {{ $baseurl := .Site.BaseURL }} <div class="entry-meta"> <span class="cat-links"> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a7195e8..3a6c08c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -8,6 +8,6 @@ </footer><!-- #colophon --> </div><!-- #page --> - <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/functions.js'></script> + <script type='text/javascript' src='{{ .Site.BaseURL }}/js/functions.js'></script> </body> </html>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index eb45adb..19710b1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,21 +6,21 @@ <meta name="viewport" content="width=device-width"> <title>{{ if .IsPage }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title> <link rel="profile" href="http://gmpg.org/xfn/11"> - {{ "<!--[if lt IE 9]>" | safeHtml }} - <script src="{{ .Site.BaseUrl }}/js/html5.js"></script> - {{ "<![endif]-->" | safeHtml }} + {{ "<!--[if lt IE 9]>" | safeHTML }} + <script src="{{ .Site.BaseURL }}/js/html5.js"></script> + {{ "<![endif]-->" | safeHTML }} - <link href="{{ .Site.BaseUrl }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link rel='stylesheet' id='twentyfourteen-lato-css' href='//fonts.googleapis.com/css?family=Lato%3A300%2C400%2C700%2C900%2C300italic%2C400italic%2C700italic&subset=latin%2Clatin-ext' type='text/css' media='all' /> - <link rel='stylesheet' id='genericons-css' href='{{ .Site.BaseUrl }}/genericons/genericons.css' type='text/css' media='all' /> - <link rel='stylesheet' id='twentyfourteen-style-css' href='{{ .Site.BaseUrl }}/css/style.css' type='text/css' media='all' /> + <link rel='stylesheet' id='genericons-css' href='{{ .Site.BaseURL }}/genericons/genericons.css' type='text/css' media='all' /> + <link rel='stylesheet' id='twentyfourteen-style-css' href='{{ .Site.BaseURL }}/css/style.css' type='text/css' media='all' /> <!--[if lt IE 9]> <link rel='stylesheet' id='twentyfourteen-ie-css' href='/css/ie.css' type='text/css' media='all' /> <![endif]--> - <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/jquery/jquery.js'></script> - <script type='text/javascript' src='{{ .Site.BaseUrl }}/js/jquery/jquery-migrate.min.js'></script> + <script type='text/javascript' src='{{ .Site.BaseURL }}/js/jquery/jquery.js'></script> + <script type='text/javascript' src='{{ .Site.BaseURL }}/js/jquery/jquery-migrate.min.js'></script> <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> </head> @@ -28,7 +28,7 @@ <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <div class="header-main"> - <h1 class="site-title"><a href="{{ .Site.BaseUrl }}/index.html" rel="home">{{ .Site.Title }}</a></h1> + <h1 class="site-title"><a href="{{ .Site.BaseURL }}/index.html" rel="home">{{ .Site.Title }}</a></h1> <div class="search-toggle"> <a href="#search-container" class="screen-reader-text">Search</a> @@ -41,7 +41,7 @@ <ul> {{ range .Site.Menus.main }} <li class="page_item"> - <a href="{{ .Url }}index.html">{{ .Name }}</a> + <a href="{{ .URL }}index.html">{{ .Name }}</a> </li> {{ end }} </ul> @@ -4,6 +4,7 @@ licenselink = "http://www.gnu.org/licenses/gpl-2.0.html" description = "A responsive magazine website with a sleek, modern design." tags = ["blog", "wordpress"] features = ["blog", ] +min_version = 0.14 [author] name = "Dan Hersam" |