Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add body class for unique page styles #23

Closed
daviddarnes opened this issue Jan 2, 2017 · 0 comments
Closed

Add body class for unique page styles #23

daviddarnes opened this issue Jan 2, 2017 · 0 comments

Comments

@daviddarnes
Copy link
Owner

daviddarnes commented Jan 2, 2017

Summary

In some cases people may want to style a single page without disrupting other pages or their layouts. By adding a class to the body that is generated from the page title (and page layout?) people could utilise this and style pages individually

Example code

<body class="layout-{{ page.layout }}  {{ page.title | slugify }}">
   ...
</body>
@daviddarnes daviddarnes self-assigned this Jan 2, 2017
tillbey pushed a commit to tillbey/neo-alembic that referenced this issue Mar 6, 2017
LeiShi1313 pushed a commit to LeiShi1313/caosen that referenced this issue Jun 15, 2018
Adds config file

Adds layouts, setup for blog on a blog page

Adds default layout, favicon code and blank icons include

Basic typography styles, needs work

Cleaning up layouts, adding partials for typical page structure

Adds config url for GitHub Pages

Adds Sassline for typography, changes layout for better structure

Adds logo, refines elements and adds fature include

I don't know, I thought it was just button styles

Dave went wild! 😷

Adds more shortcodes, cleaning up things

Adds full width page layout, adds alignment options for figure

Adds contact form

Adds icon system, social nav, comments and finishes contact form

Updates logo

Fixes all the issues on the live demo, mobile fixes, and cleans up the content a little

Adds domain record

Updates content

Starting the docs

Starting the docs

Tweaking description

Input fixes for mobile, icon fixes for mobile

Trying to get comments to work

Fixes comments

Removes logo, no longer needed

Housekeeping, better names to group includes up 🏠

Docs! :notepad: also changes how the feature works

Amends to docs, adds copy to homepage

Amends example image path

Amends contents links for docs

Fixes broken links

Amends from @jessgurr

Adds 404 page, improved pagination, styles for different content embeds

Adds sharing buttons for posts, color option for buttons, more versatile states for buttons

Adds selection styles

Moves and changes map

Adds cross browser flexbox support

Trying to work out why IE is being an asshole 🍑

Sorry IE10, you're not cool anymore

Fixes daviddarnes#6 daviddarnes#5, moves feature into header and adds overall text colour

Improves mail icon

Expands on docs

Adds active state to nav

Adds active state to nav

Adds active state to nav

Adds active style to nav

Changes active to current on nav, better email icon

New email icon

New email icon

Cleaning up sample content

Changes example blog posts

Fixes feature bug in IE11

Fixes gap in header in IE10

Attempting to fix issue with the SVG logo in IE10

Tweaks wording to boilerplate rather than theme, adds credits

Fixing IE10 bug, really don't like doing this but it works

Stop resize handle coming up on inputs ✊

Exposes title and description / content to the Siteleaf UI for the blog / posts page daviddarnes#9

Adds clearing div to sharing buttons

Moves avatar url to config for better management, closes daviddarnes#9

Improves editing control of collection pages

Adds note about posts collection data

Removes icons data file, needlessly complicated

Moves main css file to assets, to match up to the theme spec

Adds encoding format to styles and config, fixes daviddarnes#10

Adds screenshot into readme and repo

Moves default assets to assets directory

Moved assets, see previous commit

ignores gem builds from repo

ignores gemspec file from jekyll build

Creates gemspec file for building gems

Moves all demo content into demo directory, removes unwanted files that don't apply to the theme branch

Adds example content back in, hoping to have the gem and forkable version on the same branch

Adds domain record back in

Ignore gemspec from root config, clean up demo config

Gem version bump

Changes logo implementation to allow one easy way to change the logo daviddarnes#13

Moves colours into its own file for better customisation daviddarnes#14

Gem version bump for testing

Updates readme to explain the differences between boilerplate and theme installations

Updates sample content and screenshot

Tweaks docs

Gem version bump

Cleans up screenshot

Cleans up screenshot, again

Updates sample content and screenshot

Fixes bug with blog feature appearing on blog posts

Adds fork and install links on demo site

Removes map from sidebar, makes sidebar less distracting from the main content, adds more example elements to elements demo page

Corrects Jekyll version, bumps gem to 0.1.0

Self linking, dem clickbacks

Knock back a version, waiting for the bugs to come in

Oops, forgot the home link

Version bump :shocked:

