diff --git a/main.go b/main.go new file mode 100644 index 0000000..573fe26 --- /dev/null +++ b/main.go @@ -0,0 +1,39 @@ +package main + +import ( + "flag" + "fmt" + "io/ioutil" + "log" + "path/filepath" + "regexp" +) + +func main() { + dir := flag.String("dir", "", "directory.") + flag.Parse() + files, err := ioutil.ReadDir(*dir) + if err != nil { + log.Fatal(err) + } + articles := make([]string, 0) + for _, i := range files { + abs, err := filepath.Abs(filepath.Join(*dir, i.Name())) + if err != nil { + log.Fatal(err) + } + articles = append(articles, abs) + } + for _, a := range articles { + go func(a string) { + data, err := ioutil.ReadFile(a) + if err != nil { + log.Fatal(err) + } + reIframe := regexp.MustCompile(`(?U)()`) + for _, m := range reIframe.FindAllStringSubmatch(string(data), -1) { + fmt.Print(m) + } + }(a) + } +} diff --git a/themes/xsfx/layouts/partials/header.html b/themes/xsfx/layouts/partials/header.html index 6269d53..2c05790 100644 --- a/themes/xsfx/layouts/partials/header.html +++ b/themes/xsfx/layouts/partials/header.html @@ -1,3 +1,3 @@
- +
diff --git a/themes/xsfx/static/css/xsfx.css b/themes/xsfx/static/css/xsfx.css index d04def3..a2501f7 100644 --- a/themes/xsfx/static/css/xsfx.css +++ b/themes/xsfx/static/css/xsfx.css @@ -87,7 +87,6 @@ a:hover { h1#logo, h1#logo a:link { font-size: 5rem; - text-decoration: line-through; text-shadow: 4px 4px #848484; } @@ -175,3 +174,10 @@ figcaption { iframe { padding-bottom: 5px; } + +header .upsidedown { + transform: rotate(-180deg); + -webkit-transform: rotate(-180deg); + -moz-transform: rotate(-180deg); + display: inline-block; +}