pages-themes / midnight Goto Github PK
View Code? Open in Web Editor NEWMidnight is a Jekyll theme for GitHub Pages
Home Page: https://pages-themes.github.io/midnight/
License: Creative Commons Zero v1.0 Universal
Midnight is a Jekyll theme for GitHub Pages
Home Page: https://pages-themes.github.io/midnight/
License: Creative Commons Zero v1.0 Universal
The included version of the font doesn't support accentuated characters such as é
. However, OpenSans supports this char.
I tried to enable Google Analytics using the proper parameter (google_analytics) in _config.yml and the intended code is actually injected in the page, but apparently it is valid only for old Analytics tracking IDs (UA-xxxxxxx). New measurement IDs (G-xxxxxxxx) seems to need a different script code.
I modified _default.html removing current code and I added new code just after HEAD tag as per Google Analytics documentation ( https://developers.google.com/analytics/devguides/collection/gtagjs ). After a few try it seems working now.
It is still compatible with the "google_analytics" parameter in _config.yml, the difference is just in the script code. But in a more general approach probably a dedicated parameter would be better, to have both scripts in the layout.
<head>
{% if site.google_analytics %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}
Plz, set monotype font for code blocks, I hope, the additional notes are not required...
I see if checks to enable/disable the download links, but it would be nice to be able to disable the entire header.
So: feature request to wrap the header div in an if check that can be disabled in the config yml
I found the following W3C validation errors in assets/css/style.css
:
ERROR; URI: file://localhost/TextArea; line 559:
Value Error : background (nullcolors.html#propdef-background)
“linear_gradient(#2a2a29,#1c1c1c)” is not a “background-color” value :
ERROR; URI: file://localhost/TextArea; line 703:
Value Error : background (nullcolors.html#propdef-background)
“linear_gradient(#93bd20,#659e10)” is not a “background-color” value :
ERROR; URI: file://localhost/TextArea; line 714:
Value Error : background (nullcolors.html#propdef-background)
“linear_gradient(#749619,#527f0e)” is not a “background-color” value :
Interested in fixing them? Just clone this repository locally, make the suggested change, and run script/cibuild
to confirm it's been fixed. After that, you can submit a pull request to get your change merged. Feel free to drop questions here if you run into any problems.
This may not be an issue but I'd like to know how to increase the width of the whole content page. I put an iframe that measures 960x720 on my website with this theme and it does not center. Using a center tag on the iframe doesnt do anything either. Thanks.
I have tried adding this via remote-theme: midnight (i used the remote theme plugin as well) and theme: jekyll-theme-midnight. After adding the theme in either way the entire site went blank. Removing the theme and going back to minima the content showed up. Looking for some advice on what to do next? Also, I noted the same behaviour when attempting to run this site locally.
The user @carlsonsantana validate your site template "https://pages-themes.github.io/midnight/" and found these accessibility errors:
html > body > div:nth-child(2) > section > div:nth-child(12) > div > pre > code > span:nth-child(24)
<span class="si">}</span>
html > body > div:nth-child(2) > section > div:nth-child(12) > div > pre > code > span:nth-child(22)
<span class="si">#{</span>
#title > span:nth-child(5)
<span class="credits right">Hosted on GitHub Pages — Theme ...</span>
#title > span:nth-child(4)
<span class="credits left">Project maintained by <a href="...</span>
#header > nav > li:nth-child(3) > a
<a href="https://github.com/pages-themes/midnight/tarball/master">TAR</a>
#header > nav > li:nth-child(2) > a
<a href="https://github.com/pages-themes/midnight/zipball/master">ZIP</a>
#header > nav > li:nth-child(1) > a
<a href="https://github.com/pages-themes/midnight">View On GitHub</a>
You can check these accessibility errors using pa11y.
You can view the full validation results in our website.
Hello,
I did not do anything for 8 month on my webpage and suddenly the pages (hosted on github) show a 'blue navigation bar' at the stop instead of the midnight navigation bar:
It works fine on my jekyll (127.0.0.1:4000):
Umm. How to fix this? I'm not a jekyll expert at all.
It would be nice if it was possible to set custom head
tags without overriding the full default.html
, e.g. by adding an additional head-custom.html
and including that from default.html
, so a user can just override head-custom.html
.
So for example, adding:
{% include head-custom.html %}
to default.html
and providing an empty head-custom.html
could do the trick.
If this feature if accepted in general, I could also prepare a PR.
An example use case is setting a favicon
.
tweaking _config.yml
with is_project_page: false
doesn't work
When I add a simple class to the scss file, it fails to appear in my css file.
In assets/css/style.scss
---
---
@import "{{ site.theme }}";
.leonheader {
max-width: 40px;
}
I have tried every online theme of presented by @pages-themes in my browser.
Every theme shows two big buttons to download TAR
or ZIP
.
But why do all these buttons point to https://github.com/pages-themes/{{theme}}/{{ball}}/gh-pages
when no gh-pages
used in theme branches now?
I look at the old sample http://mattgraham.github.com/midnight which has both master
and gh-pages
branches but points correctly to both downloadable balls in master
(i.e. https://github.com/mattgraham/midnight/zipball/master
for ZIP
).
It would be nice to have some ready-to-use social buttons and about page by default.
Mobile devices using a bright theme visiting a midnight-themed page do not adapt their header / status bar colour to the background colour of the midnight theme.
This is possible with the following header tags:
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#353535" />
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#353535" />
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#353535" />
(see also: https://stackoverflow.com/questions/26960703/how-to-change-the-color-of-header-bar-and-address-bar-in-newest-chrome-version-o for screenshots and examples)
Hey guys, I was wondering if you will add pagination to the theme as I was not able to implement with jekyll-paginate plugin
I found the following W3C validation errors in index.html
:
ERROR; line 33: Element “li” not allowed as child of element “nav” in this context. (Suppressing further errors from this subtree.)
ERROR; line 35: Element “li” not allowed as child of element “nav” in this context. (Suppressing further errors from this subtree.)
ERROR; line 36: Element “li” not allowed as child of element “nav” in this context. (Suppressing further errors from this subtree.)
ERROR; line 37: Element “li” not allowed as child of element “nav” in this context. (Suppressing further errors from this subtree.)
Interested in fixing them? Just clone this repository locally, make the suggested change, and run script/cibuild
to confirm it's been fixed. After that, you can submit a pull request to get your change merged. Feel free to drop questions here if you run into any problems.
Hi, I'm testing the Midnight theme and I can't get the colors to work.
See the colors on my website,
comparing to the Midnight theme website.
(I only changed the banner on top, by adding Testing
text.)
I don't know, I built the site and tested it locally, then pushed to GitHub and built the site there, then forked the Midnight repository, and each time the resulting website has the same problem.
I was trying to create some blog posts using this theme, but there is no post.layout
Is that intentional? would it be easy to add one?
Usually I code most of my Jekyll-themed (midnight) website via my laptop and view it from there itself - so I can fit elements the way I want them to look (with expected outcomes), but some elements get cramped up when viewed on smaller screens such as mobile phones. To be specific:
(1) Tables: For smaller tables it works fine, but for even slightly lengthier rows (having more columns) the page extends till the table size only for the table part and the other elements aren't affected or they do not extend as well. Now thats something which is not wanted as when you view the webpage from the perspective of the whole length of the table, the other portions of the website appear very small, and when you view from the perspective (zoom in/zoom out) of the other elements, the table appears incomplete.
(2) Icons: I created them as buttons from pictures (around 200x200 on average, which is an okayish size for wider screens but too big for mobiles) and they appear really big in the mobile screen. Is there a way to resize them? (Due to the big view, the icons occassionally stack on top of each other or go to a new line, instead of appearing alongside one another as intended)
Lastly, is there a way we can enable desktop view on mobile? (like many websites do) Or maybe force the user to view on desktop mode only?
Is it possible to change the url of the "View on Github" button?
The suggested use of
@import "{{ site.theme }}";
in style.scss
stopped working with GitHub pages sometime this week, it seems the deployment now explicitly sets site.theme
to midnight
if that is selected in the GitHub Pages configuration (overriding things from _config.yml
).
So when setting:
theme: jekyll-theme-midnight
and using the above import with Midnight as GitHub theme (not remote theme), I get the build error:
Your SCSS file `assets/css/style.scss` has an error on line 1: File to import not found or unreadable: midnight. Load path: /tmp/jekyll-remote-theme-20210723-6-1teumon/_sass.
I did not find any announcement on this, so this could also be a GitHub pages bug — if not, we should probably hardcode the site.theme
to ʼjekyll-theme-midnight`.
Hi,
Thanks for a great theme! I have discovered a minor issue related to the look of certain special characters (= å, ä, ö). As you can see on my site the letter 'ö' is not rendered correctly. Do you have any idea of what I need to do in order to solve this? I suppose I need to edit some code somewhere but can you help me out? I am a beginner when it comes to github, html and css so please be gentle and explicit in your explanations.
Best regards,
Joakim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.