Changes full width page to 'home' to better match conventions shown in jekyll 3.2.1 | Error:  You must specify a path.

Adds gem badge

Removes the need for post a page checks

Reduces the line length of feature content

Stops feature collapsing when there's no content

Adds example image to blog post

Changes blog page variable for matching with collection type

Version 0.1.2

Adds gemfile to refer to the gemspec file, may need changing

Adds Gemfile for demo theme installation

Adds Gemfile to ignored list in Jekyll

Adds bundler as a dev dependency

Stops tracking Gemfile.lock files

Adds version to alembic theme install

Improves documentation

Adds relative url to the styles link

Version bump to 0.1.3

Version bump

Refines content for simplier demo and better presentation

Adds donate button

Adds donate button to demo

Attempts to fix button include

Tries to fix button include

Tries to fix button include

Tries to fix button include

Changes colour of button

Changes colour of button

Version bump

Update post-comments.html

Updates config for demo disqus

Updates config for demo disqus

Use the right id Dave

Use the right id Dave

Version bump to 1.0.0 🎈

Remove file extension, fixes daviddarnes#25

Correct collectionpage variable and add title and description meta to collection view, fixes daviddarnes#24

Add layout and page slug class names to body element to allow page specfic styling, closes daviddarnes#23

Adds example sites using Alembic, closes daviddarnes#22

version bump to 1.1.0

Add more site examples, minor clean up in the css

Amend theme version in demo gemfile

Various fixes from daviddarnes#26

Accessibility improvements

Create json template to loop through documents

Create site-search component with javascript

Create example search page for testing

Adjust styling for search component

Adds polyfill for fetch() api

Create new search layout and remove post list from said layout sidebar

Add category view, needs work

Refactor and improve category post loop, restructure category page

Change post list structure to match category list

Adds categories navigation

Changes post to test categories page

Style categories page

Create categories nav

Create sharing nav with template links

Add new icons for sharing platforms

Test sharing buttons within the old sharing buttons include

Add sharing nav configuration

Refactor sharing buttons to depend more on the site config

Remove share nav include, post share buttons include to be deleted

Change Google Plus icon id to Google+, for consistency

Swap old sharing buttons with the new ones

Tweak sharing button spacing

Delete old sharing buttons

Add documentation

Update demo site

Clean up readme

Add more detail to readme

Add categories page to readme

Change demo content to match site sample content

Refactor aside to use less complicated conditional statements

Add new pages to demo content, update readme about search include and layout

Remove mention of search.json, no longer needed

Add search and categories to nav

Remove posts list from search sidebar

Move search.json to theme assets, thus negating the work by the theme user to add this page to their project

Clean up sidebar a little, improve sticky category index nav

Update features list on sample content

Version bump to 1.5.0

Update demo content to install new version of alembic

Fix demo Google+ link

Fix bug with outputting page excerpt in search.json

Add excerpts to all demo and sample page

Set search.json to null to stop warnings

Add code of conduct and contributing documents, to be completed daviddarnes#38

Tweaks for relevancy daviddarnes#38

Allow icons to scale with type

Fix clicking on a search result, mentioned in daviddarnes#42

Remove layout styles, fixes daviddarnes#41

Add more examples, closes daviddarnes#37

Version bump

Improve documentation

Another exemple:

 web page of the satellite session "Evolution of Cultural Complexity" at the Conference on Complex System

Adds example to readme

Add example to index page

Stop paragraphs nested in lists from causing too much spacing, fixes daviddarnes#43

Replace color variables file with settings file that has a more extensive set of options daviddarnes#44

Change how the sidebar is positioned so single column pages look nicer

Add new narrow single column post layout, may need to simplify layout options

Remove figure fullscreen option, too complex

Create new style settings and improve styles

Clean up global style settings

create styles panel for easy editing

Style up color input

Create style settings using custom properties

Create styles page to demo style editing

Fix form usage

Add new select styling

Change font option to a select for easier usage

Working on v2, see daviddarnes#47 comments for more info

Adds js toggle, needs work

Add mobile nav toggle and adjust how header and footer navs are presented

Revised mobile nav toggle

Clear up white space when there's no page title

Switch back to regular settings file, add repo files to exclude list

Cleaning up files, update docs

Remove custom properties option, see v2-styles-editor branch

Update demo content

Fix search urls, update index demo pages

Remove styles sidebar, in v2-styles-editor branch

Stop search results indenting on mobile

Update gems

