mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 14:54:41 -04:00
Add terms template
This commit is contained in:
parent
63c7924929
commit
66bd832db7
@ -5,7 +5,7 @@ description:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
lastmod: 2017-02-01
|
||||
tags: [EOF, end of file, error, faqs]
|
||||
tags: [eof, end of file, error, faqs]
|
||||
categories: [troubleshooting]
|
||||
weight:
|
||||
draft: false
|
||||
|
@ -1,5 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<main class="main">
|
||||
|
||||
<header class="content-header">
|
||||
<h1 class="page-title"><i class="icon-{{.Data.Plural}}"></i> {{.Data.Plural}}</h1>
|
||||
</header>
|
||||
<div class="body-copy taxonomies">
|
||||
{{ $data := .Data }}
|
||||
{{ $base := $.Site.BaseURL }}
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||
<div>
|
||||
<a href="{{ $base }}/{{ $data.Plural }}/{{ $value.Name | urlize }}" class="taxonomy-term">{{ $value.Name }} {{ $value.Count }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
@ -36,6 +36,6 @@ docsearch({
|
||||
apiKey: '41fdb7fafd9b009498ef9ab6d3fb1886',
|
||||
indexName: 'hugodocsconcept',
|
||||
inputSelector: '#search-input',
|
||||
debug: true // Set debug to true if you want to inspect the dropdown
|
||||
debug: false // Set debug to true if you want to inspect the dropdown
|
||||
});
|
||||
</script>
|
||||
|
@ -9,7 +9,4 @@ $('#all-content-wrapper').on('click', function() {
|
||||
if ($('.site-navigation.navigation-open')) {
|
||||
$('.site-navigation.navigation-open,.all-content-wrapper.navigation-open,#navigation-toggle,#site-footer').removeClass('navigation-open');
|
||||
}
|
||||
// if ($('#toggle-toc.toc-open')) {
|
||||
// $('#toggle-toc.toc-open').removeClass('toc-open');
|
||||
// }
|
||||
});
|
||||
|
@ -5,5 +5,5 @@ $('#toggle-search').on('click', function(evt) {
|
||||
window.setTimeout(function() {
|
||||
var sInput = document.getElementById('search-input');
|
||||
sInput.focus();
|
||||
},400);
|
||||
},800);
|
||||
});
|
||||
|
@ -18,9 +18,11 @@ h1.page-title {
|
||||
font-size: 2.25em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
// a {
|
||||
// font-size:14px;
|
||||
// }
|
||||
a {
|
||||
i[class^="icon-"] {
|
||||
margin-left:-.15em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h2,
|
||||
|
@ -2,11 +2,14 @@
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: .5em;
|
||||
right: .5em;
|
||||
right: .3em;
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
font-size: 1.2em;
|
||||
z-index: 60;
|
||||
@include MQ(L){
|
||||
top:.3em;
|
||||
}
|
||||
}
|
||||
|
||||
form#site-search-form {
|
||||
|
@ -3,7 +3,7 @@
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
color: $base-font-color;
|
||||
margin-bottom:1em;
|
||||
margin-bottom: 1em;
|
||||
&:before,
|
||||
&:after,
|
||||
&:hover {
|
||||
@ -13,10 +13,16 @@
|
||||
}
|
||||
h2 {
|
||||
padding-bottom: 2px;
|
||||
border-bottom:2px solid $base-font-color;
|
||||
border-bottom: 2px solid $base-font-color;
|
||||
}
|
||||
p {
|
||||
margin-bottom:0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
.taxonomy-term {
|
||||
font-size: 1.3em;
|
||||
display: inline-block;
|
||||
width:auto;
|
||||
clear:both;
|
||||
}
|
||||
}
|
||||
|
2
themes/hugodocs/static/css/style.min.css
vendored
2
themes/hugodocs/static/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
2
themes/hugodocs/static/js/script.min.js
vendored
2
themes/hugodocs/static/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user