Add terms template

This commit is contained in:
Ryan Watters 2017-02-14 21:47:51 -08:00
parent 63c7924929
commit 66bd832db7
10 changed files with 35 additions and 16 deletions

View File

@ -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

View File

@ -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 }}

View File

@ -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>

View File

@ -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');
// }
});

View File

@ -5,5 +5,5 @@ $('#toggle-search').on('click', function(evt) {
window.setTimeout(function() {
var sInput = document.getElementById('search-input');
sInput.focus();
},400);
},800);
});

View File

@ -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,

View File

@ -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 {

View File

@ -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;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long