mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-04 07:40:09 +05:30
for production
This commit is contained in:
+3
-3
@@ -9,15 +9,15 @@
|
|||||||
<link rel="stylesheet" href="/website/foo-style.min.css">
|
<link rel="stylesheet" href="/website/foo-style.min.css">
|
||||||
|
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
<script src="/website/redirect.js"></script>
|
<script src="/redirect.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
||||||
<script src="/website/app.js"></script>
|
<script src="/app.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
<script src="/website/prism.js"></script>
|
<script src="/prism.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var app = Elm.Main.init({ node: document.getElementById("app") });
|
var app = Elm.Main.init({ node: document.getElementById("app") });
|
||||||
|
|||||||
@@ -4740,7 +4740,7 @@ body {
|
|||||||
--text-primary: #fff;
|
--text-primary: #fff;
|
||||||
--text-secondary: #cdcdcd;
|
--text-secondary: #cdcdcd;
|
||||||
--text-inactive: #cdcdcda6;
|
--text-inactive: #cdcdcda6;
|
||||||
--text-link: #8cb4ff;
|
--text-link: #35bdb8;
|
||||||
--text-invert: #1b1b1b;
|
--text-invert: #1b1b1b;
|
||||||
--background-primary: #1b1b1b;
|
--background-primary: #1b1b1b;
|
||||||
--background-secondary: #343434;
|
--background-secondary: #343434;
|
||||||
@@ -4839,7 +4839,7 @@ body {
|
|||||||
color-scheme: dark
|
color-scheme: dark
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(prefers-color-scheme:light) {
|
/* @media(prefers-color-scheme:light) {
|
||||||
:root:not(.light):not(.dark) {
|
:root:not(.light):not(.dark) {
|
||||||
--text-primary: #1b1b1b;
|
--text-primary: #1b1b1b;
|
||||||
--text-secondary: #4e4e4e;
|
--text-secondary: #4e4e4e;
|
||||||
@@ -4942,9 +4942,9 @@ body {
|
|||||||
--text-primary-yellow: #746a00;
|
--text-primary-yellow: #746a00;
|
||||||
color-scheme: light
|
color-scheme: light
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
||||||
@media(prefers-color-scheme:dark) {
|
/* @media(prefers-color-scheme:dark) {
|
||||||
:root:not(.light):not(.dark) {
|
:root:not(.light):not(.dark) {
|
||||||
--text-primary: #fff;
|
--text-primary: #fff;
|
||||||
--text-secondary: #cdcdcd;
|
--text-secondary: #cdcdcd;
|
||||||
@@ -5047,7 +5047,7 @@ body {
|
|||||||
--text-primary-yellow: #c7b700;
|
--text-primary-yellow: #c7b700;
|
||||||
color-scheme: dark
|
color-scheme: dark
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
||||||
.document-page .article-actions-container,
|
.document-page .article-actions-container,
|
||||||
.document-page .document-toc-container,
|
.document-page .document-toc-container,
|
||||||
|
|||||||
+7
-5
@@ -1,9 +1,6 @@
|
|||||||
module Base exposing (urlPrefix, contentUrlPrefix)
|
module Base exposing (contentUrlPrefix, urlPrefix, websiteBase)
|
||||||
|
|
||||||
{-| The base URL for accessing the content for the site
|
{-| The base URL for accessing the content for the site
|
||||||
|
|
||||||
Using Github CDN for now, but this could be changed to a custom domain
|
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
|
|
||||||
@@ -21,9 +18,14 @@ user =
|
|||||||
|
|
||||||
urlPrefix : String
|
urlPrefix : String
|
||||||
urlPrefix =
|
urlPrefix =
|
||||||
"website"
|
"avinal.github.io"
|
||||||
|
|
||||||
|
|
||||||
contentUrlPrefix : String
|
contentUrlPrefix : String
|
||||||
contentUrlPrefix =
|
contentUrlPrefix =
|
||||||
contentBase ++ "/" ++ user ++ "/" ++ urlPrefix ++ "/main/content/"
|
contentBase ++ "/" ++ user ++ "/" ++ urlPrefix ++ "/main/content/"
|
||||||
|
|
||||||
|
|
||||||
|
websiteBase : String
|
||||||
|
websiteBase =
|
||||||
|
"https://avinal.space"
|
||||||
|
|||||||
+9
-9
@@ -1,6 +1,6 @@
|
|||||||
module Main exposing (main)
|
module Main exposing (main)
|
||||||
|
|
||||||
import Base exposing (urlPrefix)
|
import Base exposing (websiteBase)
|
||||||
import Blog as Blog
|
import Blog as Blog
|
||||||
import Browser exposing (Document)
|
import Browser exposing (Document)
|
||||||
import Browser.Navigation as Nav
|
import Browser.Navigation as Nav
|
||||||
@@ -109,7 +109,7 @@ viewHeader page =
|
|||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
header [ class "foo-logo" ]
|
header [ class "foo-logo" ]
|
||||||
[ img [ src "/website/logo-static.svg", target urlPrefix ]
|
[ img [ src "/website/logo-static.svg", target websiteBase ]
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
@@ -128,7 +128,7 @@ viewFooter page =
|
|||||||
footer [ class "foo-footer" ]
|
footer [ class "foo-footer" ]
|
||||||
[ ul []
|
[ ul []
|
||||||
[ li []
|
[ li []
|
||||||
[ a [ href urlPrefix ] [ text "Home" ]
|
[ a [ href websiteBase ] [ text "Home" ]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -241,11 +241,12 @@ parser : Parser (Route -> a) a
|
|||||||
parser =
|
parser =
|
||||||
Parser.oneOf
|
Parser.oneOf
|
||||||
[ Parser.map Splash Parser.top
|
[ Parser.map Splash Parser.top
|
||||||
, Parser.map Splash (s urlPrefix)
|
|
||||||
, Parser.map Blog (s urlPrefix </> s "posts")
|
-- , Parser.map Splash (s urlPrefix)
|
||||||
, Parser.map BlogPost (s urlPrefix </> s "posts" </> Parser.string </> Parser.string </> Parser.fragment identity)
|
, Parser.map Blog (s "posts")
|
||||||
, Parser.map Static (s urlPrefix </> s "pages")
|
, Parser.map BlogPost (s "posts" </> Parser.string </> Parser.string </> Parser.fragment identity)
|
||||||
, Parser.map Terminal (s urlPrefix </> s "terminal")
|
, Parser.map Static (s "pages")
|
||||||
|
, Parser.map Terminal (s "terminal")
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -289,7 +290,6 @@ subscriptions model =
|
|||||||
-- BlogPage blogModel ->
|
-- BlogPage blogModel ->
|
||||||
-- Blog.subscriptions blogModel
|
-- Blog.subscriptions blogModel
|
||||||
-- |> Sub.map GotBlogMsg
|
-- |> Sub.map GotBlogMsg
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
Sub.none
|
Sub.none
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user