You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# required to fetch internal or private CodeQL packs
36
+
packages: read
37
+
38
+
# only required for workflows in private repositories
39
+
actions: read
40
+
contents: read
41
+
42
+
strategy:
43
+
fail-fast: false
44
+
matrix:
45
+
include:
46
+
- language: javascript-typescript
47
+
build-mode: none
48
+
- language: ruby
49
+
build-mode: none
50
+
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
51
+
# Use `c-cpp` to analyze code written in C, C++ or both
52
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
58
+
steps:
59
+
- name: Checkout repository
60
+
uses: actions/checkout@v4
61
+
62
+
# Initializes the CodeQL tools for scanning.
63
+
- name: Initialize CodeQL
64
+
uses: github/codeql-action/init@v3
65
+
with:
66
+
languages: ${{ matrix.language }}
67
+
build-mode: ${{ matrix.build-mode }}
68
+
# If you wish to specify custom queries, you can do so here or in a config file.
69
+
# By default, queries listed here will override any specified in a config file.
70
+
# Prefix the list here with "+" to use these queries and those in the config file.
71
+
72
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
73
+
# queries: security-extended,security-and-quality
74
+
75
+
# If the analyze step fails for one of the languages you are analyzing with
76
+
# "We were unable to automatically build your code", modify the matrix above
77
+
# to set the build mode to "manual" for that language. Then modify this step
78
+
# to build your code.
79
+
# ℹ️ Command-line programs to run using the OS shell.
80
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
81
+
- if: matrix.build-mode == 'manual'
82
+
shell: bash
83
+
run: |
84
+
echo 'If you are using a "manual" build mode for one or more of the' \
85
+
'languages you are analyzing, replace this with the commands to build' \
Copy file name to clipboardExpand all lines: CUSTOMIZE.md
+86Lines changed: 86 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,92 @@ You can add a newsletter subscription form by adding the specified information a
162
162
163
163
Depending on your specified footer behavior, the sign up form either will appear at the bottom of the `About` page and at the bottom of blogposts if `related_posts` are enabled, or in the footer at the bottom of each page.
164
164
165
+
## Removing content
166
+
167
+
Since this template have a lot of content, you may want to remove some of it. The easiest way to achieve this and avoid merge conflicts when updating your code (as [pointed by CheariX ](https://github.com/alshedivat/al-folio/pull/2933#issuecomment-2571271117)) is to add the unwanted files to the `excludes` section in your `_config.yml` file instead of actually deleting them, for example:
168
+
169
+
```yml
170
+
excludes:
171
+
...
172
+
- _news/announcement_*.md
173
+
- _pages/blog.md
174
+
- _posts/
175
+
- _projects/?_project.md
176
+
- assets/jupyter/blog.ipynb
177
+
```
178
+
179
+
Here is a list of the main components that you may want to delete, and how to do it. Don't forget if you delete a page to update the `nav_order` of the remaining pages.
180
+
181
+
### Removing the blog page
182
+
183
+
To remove the blog, you have to:
184
+
185
+
- delete [\_posts](_posts/) directory
186
+
- delete blog page [\_pages/blog.md](_pages/blog.md)
187
+
- remove reference to blog page in our [\_pages/dropdown.md](_pages/dropdown.md)
188
+
- remove the `Blog` section in the [\_config.yml](_config.yml) file and the related parts, like the `jekyll-archives` and `latest_posts`
To add secrets for [lighthouse-badger](https://github.com/alshedivat/al-folio/actions/workflows/lighthouse-badger.yml), create a [personal access token (PAT)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) and add it as a [secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-encrypted-secrets-for-a-repository) named `LIGHTHOUSE_BADGER_TOKEN` to your repository. The [lighthouse-badger documentation](https://github.com/MyActionWay/lighthouse-badger-workflows#lighthouse-badger-easyyml) specifies using an environment variable, but using it as a secret is more secure and appropriate for a PAT.
Copy file name to clipboardExpand all lines: FAQ.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ If your question is related to localization, please check if it was not already
20
20
-[How can I update Font Awesome version on the template](#how-can-i-update-font-awesome-version-on-the-template)
21
21
-[How can I update Tabler Icons version on the template](#how-can-i-update-tabler-icons-version-on-the-template)
22
22
-[What do all these GitHub actions/workflows mean?](#what-do-all-these-github-actionsworkflows-mean)
23
+
-[How can I use Google Search Console ID on the template?](#how-can-i-use-google-search-console-id-on-the-template)
23
24
24
25
---
25
26
@@ -154,3 +155,15 @@ Currently we have the following workflows:
154
155
- `lighthouse-badger.yml`: runs a [lighthouse](https://github.com/GoogleChrome/lighthouse) test for your site with the [lighthouse-badger-action](https://github.com/MyActionWay/lighthouse-badger-action), saving the results in the repository for easy inspecting, as can be seen [here](https://github.com/alshedivat/al-folio?tab=readme-ov-file#lighthouse-pagespeed-insights). For more information on how to enable this workflow, check our [FAQ question about it](https://github.com/alshedivat/al-folio/blob/main/FAQ.md#when-i-manually-run-the-lighthouse-badger-workflow-it-fails-with-error-input-required-and-not-supplied-token-how-do-i-fix-that)
155
156
- `prettier-comment-on-pr.yml`: not working. For now, this action is disabled. It was supposed to run prettier on the PRs and comment on them with the changes needed. For more information, check [issue 2115](https://github.com/alshedivat/al-folio/issues/2115)
156
157
- `prettier.yml`: runs [prettier](https://prettier.io/) on the code to ensure it is well formatted. For more information, check our [FAQ question about it](https://github.com/alshedivat/al-folio/blob/main/FAQ.md#my-code-runs-fine-locally-but-when-i-create-a-commit-and-submit-it-it-fails-with-prettier-code-formatter-workflow-run-failed-for-main-branch-how-do-i-fix-that)
158
+
159
+
---
160
+
161
+
### How can I use Google Search Console ID on the template?
162
+
163
+
In the configuration file `_config.yml` the tag `google-site-verification` should be updated to use this functionality. Here is how you can proceed,
164
+
165
+
- Generate your HTML tag by following [https://support.google.com/webmasters/answer/9008080?hl=en#meta_tag_verification&zippy=%2Chtml-tag](https://support.google.com/webmasters/answer/9008080?hl=en#meta_tag_verification&zippy=%2Chtml-tag) with URL prefix option.
166
+
- In the verify ownership option choose HTML tag and copy the tag contents which should look like `<meta name="google-site-verification" content="GoogleSearchConsoleID" />`.
167
+
- The string against `content` is the Google Search Console ID that can be used in the template. e.g. `google-site-verification: GoogleSearchConsoleID`. Now set the property `enable_google_verification: true`.
168
+
169
+
It looks like the Domain type property in the Google Search Console to verify the ownership of all URLs across all subdomains with GitHub Pages does not work.
0 commit comments