kmsimg_nhs_emissionsrecipebook
A collaboration-based approach to calculating emissions associated with the NHS Carbon Footprint and NHS Carbon Footprint Plus scopes.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 5 committers (20.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords
Repository
A collaboration-based approach to calculating emissions associated with the NHS Carbon Footprint and NHS Carbon Footprint Plus scopes.
Statistics
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 7
- Releases: 0
Topics
Metadata Files
Docs/README.md
nhsuk-static-jekyll
Jekyll implementation of the NHS.UK service manual
<!-- Replace with your repo URL --> Report Bug · <!-- Replace with your repo URL --> Request Feature
Table of Contents
About The Project
This Jekyll theme was originally crafted by John Otander as Pixyll, then modified by Sai Kiran Sripada, and then the NHS theme added by Craig Robert Shenton. It's free, and open source (MIT).
Note: No NHS data, public or private are shared in this repository.
Folder Stucture
| Name | Link | Description | | ---- | --- | ------------ | | _includes | [Link] | Element templates | | _layouts | [Link] | Page templates | | _posts | [Link] | Blog post markdown files | | _sass | [Link] | basscess files | | assets | [Link] | Image assets | | css | [Link] | css style files |
Built With
Deploy to a GitHub.io page
- Hit the green 'Use this template' button at the top of this repository page.
- A new site will open asking you to create a new repository from
nhsuk-static-jekyll. - Give your repository a name.
- This is form part of the new website's URL:
https://{github username}.github.io/{repository name}/. - Set the visability to
Publici.e., Anyone on the internet can see this repository. - Hit the green 'Create repository from template' button.
- GitHub will then clone all the code used to build the website to your new repository.
- Go to the _config.yml in your new repository.
- Edit the site settings shown below:
```yml
---------------------------------------------------------------------------------------------------------
title: nhsuk-static-jekyll Add a title to your website email: craig.shenton@nhs.net Add your email to the contacts page author: Craig Robert Shenton Add your name as the defult author for blog posts description: "My first website" Add sub-text to the 'hero' card on the home page url: "https://craig-shenton.github.io/" Set to "https://{githubusername}.github.io" baseurl: "nhsuk-static-jekyll/" Set this as the same name as your repository githubusername: craig-shenton For adding links to your GitHub page linkedinusername: craigrshenton For adding links to your LinkedIn page dateformat: "%b %-d, %Y" Sets the date format for the blog pages
---------------------------------------------------------------------------------------------------------
``
10. Commit your changes to the repository
11. Go toSettings > Pages > Source, change the main branch tomainand save.
12. GitHub will now deploy your website (~2mins)
13. Go the URLhttps://{github username}.github.io/{repository name}/` to view your site.
14. Congratulations! Your website is public [live example].
Developer Documentation
Getting Started
To get a local copy up and running follow these simple steps.
If you're completely new to Jekyll, I recommend checking out the documentation at http://jekyllrb.com or there's a tutorial by Smashing Magazine.
```bash $ git clone git@github.com:craig-shenton/nhsuk-static-jekyll.git $ cd nhs.pycom $ gem install bundler
If you don't have bundler installed
$ bundle install ```
Verify your Jekyll version
It's important to also check your version of Jekyll since this project uses new baseurl features that are only supported in 3.3+.
Fork, then clone
Fork the repo, and then clone it so you've got the code locally.
Modify the _config.yml
The _config.yml located in the root of the Mixyll directory contains all of the configuration details
for the Jekyll site. The defaults are:
```yml
Site settings
title: Repo Name email: your_email@example.com author: your name description: "Repo description" baseurl: "" url: "http://github-username.github.io"
Build settings
markdown: kramdown permalink: pretty paginate: 3 ```
Jekyll Serve
Then, start the Jekyll Server. I always like to give the --watch option so it updates the generated HTML when I make changes.
bash
$ jekyll serve --watch
Now you can navigate to localhost:4000 in your browser to see the site.
Using Github Pages
You can host your Jekyll site for free with Github Pages. Click here for more information.
A configuration tweak if you're using a gh-pages sub-folder
In addition to your github-username.github.io repo that maps to the root url, you can serve up sites by using a gh-pages branch for other repos so they're available at github-username.github.io/repo-name.
This will require you to modify the _config.yml like so:
```yml
Site settings
title: Repo Name email: your_email@example.com author: your name description: "Repo description" baseurl: "/repo-name" url: "http://github-username.github.io"
Build settings
markdown: kramdown permalink: pretty paginate: 3 ```
This will ensure that the the correct relative path is constructed for your assets and posts. Also, in order to run the project locally, you will need to specify the blank string for the baseurl: $ jekyll serve --baseurl ''.
If you don't want the header to link back to the root url
You will also need to tweak the header include /{{ site.baseurl }}:
html
<header class="site-header px2 px-responsive">
<div class="mt2 wrap">
<div class="measure">
<a href="{{ "/" | relative_url }}" class="site-title">{{ site.title }}</a>
<nav class="site-nav">
{% include navigation.html %}
</nav>
</div>
</div>
</header>
A relevant Jekyll Github Issue: https://github.com/jekyll/jekyll/issues/332
Contact Form
The contact form uses http://formspree.io. It will require you to fill the form out and submit it once, before going live, to confirm your email.
More setup instructions and advanced options can be found at http://formspree.io
Disqus
To configure Disqus, set up a Disqus site with the same name as your site. Then, in _config.yml, edit the disqus_shortname value to enable Disqus.
Customizing the CSS
All variables can be found in the _sass/_variables.scss file, toggle these as you'd like to change the look and feel of Mixyll.
Page Animation
If you would like to add a fade-in-down effect, you can add animated: true to your _config.yml.
AnchorJS
AnchorJS: A JavaScript utility for adding deep anchor links to existing page content. AnchorJS is lightweight, accessible, and has no dependencies. You can turn it on by toggling enable_anchorjs. Because it offers many ways for customization, tweaks should be done in _includes/footer.html. Default settings after turning AnchorJS on are:
html
<script>
anchors.options.visible = 'always';
anchors.add('article h2, article h3, article h4, article h5, article h6');
</script>
See documentation for more options.
Web analytics and search engines
You can measure visits to your website either by using Google Analytics tracking embed or the more advanced Google Tag Manager container.
* For Google Analytics set up the value for google_analytics, it should be something like google_analytics: UA-XXXXXXXX-X.
* For Google Tag Manager set up the value for google_tag_manager, it should be something like: google_tag_manager: GTM-XXXXX.
* Do not set both of above methods because this will cause conflicts and skew your reporting data.
* Remember that you need to properly configure the GTM container in its admin panel if you want it to work. More info is available in GTM's docs.
Your website is, by default, set to be allowed for crawling and indexing by search engines. (Unless you made yourself a custom robots.txt file). You can use front matter settings on each page to control how search engines will it. Sometimes you may want to exclude a particular page from indexing or forbid Google to store a copy of your page in its cache. It is up to you. Use the meta_robots frontmatter key and assign values based on this table. Some examples:
```yaml
exclude page from index
meta_robots: noindex
allow indexing, disallow caching
meta_robots: noarchive
allow indexing, disallow crawling links
meta_robots: nofollow
disallow indexing, follow links
meta_robots: noindex,follow ```
In order to get more information about your website's status in search engines, you can register it in Google Search Console and/or Bing Webmaster Tools. Both these tools will ask you to authorize your website with them and there are couple of ways to do that. Mixyll supports verification via meta tags - just fill in values for google_verification and/or bing_verification in _config.yml, the verification strings and meta tags will then be added automatically.
If search engine optimization is your thing, you can also set up meta_description values for each page/post. By default Mixyll uses summary to populate the <meta name="description" content="..."> tag and falls back to description from _config.yml if summary is not present in page/post's front matter. The summary is also used for generating Open Graph tags. Why would you want to use a dedicated variable for meta description? Because character limit to properly display this description in search results (as a snippet) is way smaller than in Open Graph. It is recommended to keep it at 155-160 characters, for more in-depth info read this article.
And lastly - if you happen to write in language other than English be sure to change og_locale in _config.yml to reflect it.
Ensure there's an upstream remote
If git remote -v doesn't have an upstream listed, you can do the following to add it:
git remote add upstream https://github.com/{{ site.github_username }}/{{ site.baseurl }}.git
Pull in the latest changes
git pull upstream master
There may be merge conflicts, so be sure to fix the files that git lists if they occur. That's it!
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidance.
License
Distributed under the MIT License. See LICENSE.md for more information.
Acknowledgements
- Splash Photo by Chris Ried
Owner
- Name: Dr Dan Wright
- Login: danwrisar
- Kind: user
- Location: United Kingdom
- Company: East Kent Hospitals University NHS Foundation Trust
- Repositories: 13
- Profile: https://github.com/danwrisar
GitHub Events
Total
- Issue comment event: 2
- Pull request event: 1
Last Year
- Issue comment event: 2
- Pull request event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| danwrisar | d****t@l****k | 76 |
| Dr Dan Wright | d****r@l****k | 68 |
| Nick | 9****k | 3 |
| andrewsmith16 | a****6@n****t | 1 |
| Guy Wing | 6****g | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 8
- Total pull requests: 7
- Average time to close issues: 3 months
- Average time to close pull requests: about 1 month
- Total issue authors: 1
- Total pull request authors: 5
- Average comments per issue: 0.88
- Average comments per pull request: 0.86
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 2.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- danwrisar (8)
Pull Request Authors
- andrewsmith16 (3)
- d-wright2 (2)
- waddy79 (1)
- Epi-Nick (1)
- guywing (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/configure-pages v2 composite
- actions/deploy-pages v1 composite
- actions/jekyll-build-pages v1 composite
- actions/upload-pages-artifact v1 composite
- github-pages >= 0