Skip to content

Commit

Permalink
feat(shortcodes): add header filename to block codes
Browse files Browse the repository at this point in the history
the user is be able to add a header with for a block code
  • Loading branch information
zapatran committed Apr 11, 2019
1 parent 9967de3 commit a52bf45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exampleSite/content/english/post/creating-a-new-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ image = "/images/floppy.png"

### **Introduction**

{{< filename "note.js" />}}
```javascript
var a = 'string';
```
This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme.

We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.
Expand Down
2 changes: 2 additions & 0 deletions layouts/shortcodes/filename.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div class="filename">{{ .Get 0 }}</div>
{{ .Inner }}

0 comments on commit a52bf45

Please sign in to comment.