Set alembic as theme for demo content

Fix html proofing errors

Allow posts to appear even without jekyll-paginate

Make sure header and footer navs are aligned right

Final v2 push, I think

Stop checking for nav header item count, fixes daviddarnes#50

Allow for more varied logo image sizes, fixes daviddarnes#49

Change logo and default social image names so reduce confusion and hassle, fixes daviddarnes#48

Fallback onto default social image

Refactoring styles, refining navigational elements

Accessibility of mobile nav toggle

Fix icons in buttons

Switch to using a gemfile for managing gems when using a fork of this project

Rebase theme to a different baseurl

Fixed logo

Fix

Changed page.identifier url

Remove site.baseurl from site-search

Changed baseurl

Various bugs and tweaks as described in daviddarnes#53, fixes daviddarnes#53

Version bump Alembic to 2.1.0

Remove title attributes from anchors, better screen reader usage, fixes daviddarnes#57

Add tweet button to demo, add center aligned figure, closes daviddarnes#56

Allow to set a site language, bump to 2.2, fixes daviddarnes#59

Document language options

Set defaults for fields and components so bad empty states don't occur

Add jekyll default layout and reduce the need for complex default config settings

Change code samples to overflow and scroll, fixes daviddarnes#60

Add new example

Stop stripping returns, fixes daviddarnes#61

Version bump

Version bump up, not down

Restore default social image (oops), add theme metadata to gemspec

Share and tip links in readme

Remove style attrs, they don't work on github.com

Point Gemfile to gemspec for list of dependant gems

Update forking steps to accommodate Gemfile differences

Truncate excerpt before parsing the html, fixes daviddarnes#65

Add button using js

Use flexbox to place toggle button above nav

Version bump
v2.2.5

Write new installation steps

Remove demo dir, not needed anymore

Update config to reflect change

Update theme version and jekyll version, breaking changes here

People who fork won't need to install the theme

Update plugins, downgrade theme version, don't need to bump it up to 3 yet

Update documentation

Update index page and tweak documentation

Stop shadows appearing on linked code snippets

Move theme styles into a theme.scss file, make styles just the import point

Make an alembic.scss file for importing all Sass assets and a single point of reference for all styles

re-insert linked code block shadow removal

replace unicode characters as they cause sass errors and there are simple replacements

Account for multiple categories as well as singular daviddarnes#75

Adds p-recs website as example

Add simple service worker and manifest file

Include manifest regardless of service worker

Compress default social image

Allow to customise app manifest

Catch any asset error, return default image

Create default image as offline placeholder

Remove white space from sharing links

Darken twitter button

Pass in title for instances of icon include, add alt to icon svg with title variable

More accessible colour contrast

Add title attributes to icons and iframes

Return colour back to theme, not as accessible but still part of the themes brand

If offline the user is provided with a cached asset / page or some kind of default placeholder. Network -> Cache -> Placeholder

Refactor, better comments

Refactor components to sensible fallbacks, remove unwanted error states

Set differnt theme colour for homescreen app use

Better colours, darker and lighter tones of main colour scheme

Update demo figure to reflect changes

Make sure to include service worker and manifest in theme gem

Add an offline page as a service worker offline view

Stop caching 404 page and use offline page as a default offline view, remove duplicate styles.css in content array

Tweak category links so they don't have to resolve to correct url

Add fetch.js to list of cached assets,prevent js request errors

New version of logo

Simplified logo more

Update images to more generic imagery

Add width and height options to figure and icon includes

Create new contribution and issue templates

Add service worker documentation

Update docs on both readme and homepage

Update screenshot

Move manifest and service worker to subdirectory but use the permalink front matter to place it at the root of the site

Version bump 3.0.1

Change all tabs to spaces

Rename serviceWorker to service_worker

Add inline styles component for <style> block

Wrap style import methods in a site config flag

Add a frontmatter property to the styles so the site is aware of the main styles file

Turn on inline styles flag

Expand site performance section and document inline css option

Strip new lines in inline css to minify

Add analytics include, generic name for overwriting purposes

Check if config option has been added and include analytics code with analytics id within

Add documentation

Fix merge conflict

Version bump 3.0.2

Correct analytics site config reference daviddarnes#92

Change pagination text daviddarnes#94

Version bump 3.0.3

Documentation: Remove example site from list, fixes daviddarnes#97

Amend docs around customisation, thanks @leonelgalan

Set a defaults path, forestry.io fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant