Switch theme to Doks
This commit is contained in:
		
							
								
								
									
										93
									
								
								config/_default/config.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								config/_default/config.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,93 @@
 | 
			
		||||
baseurl = "/"
 | 
			
		||||
disableAliases = true
 | 
			
		||||
disableHugoGeneratorInject = true
 | 
			
		||||
enableEmoji = true
 | 
			
		||||
enableGitInfo = false
 | 
			
		||||
enableRobotsTXT = true
 | 
			
		||||
languageCode = "en-US"
 | 
			
		||||
paginate = 7
 | 
			
		||||
rssLimit = 10
 | 
			
		||||
 | 
			
		||||
# add redirects/headers
 | 
			
		||||
[outputs]
 | 
			
		||||
home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
 | 
			
		||||
section = ["HTML", "RSS", "SITEMAP"]
 | 
			
		||||
 | 
			
		||||
# remove .{ext} from text/netlify
 | 
			
		||||
[mediaTypes."text/netlify"]
 | 
			
		||||
suffixes = [""]
 | 
			
		||||
delimiter = ""
 | 
			
		||||
 | 
			
		||||
# add output format for netlify _redirects
 | 
			
		||||
[outputFormats.REDIRECTS]
 | 
			
		||||
mediaType = "text/netlify"
 | 
			
		||||
baseName = "_redirects"
 | 
			
		||||
isPlainText = true
 | 
			
		||||
notAlternative = true
 | 
			
		||||
 | 
			
		||||
# add output format for netlify _headers
 | 
			
		||||
[outputFormats.HEADERS]
 | 
			
		||||
mediaType = "text/netlify"
 | 
			
		||||
baseName = "_headers"
 | 
			
		||||
isPlainText = true
 | 
			
		||||
notAlternative = true
 | 
			
		||||
 | 
			
		||||
# add output format for section sitemap.xml
 | 
			
		||||
[outputFormats.SITEMAP]
 | 
			
		||||
mediaType = "application/xml"
 | 
			
		||||
baseName = "sitemap"
 | 
			
		||||
isHTML = false
 | 
			
		||||
isPlainText = true
 | 
			
		||||
noUgly = true
 | 
			
		||||
rel  = "sitemap"
 | 
			
		||||
 | 
			
		||||
[markup]
 | 
			
		||||
  [markup.goldmark]
 | 
			
		||||
    [markup.goldmark.extensions]
 | 
			
		||||
      linkify = false
 | 
			
		||||
    [markup.goldmark.renderer]
 | 
			
		||||
      unsafe = true
 | 
			
		||||
  [markup.highlight]
 | 
			
		||||
    codeFences = true
 | 
			
		||||
    guessSyntax = false
 | 
			
		||||
    hl_Lines = ""
 | 
			
		||||
    lineNoStart = 1
 | 
			
		||||
    lineNos = false
 | 
			
		||||
    lineNumbersInTable = true
 | 
			
		||||
    noClasses = false
 | 
			
		||||
    style = "dracula"
 | 
			
		||||
    tabWidth = 4
 | 
			
		||||
 | 
			
		||||
[sitemap]
 | 
			
		||||
  changefreq = "weekly"
 | 
			
		||||
  filename = "sitemap.xml"
 | 
			
		||||
  priority = 0.5
 | 
			
		||||
 | 
			
		||||
[taxonomies]
 | 
			
		||||
  contributor = "contributors"
 | 
			
		||||
 | 
			
		||||
[permalinks]
 | 
			
		||||
  blog = "/blog/:title/"
 | 
			
		||||
 | 
			
		||||
[module]
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "assets"
 | 
			
		||||
    target = "assets"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "static"
 | 
			
		||||
    target = "static"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "node_modules/lazysizes"
 | 
			
		||||
    target = "assets/js/vendor/lazysizes"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "node_modules/instant.page"
 | 
			
		||||
    target = "assets/js/vendor/instant.page"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "node_modules/lazysizes"
 | 
			
		||||
    target = "assets/js/vendor/lazysizes"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "node_modules/flexsearch"
 | 
			
		||||
    target = "assets/js/vendor/flexsearch"
 | 
			
		||||
  [[module.mounts]]
 | 
			
		||||
    source = "node_modules/clipboard"
 | 
			
		||||
    target = "assets/js/vendor/clipboard"
 | 
			
		||||
							
								
								
									
										33
									
								
								config/_default/menus.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								config/_default/menus.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
[[docs]]
 | 
			
		||||
  name = "Docs"
 | 
			
		||||
  weight = 10
 | 
			
		||||
  identifier = "docs"
 | 
			
		||||
  url = "/docs/"
 | 
			
		||||
 | 
			
		||||
[[main]]
 | 
			
		||||
  name = "Home"
 | 
			
		||||
  url = "/"
 | 
			
		||||
  weight = 10
 | 
			
		||||
 | 
			
		||||
