summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sass/main.scss33
-rw-r--r--exampleSite/config.toml8
-rw-r--r--layouts/_default/_markup/render-heading.html1
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/single.html36
-rw-r--r--layouts/partials/sns-links.html2
6 files changed, 40 insertions, 44 deletions
diff --git a/assets/sass/main.scss b/assets/sass/main.scss
index f5df763..9eff6c8 100644
--- a/assets/sass/main.scss
+++ b/assets/sass/main.scss
@@ -4,7 +4,6 @@
@import "_side-catalog.scss";
@import "_search.scss";
-
// Global Components
body {
@@ -272,6 +271,38 @@ samp {
position: absolute;
text-decoration: none !important;
}
+
+ .anchorjs-link {
+ font-family: serif;
+ font-style: normal;
+ font-variant: normal;
+ font-weight: normal;
+ padding-left: 0.375em;
+ font-size: 0.9em;
+ margin-top: 0.1em;
+ opacity: 0;
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ /* Support for Firefox. */
+ -moz-osx-font-smoothing: grayscale;
+ /* Support for IE. */
+ font-feature-settings: "liga";
+
+ &:hover,
+ &:focus {
+ opacity: 1;
+ }
+ &:after {
+ content: "ΒΆ";
+ }
+ }
+
+ @media all and (min-width: 800px) {
+ .anchorjs-link {
+ position: absolute;
+ left: -0.75em;
+ }
+ }
}
// Navigation
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 854629b..dfb70aa 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -20,7 +20,7 @@ disqusShortname = ""
googleAnalytics = ""
[outputs]
-home = ["HTML", "JSON"]
+home = ["HTML", "JSON", "RSS"]
[taxonomies]
category = "categories"
@@ -59,12 +59,6 @@ identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 20
-[[menu.main]]
-identifier = "categories"
-name = "Categories"
-url = "/categories/"
-weight = 30
-
[params]
author = "Puppet"
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..ba737db
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1 @@
+<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}<a class="anchorjs-link" href="#{{ .Anchor | safeURL }}"></a></h{{ .Level }}> \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 2711fee..3b18f33 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -49,6 +49,10 @@
{{ end }}
{{ end }}
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
</head>
<!-- hack iOS CSS :active style -->
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c199a65..54f3e8b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,7 +10,7 @@
col-lg-8 col-lg-offset-2
col-md-10 col-md-offset-1
post-container">
-
+ {{ .TableOfContents }}
{{ .Content }}
<hr style="visibility: hidden;" />
@@ -73,38 +73,4 @@
</div>
</article>
-<!-- async load function -->
-<script>
- function async(u, c) {
- var d = document, t = 'script',
- o = d.createElement(t),
- s = d.getElementsByTagName(t)[0];
- o.src = u;
- if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
- s.parentNode.insertBefore(o, s);
- }
-</script>
-<!-- anchor-js, Doc:http://bryanbraun.github.io/anchorjs/ -->
-<script>
- async("//cdnjs.cloudflare.com/ajax/libs/anchor-js/1.1.1/anchor.min.js", function () {
- anchors.options = {
- visible: 'hover',
- placement: 'right',
- // icon: '#'
- };
- anchors.add().remove('.intro-header h1').remove('.subheading').remove('.sidebar-container h5');
- })
-</script>
-<style>
- /* place left on bigger screen */
- @media all and (min-width: 800px) {
- .anchorjs-link {
- position: absolute;
- left: -0.75em;
- font-size: 1.1em;
- margin-top: -0.1em;
- }
- }
-</style>
-
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/sns-links.html b/layouts/partials/sns-links.html
index 0e8383f..73746cd 100644
--- a/layouts/partials/sns-links.html
+++ b/layouts/partials/sns-links.html
@@ -7,7 +7,7 @@
{{ end}}
{{ with $social.rss_enable }}
<li>
- <a href="/feed.xml">
+ <a href="/index.xml">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>