Update code block

This commit is contained in:
Ryan Watters
2017-02-09 00:43:13 -06:00
parent 2e677d5a7a
commit 872a67a8fc
14 changed files with 43 additions and 19 deletions
@@ -89,6 +89,7 @@ $('my-div').on('click',function(evt){
### Markdown Code Block without Shortcode
```javascript
function myFunction(val){
console.log(val);
@@ -5,6 +5,7 @@ description:
date: 2016-02-01
publishdate: 2016-02-01
lastmod: 2016-02-01
tags: [ssg,static site generator]
weight: 20
draft: false
slug:
+2
View File
@@ -16,5 +16,7 @@ notes:
## New Projects
## Hugo Directory Structure
+12 -5
View File
@@ -66,7 +66,6 @@ params:
The following is an example of a TOML configuration file. The values under `[params]` will populate the `.Site.Params` variable for use in [templates][]:
{{% input "config.toml" %}}
```toml
contentDir = "content"
layoutDir = "layouts"
@@ -83,9 +82,8 @@ canonifyURLs = true
description = "Tesla's Awesome Hugo Site"
author = "Nikola Tesla"
```
{{% /input %}}
## Complete List of Configuration Variables
## Complete List of Configuration Variables - YAML
The following is a list of Hugo-defined variables. The values assigned to each of the variables represents the default value used by Hugo if you not specifically change the value in your configuration.
@@ -148,15 +146,17 @@ layoutDir: "layouts"
log: false
# Log File path (if set, logging enabled automatically)
logFile: ""
# "yaml", "toml", "json"
# "toml","yaml", or "json"
metaDataFormat: "toml"
newContentEditor: ""
# Don't sync permission mode of files
noChmod: false
# Don't sync modification time of files
noTimes: false
# Pagination
paginate: 10
paginatePath: "page"
# See "content-management/permalinks"
permalinks:
# Pluralize titles in lists using inflect
pluralizeListTitles: true
@@ -189,6 +189,9 @@ verbose: false
verboseLog: false
# watch filesystem for changes and recreate as needed
watch: true
taxonomies:
- category: "categories"
- tag: "tags"
---
```
{{% /input %}}
@@ -206,8 +209,12 @@ The above is a list of regular expressions. Note that the backslash (`\`) charac
## See Also
* [TOML Spec][]
* [YAML Spec][]
* [JSON Spec][]
[`.Site.Params`]: /variables-and-params/
[directory structure]: /project-organization/directory-structure
[JSON Spec]: /documents/ecma-404-json-spec.pdf
[templates]: /templates
[TOML Spec]: https://github.com/toml-lang/toml
[directory structure]: /project-organization/directory-structure
[YAML Spec]: http://yaml.org/spec/
@@ -0,0 +1 @@
$('.body-copy a[href$=".pdf"]').append('<i class="icon-pdf"></i>');
@@ -288,7 +288,7 @@ hljs.registerLanguage("css", function(e) {
return { cI: !0, i: /[=\/|'\$]/, c: [e.CBCM, { cN: "selector-id", b: /#[A-Za-z0-9_-]+/ }, { cN: "selector-class", b: /\.[A-Za-z0-9_-]+/ }, { cN: "selector-attr", b: /\[/, e: /\]/, i: "$" }, { cN: "selector-pseudo", b: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ }, { b: "@(font-face|page)", l: "[a-z-]+", k: "font-face page" }, { b: "@", e: "[{;]", i: /:/, c: [{ cN: "keyword", b: /\w+/ }, { b: /\s/, eW: !0, eE: !0, r: 0, c: [e.ASM, e.QSM, e.CSSNM] }] }, { cN: "selector-tag", b: c, r: 0 }, { b: "{", e: "}", i: /\S/, c: [e.CBCM, t] }] }
});
hljs.registerLanguage("go", function(e) {
var t = { keyword: "break default func interface select case map struct chan else goto package switch const fallthrough if range end type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune", literal: "true false iota nil", built_in: "append cap close complex copy imag len make new panic print println real recover delete" };
var t = { keyword: "break default func interface select case map struct chan else goto package switch const fallthrough if range end type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune", literal: "true false iota nil Pages", built_in: "append cap close complex copy imag len make new panic print println real recover delete Site Data" };
return { aliases: ["golang"], k: t, i: "</", c: [e.CLCM, e.CBCM, { cN: "string", v: [e.QSM, { b: "'", e: "[^\\\\]'" }, { b: "`", e: "`" }] }, { cN: "number", v: [{ b: e.CNR + "[dflsi]", r: 1 }, e.CNM] }, { b: /:=/ }, { cN: "function", bK: "func", e: /\s*\{/, eE: !0, c: [e.TM, { cN: "params", b: /\(/, e: /\)/, k: t, i: /["']/ }] }] }
});
hljs.registerLanguage("asciidoc", function(e) {
@@ -13,6 +13,7 @@ h4 {
h1 {
font-size: 2em;
letter-spacing: -.021em;
padding-top:1em;
@include MQ(M) {
font-size: 2.25em;
}
@@ -17,14 +17,14 @@ a {
transition: color 0.3s ease;
perspective: 1800px;
&:hover {
color:$hugo-white;
color: $hugo-white;
}
&::before,
&::after {
position: absolute;
top: 0;
left: -4px;
padding: 0 4px;
left: -2px;
padding: 0 2px;
z-index: -1;
box-sizing: content-box;
width: 100%;
@@ -46,4 +46,16 @@ a {
border-bottom: 1px solid $default-anchor-color;
}
}
}
&a[href$=".pdf"]::after {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-left: .2em;
text-align: center;
content: '\f1c1';
}
}
@@ -5,12 +5,11 @@ pre {
margin:0px;
}
.body-copy > pre[class*="language-"],
.body-copy > code[class*="language-"] {
.body-copy > pre {
@include card(3);
text-shadow: none;
padding: 1em;
margin: .5em 0px 1.5em 0px;
padding: 0px;
margin: .5em 0px 32px 0px;
overflow: auto;
}
@@ -1,4 +1,3 @@
svg.svg-icon {
max-width: 60px;
}
@@ -7,6 +7,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
overflow-x: auto;
padding: 0.5em;
background: $code-block-background-color;
font-size:.9em;
}
.hljs,
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long