[[main]]
 | 
			
		||||
  name = "Docs"
 | 
			
		||||
  url = "/docs/"
 | 
			
		||||
  weight = 20
 | 
			
		||||
 | 
			
		||||
# [[social]]
 | 
			
		||||
#   name = "Twitter"
 | 
			
		||||
#   pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-twitter\"><path d=\"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z\"></path></svg>"
 | 
			
		||||
#   url = "https://twitter.com/gethyas"
 | 
			
		||||
#   weight = 10
 | 
			
		||||
 | 
			
		||||
[[social]]
 | 
			
		||||
  name = "GitHub"
 | 
			
		||||
  pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-github\"><path d=\"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22\"></path></svg>"
 | 
			
		||||
  url = "https://github.com/h-enk/doks"
 | 
			
		||||
  post = "v0.1.0"
 | 
			
		||||
  weight = 20
 | 
			
		||||
 | 
			
		||||
# [[footer]]
 | 
			
		||||
#   name = "Privacy"
 | 
			
		||||
#   url = "/privacy-policy/"
 | 
			
		||||
#   weight = 10
 | 
			
		||||
							
								
								
									
										47
									
								
								config/_default/params.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								config/_default/params.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,47 @@
 | 
			
		||||
# Meta Data for SEO
 | 
			
		||||
 | 
			
		||||
## Homepage
 | 
			
		||||
title = "Arsen Dev"
 | 
			
		||||
titleSeparator = "|"
 | 
			
		||||
titleAddition = "Home"
 | 
			
		||||
description = "Doks is a Hugo theme helping you build modern docu`tation websites that are secure, fast, and SEO-ready — by default."
 | 
			
		||||
 | 
			
		||||
## Open Graph + Twitter Cards
 | 
			
		||||
images = ["doks.png"]
 | 
			
		||||
twitterSite = "henkverlinde"
 | 
			
		||||
twitterCreator = "henkverlinde"
 | 
			
		||||
facebookAuthor = "verlinde.henk"
 | 
			
		||||
facebookPublisher = "verlinde.henk"
 | 
			
		||||
ogLocale = "en_US"
 | 
			
		||||
 | 
			
		||||
## JSON-LD
 | 
			
		||||
schemaType = "Organization"
 | 
			
		||||
schemaLogo = "logo-doks.png"
 | 
			
		||||
schemaTwitter = "https://twitter.com/henkverlinde"
 | 
			
		||||
schemaLinkedIn = "https://www.linkedin.com/in/henkverlinde/"
 | 
			
		||||
schemaGitHub = "https://github.com/h-enk"
 | 
			
		||||
schemaSection = "blog"
 | 
			
		||||
 | 
			
		||||
## Sitelinks Search Box
 | 
			
		||||
siteLinksSearchBox = false
 | 
			
		||||
 | 
			
		||||
## Chrome Browser
 | 
			
		||||
themeColor = "#fff"
 | 
			
		||||
 | 
			
		||||
# Images
 | 
			
		||||
quality = 85
 | 
			
		||||
bgColor = "#fff"
 | 
			
		||||
landscapePhotoWidths = [900, 800, 700, 600, 500]
 | 
			
		||||
portraitPhotoWidths = [800, 700, 600, 500]
 | 
			
		||||
lqipWidth = "20x"
 | 
			
		||||
 | 
			
		||||
# Footer
 | 
			
		||||
footer = "Copyright © 2021 Arsen Musayelyan"
 | 
			
		||||
 | 
			
		||||
# Alert
 | 
			
		||||
alert = false
 | 
			
		||||
alertText = ""
 | 
			
		||||
 | 
			
		||||
# Edit Page
 | 
			
		||||
docsRepo = "https://github.com/h-enk/doks"
 | 
			
		||||
editPage = false
 | 
			
		||||
							
								
								
									
										23
									
								
								config/postcss.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								config/postcss.config.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
const autoprefixer = require('autoprefixer');
 | 
			
		||||
const purgecss = require('@fullhuman/postcss-purgecss');
 | 
			
		||||
const whitelister = require('purgecss-whitelister');
 | 
			
		||||
 | 
			
		||||
module.exports = {
 | 
			
		||||
  plugins: [
 | 
			
		||||
    autoprefixer(),
 | 
			
		||||
    purgecss({
 | 
			
		||||
      content: [
 | 
			
		||||
        './layouts/**/*.html',
 | 
			
		||||
        './content/**/*.md',      
 | 
			
		||||
      ],
 | 
			
		||||
      safelist: [
 | 
			
		||||
        'lazyloaded',
 | 
			
		||||
        ...whitelister([
 | 
			
		||||
          './assets/scss/components/_code.scss',
 | 
			
		||||
          './assets/scss/components/_search.scss',
 | 
			
		||||
          './assets/scss/common/_dark.scss',
 | 
			
		||||
        ]),
 | 
			
		||||
      ],
 | 
			
		||||
    }),
 | 
			
		||||
  ],
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										0
									
								
								config/production/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/production/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								config/staging/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/staging/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user