diff --git a/README.md b/README.md index 3fe3038..303ce1a 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ summaryLength = 70 # number of words for article summaries gridView = false # show post list as a grid. goes well with discreteCards highlightBgColor = "#34363b"; # card and circle navigation background color for discrete card mode + enableSearch = true # enable search page + # enable comments support with commento using the script from your server commento = "https://example.com/js/commento.js" diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 0d75361..939dfbf 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -33,7 +33,7 @@ a { color: $fg_color; text-decoration: none; border-bottom: 2px solid $fg_color; - &:hover { + &:hover, &:focus { border-color: $accent_color !important; } } @@ -335,3 +335,27 @@ ul.list { } } } + +.search { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + .nerdlink { + display: inline-block; + cursor: pointer; + } + #searchbar { + @extend a; + width: 100%; + display: inline-block; + background-color: transparent; + border-top: none; + border-left: none; + border-right: none; + padding: 6px 0; + font-family: $main_font; + font-size: 1.3em; + outline: none; + } +} diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..ae3e341 --- /dev/null +++ b/content/search.md @@ -0,0 +1,7 @@ +--- +title: Search +layout: search +outputs: + - "html" + - "json" +--- diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..c746082 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,51 @@ +{{ define "main" }} + +