Skip to content
Permalink
Browse files

Supporting header links

  • Loading branch information...
Depado committed Aug 26, 2019
1 parent 78950e3 commit ffe26f635cafce9f781237534ac460fd1f460470
Showing with 82 additions and 42 deletions.
  1. +1 −1 assets/style.min.css
  2. +1 −1 assets/style.min.css.map
  3. +20 −3 css/style.scss
  4. +4 −4 go.mod
  5. +19 −8 go.sum
  6. +16 −16 models/renderer.go
  7. +21 −9 templates/post.tmpl

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

@@ -1,4 +1,4 @@
@import 'admonition';
@import "admonition";

$color-blue: #1565c0;
$color-grey: #4d4d4d;
@@ -71,6 +71,23 @@ a {
text-decoration: none;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
a.anchor {
display: none;
font-weight: 700;
text-decoration: none;
color: grey;
&:hover {
text-decoration: none;
color: $color-dark-grey;
}
}
}
}

h1 {
@@ -213,7 +230,7 @@ code {
border-radius: 16px;
border: solid grey 1px;
color: grey;
&:hover{
&:hover {
background-color: grey;
color: white;
}
@@ -274,7 +291,7 @@ span.draft {
margin-bottom: 2rem;
p {
margin: 0;
&.date {
&.date {
color: grey;
font-size: 0.85rem;
}
8 go.mod
@@ -3,9 +3,9 @@ module github.com/Depado/smallblog
go 1.12

require (
github.com/Depado/bfadmonition v0.1.0
github.com/Depado/bfchroma v1.1.2
github.com/alecthomas/chroma v0.6.3
github.com/Depado/bfplus v0.1.0
github.com/alecthomas/chroma v0.6.6
github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.4.0
github.com/gorilla/feeds v1.1.1
@@ -24,7 +24,7 @@ require (
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.4.0
github.com/stvp/slug v0.0.0-20150928221549-5ab8191bb1fe
github.com/ugorji/go v1.1.5-pre // indirect
github.com/ugorji/go/codec v1.1.5-pre // indirect
golang.org/x/net v0.0.0-20190611141213-3f473d35a33a // indirect
golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae // indirect
golang.org/x/text v0.3.2 // indirect

0 comments on commit ffe26f6

Please sign in to comment.
You can’t perform that action at this time.