diff --git a/_config.yml b/_config.yml index eba548b..8b94094 100644 --- a/_config.yml +++ b/_config.yml @@ -24,7 +24,7 @@ autopages: tags: layouts: - - pagination.html + - pagination_tags.html title: "Posts tagged with :tag" permalink: /tags/:tag diff --git a/_includes/header.html b/_includes/header.html index 6716901..036167f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -5,6 +5,7 @@ diff --git a/_layouts/default.html b/_layouts/default.html index 80591c3..6a499f3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,6 +7,8 @@ {{ page.title }} - {{ site.title }} + + diff --git a/_layouts/pagination.html b/_layouts/pagination.html index a0f3cbf..fc2aab4 100644 --- a/_layouts/pagination.html +++ b/_layouts/pagination.html @@ -4,7 +4,7 @@ layout: default {% include header.html %}

{{ site.title }}

{%- if page.autopages %} -
Posts in category "{{ page.autopages.display_name }}"
+
Posts {{ page.pagination_type | default: "in category" }} "{{ page.autopages.display_name }}"
{% endif -%}
@@ -12,7 +12,7 @@ layout: default

{{ post.title }}

- access_time {{ post.date | date_to_string: "ordinal" }} + access_time group_work {{ " " }}{%- for category in post.categories -%} {{ category }} diff --git a/_layouts/pagination_tags.html b/_layouts/pagination_tags.html new file mode 100644 index 0000000..7fe7226 --- /dev/null +++ b/_layouts/pagination_tags.html @@ -0,0 +1,4 @@ +--- +layout: pagination +pagination_type: with tag +--- \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index a75cf6f..e8a98e3 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -12,11 +12,13 @@ layout: default {{ category }} {%- unless category == page.categories.last %}, {% endunless %} {%- endfor %}
+ {%- if page.tags.size > 0 -%} label Tags: {{ " " }}{%- for tag in page.tags -%} {{ tag }} {%- unless tag == page.tags.last %}, {% endunless %} {%- endfor %} + {%- endif %}
{{ content }} diff --git a/_posts/fixme/2019-05-05-discord-and-spotify-for-linux-and-xdg-mime.md b/_posts/fixme/2019-05-05-discord-and-spotify-for-linux-and-xdg-mime.md index 8a573d0..d6e9c9f 100644 --- a/_posts/fixme/2019-05-05-discord-and-spotify-for-linux-and-xdg-mime.md +++ b/_posts/fixme/2019-05-05-discord-and-spotify-for-linux-and-xdg-mime.md @@ -20,7 +20,7 @@ The fix Create a file called `xdg-mime` in `/usr/local/bin` by running `sudo nano /usr/local/bin/xdg-mime`. Paste this in the file: -``` {.wp-block-code} +```bash #!/usr/bin/sh if [[ "$@" == *"x-scheme-handler/discord"* ]] || [[ "$@" == *"x-scheme-handler/spotify"* ]]; then /usr/bin/true diff --git a/_posts/fixme/2019-05-19-a-simple-glitch-soc-tweak.md b/_posts/fixme/2019-05-19-a-simple-glitch-soc-tweak.md index 224dfb0..1a7da24 100644 --- a/_posts/fixme/2019-05-19-a-simple-glitch-soc-tweak.md +++ b/_posts/fixme/2019-05-19-a-simple-glitch-soc-tweak.md @@ -19,7 +19,7 @@ The code If you'd like to run this on your own instance, here's the CSS: -``` {.wp-block-code} +```css .media-gallery__preview--hidden { display: block; } diff --git a/assets/syntax-highlighting.css b/assets/syntax-highlighting.css new file mode 100644 index 0000000..cc7b716 --- /dev/null +++ b/assets/syntax-highlighting.css @@ -0,0 +1,95 @@ +/* Dracula Theme v1.2.5 + * + * https://github.com/zenorocha/dracula-theme + * + * Copyright 2016, All rights reserved + * + * Code licensed under the MIT license + * http://zenorocha.mit-license.org + * + * @author Rob G + * @author Chris Bracco + * @author Zeno Rocha + * modified slightly by lynnesbian (henlo) + * @author Lynnesbian + */ + +.highlight pre { background: #282a36; color: #f8f8f2; overflow-x: auto; padding: 5px 10px; } +.highlight code { font-family: "Liberation Mono"; white-space: pre; line-height: 1.6em; font-size: 0.9rem; } + +.highlight .hll { background-color: #f1fa8c } +.highlight .c { color: #6272a4 } /* Comment */ +.highlight .err { color: #f8f8f2 } /* Error */ +.highlight .g { color: #f8f8f2 } /* Generic */ +.highlight .k { color: #ff79c6 } /* Keyword */ +.highlight .l { color: #f8f8f2 } /* Literal */ +.highlight .n { color: #f8f8f2 } /* Name */ +.highlight .o { color: #ff79c6 } /* Operator */ +.highlight .x { color: #f8f8f2 } /* Other */ +.highlight .p { color: #f8f8f2 } /* Punctuation */ +.highlight .ch { color: #6272a4 } /* Comment.Hashbang */ +.highlight .cm { color: #6272a4 } /* Comment.Multiline */ +.highlight .cp { color: #ff79c6 } /* Comment.Preproc */ +.highlight .cpf { color: #6272a4 } /* Comment.PreprocFile */ +.highlight .c1 { color: #6272a4 } /* Comment.Single */ +.highlight .cs { color: #6272a4 } /* Comment.Special */ +.highlight .gd { color: #8b080b } /* Generic.Deleted */ +.highlight .ge { color: #f8f8f2; text-decoration: underline } /* Generic.Emph */ +.highlight .gr { color: #f8f8f2 } /* Generic.Error */ +.highlight .gh { color: #f8f8f2; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #f8f8f2; font-weight: bold } /* Generic.Inserted */ +.highlight .go { color: #44475a } /* Generic.Output */ +.highlight .gp { color: #f8f8f2 } /* Generic.Prompt */ +.highlight .gs { color: #f8f8f2 } /* Generic.Strong */ +.highlight .gu { color: #f8f8f2; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #f8f8f2 } /* Generic.Traceback */ +.highlight .kc { color: #ff79c6 } /* Keyword.Constant */ +.highlight .kd { color: #8be9fd; font-style: italic } /* Keyword.Declaration */ +.highlight .kn { color: #ff79c6 } /* Keyword.Namespace */ +.highlight .kp { color: #ff79c6 } /* Keyword.Pseudo */ +.highlight .kr { color: #ff79c6 } /* Keyword.Reserved */ +.highlight .kt { color: #8be9fd } /* Keyword.Type */ +.highlight .ld { color: #f8f8f2 } /* Literal.Date */ +.highlight .m { color: #bd93f9 } /* Literal.Number */ +.highlight .s { color: #f1fa8c } /* Literal.String */ +.highlight .na { color: #50fa7b } /* Name.Attribute */ +.highlight .nb { color: #8be9fd; font-style: italic } /* Name.Builtin */ +.highlight .nc { color: #50fa7b } /* Name.Class */ +.highlight .no { color: #f8f8f2 } /* Name.Constant */ +.highlight .nd { color: #f8f8f2 } /* Name.Decorator */ +.highlight .ni { color: #f8f8f2 } /* Name.Entity */ +.highlight .ne { color: #f8f8f2 } /* Name.Exception */ +.highlight .nf { color: #50fa7b } /* Name.Function */ +.highlight .nl { color: #8be9fd; font-style: italic } /* Name.Label */ +.highlight .nn { color: #f8f8f2 } /* Name.Namespace */ +.highlight .nx { color: #f8f8f2 } /* Name.Other */ +.highlight .py { color: #f8f8f2 } /* Name.Property */ +.highlight .nt { color: #ff79c6 } /* Name.Tag */ +.highlight .nv { color: #8be9fd; font-style: italic } /* Name.Variable */ +.highlight .ow { color: #ff79c6 } /* Operator.Word */ +.highlight .w { color: #f8f8f2 } /* Text.Whitespace */ +.highlight .mb { color: #bd93f9 } /* Literal.Number.Bin */ +.highlight .mf { color: #bd93f9 } /* Literal.Number.Float */ +.highlight .mh { color: #bd93f9 } /* Literal.Number.Hex */ +.highlight .mi { color: #bd93f9 } /* Literal.Number.Integer */ +.highlight .mo { color: #bd93f9 } /* Literal.Number.Oct */ +.highlight .sa { color: #f1fa8c } /* Literal.String.Affix */ +.highlight .sb { color: #f1fa8c } /* Literal.String.Backtick */ +.highlight .sc { color: #f1fa8c } /* Literal.String.Char */ +.highlight .dl { color: #f1fa8c } /* Literal.String.Delimiter */ +.highlight .sd { color: #f1fa8c } /* Literal.String.Doc */ +.highlight .s2 { color: #f1fa8c } /* Literal.String.Double */ +.highlight .se { color: #f1fa8c } /* Literal.String.Escape */ +.highlight .sh { color: #f1fa8c } /* Literal.String.Heredoc */ +.highlight .si { color: #f1fa8c } /* Literal.String.Interpol */ +.highlight .sx { color: #f1fa8c } /* Literal.String.Other */ +.highlight .sr { color: #f1fa8c } /* Literal.String.Regex */ +.highlight .s1 { color: #f1fa8c } /* Literal.String.Single */ +.highlight .ss { color: #f1fa8c } /* Literal.String.Symbol */ +.highlight .bp { color: #f8f8f2; font-style: italic } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #50fa7b } /* Name.Function.Magic */ +.highlight .vc { color: #8be9fd; font-style: italic } /* Name.Variable.Class */ +.highlight .vg { color: #8be9fd; font-style: italic } /* Name.Variable.Global */ +.highlight .vi { color: #8be9fd; font-style: italic } /* Name.Variable.Instance */ +.highlight .vm { color: #8be9fd; font-style: italic } /* Name.Variable.Magic */ +.highlight .il { color: #bd93f9 } /* Literal.Number.Integer.Long */