mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Feature/talks (#12)
* Add talks layout - Add archetype for talks page. - Add shortcodes for section, slide. - Add single layout. Resolves: #11 * Update readme with talks
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
9328ab63c8
commit
bfe0272bd7
@@ -49,8 +49,12 @@ theme = "coder" # set the theme
|
||||
weight = 1
|
||||
url = "/posts/"
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
name = "Talks"
|
||||
weight = 2
|
||||
url = "/talks/"
|
||||
[[menu.main]]
|
||||
name = "About"
|
||||
weight = 3
|
||||
url = "/about/"
|
||||
```
|
||||
|
||||
|
||||
11
archetypes/talks.md
Normal file
11
archetypes/talks.md
Normal file
@@ -0,0 +1,11 @@
|
||||
+++
|
||||
draft = true
|
||||
date = {{ .Date }}
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
tags = []
|
||||
categories = []
|
||||
+++
|
||||
|
||||
{{% section %}}
|
||||
|
||||
{{% /section %}}
|
||||
3
layouts/shortcodes/section.html
Normal file
3
layouts/shortcodes/section.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="section">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
3
layouts/shortcodes/slide.html
Normal file
3
layouts/shortcodes/slide.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="slide">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
50
layouts/talks/single.html
Normal file
50
layouts/talks/single.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
|
||||
|
||||
<base href="{{ .Site.BaseURL }}">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://rawgithub.com/alvarotrigo/fullPage.js/master/jquery.fullPage.css" />
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="https://rawgithub.com/alvarotrigo/fullPage.js/master/jquery.fullPage.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#fullpage').fullpage();
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700">
|
||||
<link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css">
|
||||
<link rel="stylesheet" href="{{ "css/style.min.css" | absURL }}">
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
||||
|
||||
{{ if .RSSLink }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ .Hugo.Generator }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section class="container page">
|
||||
<div id="fullpage">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user