diff options
| author | Zhong Jianxin | 2016-05-12 03:30:17 +0000 |
|---|---|---|
| committer | Zhong Jianxin | 2016-05-24 06:04:37 +0000 |
| commit | 7735e5d57c3a2e1f3e73ffa7058dfeb55c1df155 (patch) | |
| tree | 05bbca7860e4f411681bae0197c03354a8161018 | |
| parent | 618137a673e063cecec993e4f1c6e9952fd1f08e (diff) | |
| download | web-7735e5d57c3a2e1f3e73ffa7058dfeb55c1df155.tar.gz | |
Add site.prefix config
| -rw-r--r-- | _config.yml | 2 | ||||
| -rw-r--r-- | _layouts/default.html | 22 |
2 files changed, 13 insertions, 11 deletions
diff --git a/_config.yml b/_config.yml index 117a7e9..9d9185e 100644 --- a/_config.yml +++ b/_config.yml @@ -4,6 +4,8 @@ title: 'Welcome to the LEDE project' exclude: [ 'Gemfile', 'Gemfile.lock', 'Rakefile', 'README' ] +prefix: '/' + asciidoctor: attributes: - idseparator=_ diff --git a/_layouts/default.html b/_layouts/default.html index 2ce1039..a5d4f19 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,12 +14,12 @@ <meta name="author" content="Your name goes here"/> <meta name="copyright" content="Maybe consider a Creative Commons license"/> - <link rel="stylesheet" href="{{page.root}}css/foundation.css"/> - <link rel="stylesheet" href="{{page.root}}css/font-awesome.css"/> - <link rel="stylesheet" href="{{page.root}}css/coderay.css"/> - <link rel="stylesheet" href="{{page.root}}css/asciidoctor.css"/> - <script src="{{page.root}}js/vendor/modernizr.js"></script> - <script src="{{page.root}}js/toc.js"></script> + <link rel="stylesheet" href="{{site.prefix}}css/foundation.css"/> + <link rel="stylesheet" href="{{site.prefix}}css/font-awesome.css"/> + <link rel="stylesheet" href="{{site.prefix}}css/coderay.css"/> + <link rel="stylesheet" href="{{site.prefix}}css/asciidoctor.css"/> + <script src="{{site.prefix}}js/vendor/modernizr.js"></script> + <script src="{{site.prefix}}js/toc.js"></script> </head> <body> @@ -31,7 +31,7 @@ <!-- Title Area --> <li class="name"> <h1> - <a href="{{page.root}}"> + <a href="{{site.prefix}}"> {{page.title}} </a> </h1> @@ -94,13 +94,13 @@ </div> </footer> -<script src="{{page.root}}js/vendor/jquery.js"></script> -<script src="{{page.root}}js/foundation.min.js"></script> +<script src="{{site.prefix}}js/vendor/jquery.js"></script> +<script src="{{site.prefix}}js/foundation.min.js"></script> <script> $(document).foundation(); </script> -<script src="{{page.root}}js/vendor/jquery.js"></script> -<script src="{{page.root}}js/foundation/foundation.js"></script> +<script src="{{site.prefix}}js/vendor/jquery.js"></script> +<script src="{{site.prefix}}js/foundation/foundation.js"></script> <script> $(document).foundation(); |